// // sub_756A4C from 0x756a4c to 0x756b18 (204 bytes) // // 24 xrefs: // > sub_74E068 @ 0x74e3f2 // > sub_74E484 @ 0x74e83c // > sub_74EC08 @ 0x74ee48 // > sub_74EEBC @ 0x74f0fc // > sub_74F1DC @ 0x74f396 // > sub_74F3D4 @ 0x74f56e // > sub_74F5D4 @ 0x74f758 // > sub_74F8B8 @ 0x74fa86 // > sub_74FAF4 @ 0x74fc80 // > sub_74FCEC @ 0x74fd62 // > sub_74FD94 @ 0x74fe0a // > sub_74FE3C @ 0x74fe90 // > sub_765C04 @ 0x766012 // > sub_7660F4 @ 0x766502 // > sub_766888 @ 0x766a8e // > sub_766AF4 @ 0x766cfa // > sub_766DD8 @ 0x766f8c // > sub_766FC8 @ 0x767174 // > sub_7671E0 @ 0x767362 // > sub_7674C8 @ 0x767690 // > sub_7676FC @ 0x767886 // > sub_7678F0 @ 0x767966 // > sub_767998 @ 0x767a0e // > sub_767A40 @ 0x767a92 // // 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 // void __fastcall sub_756A4C(int a1, unsigned int *a2, int a3) { char v6; // r3 unsigned int **v7; // r3 unsigned int *v8; // r2 unsigned int v9; // r1 _DWORD *exception; // r0 v6 = byte_ACCF58; __dmb(0xFu); if ( (v6 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_ACCF58) ) { dword_ACCF50 = 0; _cxa_guard_release((__guard *)&byte_ACCF58); } if ( &pthread_create ) { if ( pthread_mutex_lock((pthread_mutex_t *)&dword_ACCF50) ) { exception = _cxa_allocate_exception(4u); *exception = &off_A2DF38; _cxa_throw( exception, (struct type_info *)&`typeinfo for'__gnu_cxx::__concurrence_lock_error, (void (*)(void *))sub_756204); } if ( *(_DWORD *)(*(_DWORD *)(a1 + 12) + 4 * a3) ) goto LABEL_5; v8 = a2 + 1; __dmb(0xFu); do v9 = __ldrex(v8); while ( __strex(v9 + 1, v8) ); __dmb(0xFu); v7 = (unsigned int **)(4 * a3 + *(_DWORD *)(a1 + 12)); LABEL_17: *v7 = a2; goto LABEL_7; } v7 = (unsigned int **)(*(_DWORD *)(a1 + 12) + 4 * a3); if ( !*v7 ) { ++a2[1]; goto LABEL_17; } LABEL_5: if ( a2 ) (*(void (__fastcall **)(unsigned int *))(*a2 + 4))(a2); LABEL_7: if ( &pthread_create ) { if ( pthread_mutex_unlock((pthread_mutex_t *)&dword_ACCF50) ) sub_756274(); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source