{"type": "func", "start": 401168, "end": 401286, "name": "sub_61F10", "pseudocode": "// \n// sub_61F10 from 0x61f10 to 0x61f86 (118 bytes)\n// \n// 5 xrefs:\n// > sub_58CA8 @ 0x59334\n// > sub_58CA8 @ 0x5935c\n// > sub_58CA8 @ 0x59384\n// > sub_58CA8 @ 0x593ac\n// > sub_62360 @ 0x625c8\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:52 +0000\n// \n\nint __fastcall sub_61F10(int a1, int a2, int a3, int a4)\n{\n  int v5; // r10\n  int result; // r0\n  int v10; // r0\n  _DWORD *v11; // r5\n\n  v5 = a1 + 4 * a2;\n  result = 0;\n  if ( !*(_DWORD *)(v5 + 67176) )\n  {\n    v10 = sub_BD580(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 108, \"../../src/fmod_systemi_dsp.cpp\", 618, 0);\n    if ( v10 )\n    {\n      v11 = (_DWORD *)v10;\n      sub_BD86C(v10 + 28);\n      *v11 = a1;\n      result = sub_89A00(v11, a2, a3, a4);\n      if ( !result )\n      {\n        *(_DWORD *)(v5 + 67176) = v11;\n        return 0;\n      }\n    }\n    else\n    {\n      return 38;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_61F10 from 0x61f10 to 0x61f86 (118 bytes)\n; \n; 5 xrefs:\n; > sub_58CA8 @ 0x59334\n; > sub_58CA8 @ 0x5935c\n; > sub_58CA8 @ 0x59384\n; > sub_58CA8 @ 0x593ac\n; > sub_62360 @ 0x625c8\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:52 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x61f10\nADD             R7, SP, #0xC                                           ; +0x2, 0x61f12\nPUSH.W          {R7-R11}                                               ; +0x4, 0x61f14\nMOV             R4, R0                                                 ; +0x8, 0x61f18\nADD.W           R10, R0, R1,LSL#2                                      ; +0xa, 0x61f1a\nLDR             R0, =0x10668                                           ; +0xe, 0x61f1e\nMOV             R6, R1                                                 ; +0x10, 0x61f20\nLDR.W           R1, [R10,R0]                                           ; +0x12, 0x61f22\nMOVS            R0, #0                                                 ; +0x16, 0x61f26\nCBZ             R1, loc_61F30                                          ; +0x18, 0x61f28\nPOP.W           {R3,R8-R11}                                            ; +0x1a, 0x61f2a\nPOP             {R4-R7,PC}                                             ; +0x1e, 0x61f2e\nLDR             R1, =(off_E6144 - 0x61F3E)                             ; +0x20, 0x61f30\nMOV             R9, R2                                                 ; +0x22, 0x61f32\nMOV             R8, R3                                                 ; +0x24, 0x61f34\nMOVW            R3, #0x26A                                             ; +0x26, 0x61f36\nADD             R1, PC; off_E6144                                      ; +0x2a, 0x61f3a\nLDR             R1, [R1]; off_E8000                                    ; +0x2c, 0x61f3c\nLDR             R1, [R1]; dword_F2488                                  ; +0x2e, 0x61f3e\nLDR.W           R1, [R1,#(dword_F25D4 - 0xF2488)]                      ; +0x30, 0x61f40\nSTR             R0, [SP,#4+var_4]                                      ; +0x34, 0x61f44\nLDR             R2, =(aSrcFmodSystemi_2 - 0x61F50); \"../../src/fmod_systemi_dsp.cpp\" ... ; +0x36, 0x61f46\nMOV             R0, R1                                                 ; +0x38, 0x61f48\nMOVS            R1, #0x6C ; 'l'                                        ; +0x3a, 0x61f4a\nADD             R2, PC; \"../../src/fmod_systemi_dsp.cpp\"               ; +0x3c, 0x61f4c\nBL              sub_BD580                                              ; +0x3e, 0x61f4e\nCBZ             R0, loc_61F82                                          ; +0x42, 0x61f52\nMOV             R5, R0                                                 ; +0x44, 0x61f54\nADDS            R0, #0x1C                                              ; +0x46, 0x61f56\nLDR.W           R11, [R7,#-0x1C+arg_0]                                 ; +0x48, 0x61f58\nBL              sub_BD86C                                              ; +0x4c, 0x61f5c\nMOV             R0, R5                                                 ; +0x50, 0x61f60\nMOV             R1, R6                                                 ; +0x52, 0x61f62\nMOV             R2, R9                                                 ; +0x54, 0x61f64\nMOV             R3, R8                                                 ; +0x56, 0x61f66\nSTR             R4, [R5]                                               ; +0x58, 0x61f68\nSTR.W           R11, [SP,#4+var_4]                                     ; +0x5a, 0x61f6a\nBL              sub_89A00                                              ; +0x5e, 0x61f6e\nLDR             R1, =0x10668                                           ; +0x62, 0x61f72\nCMP             R0, #0                                                 ; +0x64, 0x61f74\nBNE             loc_61F2A                                              ; +0x66, 0x61f76\nADD.W           R0, R10, R1                                            ; +0x68, 0x61f78\nSTR             R5, [R0]                                               ; +0x6c, 0x61f7c\nMOVS            R0, #0                                                 ; +0x6e, 0x61f7e\nB               loc_61F2A                                              ; +0x70, 0x61f80\nMOVS            R0, #0x26 ; '&'                                        ; +0x72, 0x61f82\nB               loc_61F2A                                              ; +0x74, 0x61f84", "xrefs": ["sub_58CA8 @ 0x59334", "sub_58CA8 @ 0x5935c", "sub_58CA8 @ 0x59384", "sub_58CA8 @ 0x593ac", "sub_62360 @ 0x625c8"], "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"}