{"type": "func", "start": 362272, "end": 362340, "name": "sub_58720", "pseudocode": "// \n// sub_58720 from 0x58720 to 0x58764 (68 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getAdvancedSettings @ 0xb7a7c\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:47 +0000\n// \n\nint __fastcall sub_58720(int a1, int *a2)\n{\n  int v3; // r5\n  int result; // r0\n  int v6; // r6\n\n  if ( !a2 )\n    return 31;\n  v3 = *a2;\n  result = 31;\n  if ( (unsigned int)(*a2 - 41) <= 0x33 && (v3 & 3) == 0 )\n  {\n    if ( (unsigned int)a2[8] > 0x20 )\n      return 31;\n    v6 = a2[10];\n    qmemcpy(a2, (const void *)(a1 + 68672), *a2);\n    a2[10] = v6;\n    *a2 = v3;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_58720 from 0x58720 to 0x58764 (68 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getAdvancedSettings @ 0xb7a7c\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:47 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x58720\nADD             R7, SP, #0xC                                           ; +0x2, 0x58722\nPUSH.W          {R11}                                                  ; +0x4, 0x58724\nMOV             R4, R1                                                 ; +0x8, 0x58728\nCBZ             R1, loc_58746                                          ; +0xa, 0x5872a\nLDR             R5, [R4]                                               ; +0xc, 0x5872c\nMOV             R1, R0                                                 ; +0xe, 0x5872e\nMOVS            R0, #0x1F                                              ; +0x10, 0x58730\nSUB.W           R2, R5, #0x29 ; ')'                                    ; +0x12, 0x58732\nCMP             R2, #0x33 ; '3'                                        ; +0x16, 0x58736\nBHI             loc_5875E                                              ; +0x18, 0x58738\nANDS.W          R2, R5, #3                                             ; +0x1a, 0x5873a\nBNE             loc_5875E                                              ; +0x1e, 0x5873e\nLDR             R0, [R4,#0x20]                                         ; +0x20, 0x58740\nCMP             R0, #0x20 ; ' '                                        ; +0x22, 0x58742\nBLS             loc_5874A                                              ; +0x24, 0x58744\nMOVS            R0, #0x1F                                              ; +0x26, 0x58746\nB               loc_5875E                                              ; +0x28, 0x58748\nLDR             R0, =0x10C40                                           ; +0x2a, 0x5874a\nMOV             R2, R5                                                 ; +0x2c, 0x5874c\nLDR             R6, [R4,#0x28]                                         ; +0x2e, 0x5874e\nADD             R1, R0                                                 ; +0x30, 0x58750\nMOV             R0, R4                                                 ; +0x32, 0x58752\nBLX             __aeabi_memcpy4                                        ; +0x34, 0x58754\nMOVS            R0, #0                                                 ; +0x38, 0x58758\nSTR             R6, [R4,#0x28]                                         ; +0x3a, 0x5875a\nSTR             R5, [R4]                                               ; +0x3c, 0x5875c\nPOP.W           {R11}                                                  ; +0x3e, 0x5875e\nPOP             {R4-R7,PC}                                             ; +0x42, 0x58762", "xrefs": ["FMOD::System::getAdvancedSettings @ 0xb7a7c"], "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"}