// // sub_10004120C from 0x10004120c to 0x1000412c8 (188 bytes) // // 1 xrefs: // > SetGroupIDLayer::init @ 0x10003f768 // // 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 10:57:37 +0000 // __int64 __fastcall sub_10004120C(__int64 a1, __int64 a2) { int v3; // w21 __int64 result; // x0 __int64 v5; // x20 int v6; // w22 __int64 v7; // x21 int v8; // w8 __int64 v9; // x1 v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); result = *(_QWORD *)(a1 + 680); if ( result ) { result = sub_1002E757C(result); if ( (_DWORD)result ) { v5 = 0; if ( v3 == 1 ) v6 = 2; else v6 = -2; do { v7 = sub_1002E75A0(*(_QWORD *)(a1 + 680), v5); v8 = sub_1002F3514(v7) + v6; if ( v8 >= 11 ) v8 = 11; if ( v8 <= -5 ) v9 = 4294967291LL; else v9 = (unsigned int)v8; sub_1002FA584(v7, v9); *(_BYTE *)(v7 + 1148) = 1; v5 = (unsigned int)(v5 + 1); result = sub_1002E757C(*(_QWORD *)(a1 + 680)); } while ( (unsigned int)v5 < (unsigned int)result ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source