// // sub_1005DBA94 from 0x1005dba94 to 0x1005dbc38 (420 bytes) // // 1 xrefs: // > sub_1005FB59C @ 0x1005fb670 // // 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:37 +0000 // __int64 __fastcall sub_1005DBA94(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6, pthread_t *a7) { int v13; // w8 __int64 result; // x0 _QWORD *v15; // x0 void *v16; // x23 pthread_t v17; // [xsp+8h] [xbp-88h] BYREF sched_param v18; // [xsp+10h] [xbp-80h] BYREF pthread_attr_t v19; // [xsp+18h] [xbp-78h] BYREF if ( !pthread_attr_init(&v19) && !pthread_attr_setdetachstate(&v19, 2) ) { v18 = 0; switch ( a5 ) { case -32775: v13 = 99; goto LABEL_11; case -32774: v13 = 97; goto LABEL_11; case -32773: v13 = 94; goto LABEL_11; case -32772: v13 = 90; goto LABEL_11; case -32771: v13 = 87; goto LABEL_11; case -32770: v13 = 83; LABEL_11: v18.sched_priority = v13; break; default: v18.sched_priority = a5; break; } if ( !pthread_attr_setstacksize(&v19, (unsigned int)(a6 + 0x4000)) && !pthread_attr_setschedpolicy(&v19, 4) && !pthread_attr_setschedparam(&v19, &v18) ) { v15 = sub_1005D7660( *((__int64 **)off_1009DA5E8 + 54), 272, (char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/platforms/ios/src/fmod_os_misc.cpp", 440, 0); if ( !v15 ) return 38; v16 = v15; *v15 = a2; v15[1] = a3; sub_1005ECD38(v15 + 2, a1, 256); if ( !pthread_create(&v17, &v19, (void *(__cdecl *)(void *))sub_1005DBA30, v16) ) { result = pthread_attr_destroy(&v19); if ( !(_DWORD)result ) { *a7 = v17; return result; } } } } return 28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source