//
// sub_83112C from 0x83112c to 0x831156 (42 bytes)
//
// 4 xrefs:
// > sub_8400E4 @ 0x8402c4
// > sub_8400E4 @ 0x8405f6
// > sub_8400E4 @ 0x840602
// > sub_8400E4 @ 0x840b80
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:02:05 +0000
//
int __fastcall sub_83112C(int a1, _DWORD **a2)
{
_DWORD *v2; // r3
if ( !a2 )
return 0;
v2 = *a2;
if ( !*a2 )
return (int)v2;
while ( *v2 != a1 )
{
v2 = (_DWORD *)v2[2];
if ( !v2 )
return (int)v2;
}
sub_83E21C(a2, v2);
return 1;
}