{"type": "func", "start": 442126, "end": 442224, "name": "sub_6BF0E", "pseudocode": "// \n// sub_6BF0E from 0x6bf0e to 0x6bf70 (98 bytes)\n// \n// 1 xrefs:\n// > sub_6BCC4 @ 0x6bcea\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_6BF0E(int a1, _DWORD *a2, int a3, int a4)\n{\n  int v6; // r0\n  int v7; // r5\n  size_t v8; // r0\n  size_t v9; // r2\n  int v10; // r4\n  int v11; // r0\n  int v13; // [sp+0h] [bp-10h] BYREF\n  int v14; // [sp+4h] [bp-Ch]\n\n  v13 = a3;\n  v14 = a4;\n  v13 = *(_DWORD *)(a1 + 28);\n  j_FMOD_OS_CriticalSection_Enter(v13);\n  LOBYTE(v14) = 1;\n  v6 = sub_6C2A8(a1 + 44, a2 + 3);\n  if ( !v6 )\n  {\nLABEL_9:\n    v10 = 0;\n    goto LABEL_10;\n  }\n  v7 = v6;\n  v8 = a2[6];\n  if ( v8 == *(_DWORD *)(v7 + 24) )\n  {\n    v9 = a2[7];\n    if ( v9 <= v8 )\n    {\n      v11 = a2[4];\n      if ( v11 )\n      {\n        *(_DWORD *)(v7 + 32) = v11;\n      }\n      else\n      {\n        qmemcpy(*(void **)(v7 + 20), a2 + 8, v9);\n        *(_DWORD *)(v7 + 28) = a2[7];\n      }\n      sub_C0668(*(_DWORD *)(v7 + 4));\n      goto LABEL_9;\n    }\n  }\n  v10 = 28;\nLABEL_10:\n  sub_44984((int)&v13);\n  return v10;\n}", "assembly": "; \n; sub_6BF0E from 0x6bf0e to 0x6bf70 (98 bytes)\n; \n; 1 xrefs:\n; > sub_6BCC4 @ 0x6bcea\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            {R2-R5,R7,LR}                                          ; +0x0, 0x6bf0e\nADD             R7, SP, #0x10                                          ; +0x2, 0x6bf10\nMOV             R5, R0                                                 ; +0x4, 0x6bf12\nLDR             R0, [R0,#0x1C]                                         ; +0x6, 0x6bf14\nMOV             R4, R1                                                 ; +0x8, 0x6bf16\nSTR             R0, [SP,#8+var_8]                                      ; +0xa, 0x6bf18\nBLX             j_FMOD_OS_CriticalSection_Enter                        ; +0xc, 0x6bf1a\nMOVS            R0, #1                                                 ; +0x10, 0x6bf1e\nADD.W           R1, R4, #0xC                                           ; +0x12, 0x6bf20\nSTRB.W          R0, [SP,#8+var_4]                                      ; +0x16, 0x6bf24\nADD.W           R0, R5, #0x2C ; ','                                    ; +0x1a, 0x6bf28\nBL              sub_6C2A8                                              ; +0x1e, 0x6bf2c\nCBZ             R0, loc_6BF62                                          ; +0x22, 0x6bf30\nMOV             R5, R0                                                 ; +0x24, 0x6bf32\nLDR             R0, [R4,#0x18]                                         ; +0x26, 0x6bf34\nLDR             R1, [R5,#0x18]                                         ; +0x28, 0x6bf36\nCMP             R0, R1                                                 ; +0x2a, 0x6bf38\nBNE             loc_6BF42                                              ; +0x2c, 0x6bf3a\nLDR             R2, [R4,#0x1C]                                         ; +0x2e, 0x6bf3c\nCMP             R2, R0                                                 ; +0x30, 0x6bf3e\nBLS             loc_6BF46                                              ; +0x32, 0x6bf40\nMOVS            R4, #0x1C                                              ; +0x34, 0x6bf42\nB               loc_6BF64                                              ; +0x36, 0x6bf44\nLDR             R0, [R4,#0x10]                                         ; +0x38, 0x6bf46\nCBZ             R0, loc_6BF4E                                          ; +0x3a, 0x6bf48\nSTR             R0, [R5,#0x20]                                         ; +0x3c, 0x6bf4a\nB               loc_6BF5C                                              ; +0x3e, 0x6bf4c\nLDR             R0, [R5,#0x14]                                         ; +0x40, 0x6bf4e\nADD.W           R1, R4, #0x20 ; ' '                                    ; +0x42, 0x6bf50\nBLX             __aeabi_memcpy                                         ; +0x46, 0x6bf54\nLDR             R0, [R4,#0x1C]                                         ; +0x4a, 0x6bf58\nSTR             R0, [R5,#0x1C]                                         ; +0x4c, 0x6bf5a\nLDR             R0, [R5,#4]                                            ; +0x4e, 0x6bf5c\nBL              sub_C0668                                              ; +0x50, 0x6bf5e\nMOVS            R4, #0                                                 ; +0x54, 0x6bf62\nMOV             R0, SP                                                 ; +0x56, 0x6bf64\nBL              sub_44984                                              ; +0x58, 0x6bf66\nMOV             R0, R4                                                 ; +0x5c, 0x6bf6a\nADD             SP, SP, #8                                             ; +0x5e, 0x6bf6c\nPOP             {R4,R5,R7,PC}                                          ; +0x60, 0x6bf6e", "xrefs": ["sub_6BCC4 @ 0x6bcea"], "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"}