{"type": "func", "start": 438384, "end": 438532, "name": "sub_6B070", "pseudocode": "// \n// sub_6B070 from 0x6b070 to 0x6b104 (148 bytes)\n// \n// 2 xrefs:\n// > sub_5215C @ 0x521d8\n// > sub_522EC @ 0x52354\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_6B070(int a1, int a2, int a3)\n{\n  int result; // r0\n\n  *(_DWORD *)(a1 + 12) = a3;\n  *(_DWORD *)(a1 + 16) = a2;\n  result = sub_6AC1C(a1 + 1140, 0x20000, 1);\n  if ( !result )\n  {\n    result = sub_6AC1C(a1 + 1188, 0x20000, 4);\n    if ( !result )\n    {\n      result = j_FMOD_OS_CriticalSection_Create(a1 + 20, 0);\n      if ( !result )\n      {\n        result = sub_6B114(a1, 0, 0, -1);\n        if ( !result )\n        {\n          result = sub_BE65C(a1 + 24, \"FMOD profiler thread (recv)\", sub_6B1AE, a1, 7, 0, 0, 0, 0);\n          if ( !result )\n            return sub_BE65C(a1 + 324, \"FMOD profiler thread (send)\", sub_6B1C6, a1, 7, 0, 0, 0, 0);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6B070 from 0x6b070 to 0x6b104 (148 bytes)\n; \n; 2 xrefs:\n; > sub_5215C @ 0x521d8\n; > sub_522EC @ 0x52354\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            {R4-R7,LR}                                             ; +0x0, 0x6b070\nADD             R7, SP, #0xC                                           ; +0x2, 0x6b072\nPUSH.W          {R11}                                                  ; +0x4, 0x6b074\nSUB             SP, SP, #0x18                                          ; +0x8, 0x6b078\nSTRD.W          R2, R1, [R0,#0xC]                                      ; +0xa, 0x6b07a\nMOV             R4, R0                                                 ; +0xe, 0x6b07e\nADDW            R0, R0, #0x474                                         ; +0x10, 0x6b080\nMOV.W           R1, #0x20000                                           ; +0x14, 0x6b084\nMOVS            R2, #1                                                 ; +0x18, 0x6b088\nBL              sub_6AC1C                                              ; +0x1a, 0x6b08a\nCBNZ            R0, loc_6B0FC                                          ; +0x1e, 0x6b08e\nADDW            R0, R4, #0x4A4                                         ; +0x20, 0x6b090\nMOV.W           R1, #0x20000                                           ; +0x24, 0x6b094\nMOVS            R2, #4                                                 ; +0x28, 0x6b098\nBL              sub_6AC1C                                              ; +0x2a, 0x6b09a\nCBNZ            R0, loc_6B0FC                                          ; +0x2e, 0x6b09e\nADD.W           R0, R4, #0x14                                          ; +0x30, 0x6b0a0\nMOVS            R1, #0                                                 ; +0x34, 0x6b0a4\nBLX             j_FMOD_OS_CriticalSection_Create                       ; +0x36, 0x6b0a6\nCBNZ            R0, loc_6B0FC                                          ; +0x3a, 0x6b0aa\nMOV             R0, R4                                                 ; +0x3c, 0x6b0ac\nMOVS            R1, #0                                                 ; +0x3e, 0x6b0ae\nMOVS            R2, #0                                                 ; +0x40, 0x6b0b0\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x42, 0x6b0b2\nMOVS            R6, #0                                                 ; +0x46, 0x6b0b6\nBL              sub_6B114                                              ; +0x48, 0x6b0b8\nCBNZ            R0, loc_6B0FC                                          ; +0x4c, 0x6b0bc\nMOVS            R5, #7                                                 ; +0x4e, 0x6b0be\nADD.W           R0, R4, #0x18                                          ; +0x50, 0x6b0c0\nSTRD.W          R5, R6, [SP,#0x18+var_18]                              ; +0x54, 0x6b0c4\nMOV             R3, R4                                                 ; +0x58, 0x6b0c8\nSTRD.W          R6, R6, [SP,#0x18+var_10]                              ; +0x5a, 0x6b0ca\nSTR             R6, [SP,#0x18+var_8]                                   ; +0x5e, 0x6b0ce\nLDR             R1, =(aFmodProfilerTh - 0x6B0D8); \"FMOD profiler thread (recv)\" ... ; +0x60, 0x6b0d0\nLDR             R2, =(sub_6B1AE+1 - 0x6B0DA)                           ; +0x62, 0x6b0d2\nADD             R1, PC; \"FMOD profiler thread (recv)\"                  ; +0x64, 0x6b0d4\nADD             R2, PC; sub_6B1AE                                      ; +0x66, 0x6b0d6\nBL              sub_BE65C                                              ; +0x68, 0x6b0d8\nCBNZ            R0, loc_6B0FC                                          ; +0x6c, 0x6b0dc\nMOVS            R0, #0                                                 ; +0x6e, 0x6b0de\nMOV             R3, R4                                                 ; +0x70, 0x6b0e0\nSTRD.W          R5, R0, [SP,#0x18+var_18]                              ; +0x72, 0x6b0e2\nSTRD.W          R0, R0, [SP,#0x18+var_10]                              ; +0x76, 0x6b0e6\nSTR             R0, [SP,#0x18+var_8]                                   ; +0x7a, 0x6b0ea\nADD.W           R0, R4, #0x144                                         ; +0x7c, 0x6b0ec\nLDR             R1, =(aFmodProfilerTh_0 - 0x6B0F8); \"FMOD profiler thread (send)\" ... ; +0x80, 0x6b0f0\nLDR             R2, =(sub_6B1C6+1 - 0x6B0FA)                           ; +0x82, 0x6b0f2\nADD             R1, PC; \"FMOD profiler thread (send)\"                  ; +0x84, 0x6b0f4\nADD             R2, PC; sub_6B1C6                                      ; +0x86, 0x6b0f6\nBL              sub_BE65C                                              ; +0x88, 0x6b0f8\nADD             SP, SP, #0x18                                          ; +0x8c, 0x6b0fc\nPOP.W           {R11}                                                  ; +0x8e, 0x6b0fe\nPOP             {R4-R7,PC}                                             ; +0x92, 0x6b102", "xrefs": ["sub_5215C @ 0x521d8", "sub_522EC @ 0x52354"], "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"}