//
// sub_1403D52E0 from 0x1403d52e0 to 0x1403d5395 (181 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::actionsToShow @ 0x1403d7f9a
// > ??> @ 0x14092498c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:31:36 +0000
//
char __fastcall sub_1403D52E0(_QWORD *a1, _QWORD *a2)
{
unsigned __int64 v4; // rcx
__int64 v5; // r15
__int64 v6; // rbx
_QWORD *v7; // rax
char *v8; // rbp
_QWORD *v9; // rax
int v10; // edi
v4 = a2[2];
if ( v4 > a1[2] )
return 0;
v5 = 0;
while ( 1 )
{
v6 = 0;
if ( !v4 )
break;
while ( 1 )
{
v7 = a1;
if ( a1[3] > 0xFu )
v7 = (_QWORD *)*a1;
v8 = (char *)v7 + v6;
v9 = a2;
if ( a2[3] > 0xFu )
v9 = (_QWORD *)*a2;
v10 = tolower(*((unsigned __int8 *)v9 + v6));
if ( tolower((unsigned __int8)v8[v5]) != v10 )
break;
if ( (unsigned __int64)++v6 >= a2[2] )
return 1;
}
v4 = a2[2];
if ( ++v5 > a1[2] - v4 )
return 0;
}
return 1;
}