//
// sub_98F118 from 0x98f118 to 0x98f1b4 (156 bytes)
//
// 14 xrefs:
// > AccountRegisterLayer::textInputClosed @ 0x993bfc
// > AccountRegisterLayer::textInputClosed @ 0x993c18
// > AccountRegisterLayer::textInputClosed @ 0x993d00
// > AccountRegisterLayer::textInputClosed @ 0x993d1c
// > AccountRegisterLayer::textInputClosed @ 0x993e58
// > AccountRegisterLayer::textInputClosed @ 0x993eb0
// > AccountRegisterLayer::textChanged @ 0x99408c
// > AccountRegisterLayer::textChanged @ 0x9940a8
// > AccountRegisterLayer::textChanged @ 0x9941b8
// > AccountRegisterLayer::textChanged @ 0x9941d4
// > AccountRegisterLayer::textChanged @ 0x9942b0
// > AccountRegisterLayer::textChanged @ 0x994318
// > AccountRegisterLayer::onSubmit @ 0x994598
// > AccountRegisterLayer::onSubmit @ 0x9945f0
//
// 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 12:57:58 +0000
//
bool __fastcall sub_98F118(__int64 a1, __int64 a2)
{
size_t v2; // x20
size_t v3; // x19
const void *v4; // x4
const void *v5; // x3
size_t v6; // x2
_BOOL4 v8; // w1
v2 = *(_BYTE *)a1 >> 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v2 = *(_QWORD *)(a1 + 8);
v3 = *(_BYTE *)a2 >> 1;
if ( (*(_BYTE *)a2 & 1) != 0 )
v3 = *(_QWORD *)(a2 + 8);
v4 = (const void *)(a1 + 1);
if ( (*(_BYTE *)a1 & 1) != 0 )
v4 = *(const void **)(a1 + 16);
v5 = (const void *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(const void **)(a2 + 16);
if ( v3 > v2 )
v6 = v2;
else
v6 = v3;
if ( v6 && memcmp(v4, v5, v6) )
return 0;
v8 = v2 <= v3;
if ( v2 < v3 )
return 0;
return v8;
}