// // sub_1004A3738 from 0x1004a3738 to 0x1004a37d8 (160 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int *__fastcall sub_1004A3738(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_10064AF74[*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