{"type": "func", "start": 443786, "end": 443948, "name": "sub_6C58A", "pseudocode": "// \n// sub_6C58A from 0x6c58a to 0x6c62c (162 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:58 +0000\n// \n\nint __fastcall sub_6C58A(int a1)\n{\n  int v2; // r0\n  int v3; // r6\n  int v4; // r0\n  int v5; // r1\n  int v6; // r2\n  int v7; // r3\n  int v8; // r4\n  int v9; // r0\n  int v10; // r1\n  int v11; // r2\n  int v12; // r3\n  int v14[3]; // [sp+0h] [bp-28h] BYREF\n  int v15; // [sp+Ch] [bp-1Ch]\n  int v16; // [sp+10h] [bp-18h] BYREF\n  char v17; // [sp+14h] [bp-14h]\n\n  v16 = *(_DWORD *)(a1 + 28);\n  j_FMOD_OS_CriticalSection_Enter(v16);\n  v17 = 1;\n  v2 = *(_DWORD *)(a1 + 36) - 1;\n  *(_DWORD *)(a1 + 36) = v2;\n  if ( !v2 )\n  {\n    sub_6BB6C(v14, a1 + 44);\n    while ( v15 != -1 )\n    {\n      v4 = *(_DWORD *)(*(_DWORD *)(v14[0] + 12) + 12 * v15 + 8);\n      *(_DWORD *)(v4 + 16) = 1;\n      sub_C0668(*(_DWORD *)(v4 + 4));\n      sub_6BBB8(v14, v5, v6, v7);\n    }\n    v8 = a1 + 76;\n    sub_6BBEA(v14, v8);\n    while ( v15 != -1 )\n    {\n      v9 = sub_6BC10(*(_DWORD *)(*(_DWORD *)(v14[0] + 12) + 12 * v15 + 8));\n      if ( v9 )\n      {\n        v3 = v9;\n        goto LABEL_13;\n      }\n      sub_6BC38(v14, v10, v11, v12);\n    }\n    v3 = sub_6C62C(v8, 0);\n    if ( v3 )\n      goto LABEL_13;\n  }\n  v3 = 0;\nLABEL_13:\n  sub_44984((int)&v16);\n  return v3;\n}", "assembly": "; \n; sub_6C58A from 0x6c58a to 0x6c62c (162 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:58 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x6c58a\nADD             R7, SP, #0xC                                           ; +0x2, 0x6c58c\nPUSH.W          {R11}                                                  ; +0x4, 0x6c58e\nSUB             SP, SP, #0x18                                          ; +0x8, 0x6c592\nMOV             R4, R0                                                 ; +0xa, 0x6c594\nLDR             R0, [R0,#0x1C]                                         ; +0xc, 0x6c596\nSTR             R0, [SP,#0x18+var_8]                                   ; +0xe, 0x6c598\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0x10, 0x6c59a\nMOVS            R6, #1                                                 ; +0x14, 0x6c59e\nSTRB.W          R6, [SP,#0x18+var_4]                                   ; +0x16, 0x6c5a0\nLDR             R0, [R4,#0x24]                                         ; +0x1a, 0x6c5a4\nSUBS            R0, #1                                                 ; +0x1c, 0x6c5a6\nSTR             R0, [R4,#0x24]                                         ; +0x1e, 0x6c5a8\nBEQ             loc_6C5B0                                              ; +0x20, 0x6c5aa\nMOVS            R6, #0                                                 ; +0x22, 0x6c5ac\nB               loc_6C61C                                              ; +0x24, 0x6c5ae\nMOV             R5, SP                                                 ; +0x26, 0x6c5b0\nADD.W           R1, R4, #0x2C ; ','                                    ; +0x28, 0x6c5b2\nMOV             R0, R5                                                 ; +0x2c, 0x6c5b6\nBL              sub_6BB6C                                              ; +0x2e, 0x6c5b8\nLDR             R0, [SP,#0x18+var_C]                                   ; +0x32, 0x6c5bc\nADDS            R1, R0, #1                                             ; +0x34, 0x6c5be\nBEQ             loc_6C5E0                                              ; +0x36, 0x6c5c0\nLDR             R1, [SP,#0x18+var_18]                                  ; +0x38, 0x6c5c2\nADD.W           R0, R0, R0,LSL#1                                       ; +0x3a, 0x6c5c4\nLDR             R1, [R1,#0xC]                                          ; +0x3e, 0x6c5c8\nADD.W           R0, R1, R0,LSL#2                                       ; +0x40, 0x6c5ca\nLDR             R0, [R0,#8]                                            ; +0x44, 0x6c5ce\nSTR             R6, [R0,#0x10]                                         ; +0x46, 0x6c5d0\nLDR             R0, [R0,#4]                                            ; +0x48, 0x6c5d2\nBL              sub_C0668                                              ; +0x4a, 0x6c5d4\nMOV             R0, R5                                                 ; +0x4e, 0x6c5d8\nBL              sub_6BBB8                                              ; +0x50, 0x6c5da\nB               loc_6C5BC                                              ; +0x54, 0x6c5de\nADDS            R4, #0x4C ; 'L'                                        ; +0x56, 0x6c5e0\nMOV             R5, SP                                                 ; +0x58, 0x6c5e2\nMOV             R0, R5                                                 ; +0x5a, 0x6c5e4\nMOV             R1, R4                                                 ; +0x5c, 0x6c5e6\nBL              sub_6BBEA                                              ; +0x5e, 0x6c5e8\nLDR             R0, [SP,#0x18+var_C]                                   ; +0x62, 0x6c5ec\nADDS            R1, R0, #1                                             ; +0x64, 0x6c5ee\nBEQ             loc_6C60E                                              ; +0x66, 0x6c5f0\nLDR             R1, [SP,#0x18+var_18]                                  ; +0x68, 0x6c5f2\nADD.W           R0, R0, R0,LSL#1                                       ; +0x6a, 0x6c5f4\nLDR             R1, [R1,#0xC]                                          ; +0x6e, 0x6c5f8\nADD.W           R0, R1, R0,LSL#2                                       ; +0x70, 0x6c5fa\nLDR             R0, [R0,#8]                                            ; +0x74, 0x6c5fe\nBL              sub_6BC10                                              ; +0x76, 0x6c600\nCBNZ            R0, loc_6C61A                                          ; +0x7a, 0x6c604\nMOV             R0, R5                                                 ; +0x7c, 0x6c606\nBL              sub_6BC38                                              ; +0x7e, 0x6c608\nB               loc_6C5EC                                              ; +0x82, 0x6c60c\nMOV             R0, R4                                                 ; +0x84, 0x6c60e\nBL              sub_6C62C                                              ; +0x86, 0x6c610\nMOV             R6, R0                                                 ; +0x8a, 0x6c614\nCBNZ            R0, loc_6C61C                                          ; +0x8c, 0x6c616\nB               loc_6C5AC                                              ; +0x8e, 0x6c618\nMOV             R6, R0                                                 ; +0x90, 0x6c61a\nADD             R0, SP, #0x18+var_8                                    ; +0x92, 0x6c61c\nBL              sub_44984                                              ; +0x94, 0x6c61e\nMOV             R0, R6                                                 ; +0x98, 0x6c622\nADD             SP, SP, #0x18                                          ; +0x9a, 0x6c624\nPOP.W           {R11}                                                  ; +0x9c, 0x6c626\nPOP             {R4-R7,PC}                                             ; +0xa0, 0x6c62a", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}