// // sub_1005C98A0 from 0x1005c98a0 to 0x1005c9940 (160 bytes) // // 0 xrefs: // // 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:09:27 +0000 // int *__fastcall sub_1005C98A0(int *result, int *a2, int a3) { int v3; // w9 int v4; // w8 v3 = *a2; if ( !*a2 ) { if ( *result >= 1 ) { if ( (unsigned int)*result > 0xC ) a3 = 1; else a3 = dword_100773F74[*result - 1]; } *a2 = a3; v3 = a3; } v4 = 1; switch ( v3 ) { case 2: goto LABEL_14; case 3: goto LABEL_10; case 4: case 5: case 6: *result = v3; return result; case 7: *result = 8; return result; case 8: *result = 12; return result; default: if ( v3 == 1000 ) { LABEL_10: *result = 2; } else { v4 = *result; LABEL_14: *result = v4; } return result; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source