//
// sub_100452C4C from 0x100452c4c to 0x100452cc8 (124 bytes)
//
// 2 xrefs:
// > DS_Dictionary::removeKey @ 0x1001ea5ac
// > DS_Dictionary::removeKey @ 0x1001ea5bc
//
// This function is hookable on this platform (idp: arm, 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:05:21 +0000
//
__int64 __fastcall sub_100452C4C(__int64 **a1, __int64 *a2)
{
__int64 *v2; // x8
__int64 result; // x0
__int64 v4; // x9
__int64 v5; // x10
__int64 v6; // x11
_QWORD *v7; // x10
__int64 v8; // t1
bool v9; // zf
_QWORD *v10; // x8
__int64 v11; // x11
__int64 v12; // t1
v2 = *a1;
if ( !*a1 )
return 0;
result = *a2;
if ( !*a2 )
return result;
if ( *(__int64 **)(result + 8) != v2 )
return 0;
v4 = *(_QWORD *)(result + 48);
if ( v4 )
{
v5 = *(_QWORD *)(result + 40);
v6 = *(_QWORD *)(result + 48);
LABEL_8:
*(_QWORD *)(v6 + 40) = v5;
goto LABEL_9;
}
v6 = v2[4];
v5 = *(_QWORD *)(result + 40);
if ( v6 )
goto LABEL_8;
LABEL_9:
v8 = *(_QWORD *)(v5 + 48);
v7 = (_QWORD *)(v5 + 48);
v9 = v8 == 0;
v12 = *v2;
v10 = v2 + 4;
v11 = v12;
if ( !v9 )
v10 = v7;
*v10 = v4;
sub_100452CC8(result, *(_QWORD *)(v11 & 0xFFFFFFFFFFFFFFE0LL));
return 1;
}