{"type": "func", "start": 787916, "end": 787988, "name": "sub_C05CC", "pseudocode": "// \n// sub_C05CC from 0xc05cc to 0xc0614 (72 bytes)\n// \n// 6 xrefs:\n// > sub_6AC1C @ 0x6ac70\n// > sub_6AC1C @ 0x6ac7a\n// > sub_6C14C @ 0x6c168\n// > sub_BD1E0 @ 0xbd23e\n// > sub_BE65C @ 0xbe6ca\n// > sub_BE65C @ 0xbe6dc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_C05CC(unsigned __int64 **a1)\n{\n  unsigned __int64 *v2; // r0\n  unsigned __int64 *v3; // r5\n\n  v2 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 4u, \"../android/src/fmod_os_misc.cpp\", 0x2C2u, 0, 0);\n  if ( !v2 )\n    return 38;\n  v3 = v2;\n  if ( sem_init((sem_t *)v2, 0, 0) )\n    return 28;\n  *a1 = v3;\n  return 0;\n}", "assembly": "; \n; sub_C05CC from 0xc05cc to 0xc0614 (72 bytes)\n; \n; 6 xrefs:\n; > sub_6AC1C @ 0x6ac70\n; > sub_6AC1C @ 0x6ac7a\n; > sub_6C14C @ 0x6c168\n; > sub_BD1E0 @ 0xbd23e\n; > sub_BE65C @ 0xbe6ca\n; > sub_BE65C @ 0xbe6dc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R0-R5,R7,LR}                                          ; +0x0, 0xc05cc\nADD             R7, SP, #0x18                                          ; +0x2, 0xc05ce\nMOV             R4, R0                                                 ; +0x4, 0xc05d0\nLDR             R0, =(off_E6144 - 0xC05DC)                             ; +0x6, 0xc05d2\nMOVS            R1, #1                                                 ; +0x8, 0xc05d4\nMOVS            R2, #0                                                 ; +0xa, 0xc05d6\nADD             R0, PC; off_E6144                                      ; +0xc, 0xc05d8\nMOVW            R3, #0x2C2                                             ; +0xe, 0xc05da\nLDR             R0, [R0]; off_E8000                                    ; +0x12, 0xc05de\nLDR             R0, [R0]; dword_F2488                                  ; +0x14, 0xc05e0\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x16, 0xc05e2\nSTRD.W          R2, R2, [SP,#0x10+var_10]                              ; +0x1a, 0xc05e6\nSTR             R1, [SP,#0x10+var_8]                                   ; +0x1e, 0xc05ea\nMOVS            R1, #4                                                 ; +0x20, 0xc05ec\nLDR             R2, =(aAndroidSrcFmod - 0xC05F4); \"../android/src/fmod_os_misc.cpp\" ... ; +0x22, 0xc05ee\nADD             R2, PC; \"../android/src/fmod_os_misc.cpp\"              ; +0x24, 0xc05f0\nBL              sub_BD410                                              ; +0x26, 0xc05f2\nCBZ             R0, loc_C060E                                          ; +0x2a, 0xc05f6\nMOVS            R1, #0; pshared                                        ; +0x2c, 0xc05f8\nMOVS            R2, #0; value                                          ; +0x2e, 0xc05fa\nMOV             R5, R0                                                 ; +0x30, 0xc05fc\nBLX             sem_init                                               ; +0x32, 0xc05fe\nCMP             R0, #0                                                 ; +0x36, 0xc0602\nITTE EQ                                                                ; +0x38, 0xc0604\nSTREQ           R5, [R4]                                               ; +0x3a, 0xc0606\nMOVEQ           R0, #0                                                 ; +0x3c, 0xc0608\nMOVNE           R0, #0x1C                                              ; +0x3e, 0xc060a\nB               loc_C0610                                              ; +0x40, 0xc060c\nMOVS            R0, #0x26 ; '&'                                        ; +0x42, 0xc060e\nADD             SP, SP, #0x10                                          ; +0x44, 0xc0610\nPOP             {R4,R5,R7,PC}                                          ; +0x46, 0xc0612", "xrefs": ["sub_6AC1C @ 0x6ac70", "sub_6AC1C @ 0x6ac7a", "sub_6C14C @ 0x6c168", "sub_BD1E0 @ 0xbd23e", "sub_BE65C @ 0xbe6ca", "sub_BE65C @ 0xbe6dc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}