{"type": "func", "start": 374512, "end": 374620, "name": "sub_5B6F0", "pseudocode": "// \n// sub_5B6F0 from 0x5b6f0 to 0x5b75c (108 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setGeometrySettings @ 0xba5e0\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:48 +0000\n// \n\nint __fastcall sub_5B6F0(int a1, int a2)\n{\n  int result; // r0\n  int v5; // r1\n  int v6; // r2\n  int v7; // r3\n  _DWORD *v8; // r5\n  _DWORD *v9; // r6\n\n  if ( (a2 & 0x7F800000) == 0x7F800000 )\n    return 29;\n  if ( *(float *)&a2 <= 0.0 )\n    return 31;\n  result = sub_4D1F0(a1 + 71272, *(float *)&a2);\n  if ( !result )\n  {\n    v8 = *(_DWORD **)(a1 + 71268);\n    if ( v8 )\n    {\n      v9 = (_DWORD *)(a1 + 71268);\n      do\n      {\n        sub_4EBE8((int)v8, v5, v6, v7);\n        v8 = (_DWORD *)*v8;\n      }\n      while ( (_DWORD *)*v9 != v8 );\n      do\n      {\n        result = sub_4EB70(v8, a2);\n        if ( result )\n          break;\n        v8 = (_DWORD *)*v8;\n        result = 0;\n      }\n      while ( (_DWORD *)*v9 != v8 );\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5B6F0 from 0x5b6f0 to 0x5b75c (108 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setGeometrySettings @ 0xba5e0\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:48 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5b6f0\nADD             R7, SP, #0xC                                           ; +0x2, 0x5b6f2\nPUSH.W          {R11}                                                  ; +0x4, 0x5b6f4\nMOV             R6, R0                                                 ; +0x8, 0x5b6f8\nAND.W           R0, R1, #0x7F800000                                    ; +0xa, 0x5b6fa\nCMP.W           R0, #0x7F800000                                        ; +0xe, 0x5b6fe\nBNE             loc_5B708                                              ; +0x12, 0x5b702\nMOVS            R0, #0x1D                                              ; +0x14, 0x5b704\nB               loc_5B752                                              ; +0x16, 0x5b706\nVMOV            S0, R1                                                 ; +0x18, 0x5b708\nMOV             R4, R1                                                 ; +0x1c, 0x5b70c\nVCMPE.F32       S0, #0.0                                               ; +0x1e, 0x5b70e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0x5b712\nBLE             loc_5B750                                              ; +0x26, 0x5b716\nLDR             R0, =0x11668                                           ; +0x28, 0x5b718\nMOV             R1, R4                                                 ; +0x2a, 0x5b71a\nADD             R0, R6                                                 ; +0x2c, 0x5b71c\nBL              sub_4D1F0                                              ; +0x2e, 0x5b71e\nCBNZ            R0, loc_5B752                                          ; +0x32, 0x5b722\nLDR             R0, =0x11664                                           ; +0x34, 0x5b724\nLDR             R5, [R6,R0]                                            ; +0x36, 0x5b726\nCBZ             R5, loc_5B758                                          ; +0x38, 0x5b728\nADD             R6, R0                                                 ; +0x3a, 0x5b72a\nMOV             R0, R5                                                 ; +0x3c, 0x5b72c\nBL              sub_4EBE8                                              ; +0x3e, 0x5b72e\nLDR             R5, [R5]                                               ; +0x42, 0x5b732\nLDR             R0, [R6]                                               ; +0x44, 0x5b734\nCMP             R0, R5                                                 ; +0x46, 0x5b736\nBNE             loc_5B72C                                              ; +0x48, 0x5b738\nMOV             R0, R5                                                 ; +0x4a, 0x5b73a\nMOV             R1, R4                                                 ; +0x4c, 0x5b73c\nBL              sub_4EB70                                              ; +0x4e, 0x5b73e\nCBNZ            R0, loc_5B752                                          ; +0x52, 0x5b742\nLDR             R5, [R5]                                               ; +0x54, 0x5b744\nMOVS            R0, #0                                                 ; +0x56, 0x5b746\nLDR             R1, [R6]                                               ; +0x58, 0x5b748\nCMP             R1, R5                                                 ; +0x5a, 0x5b74a\nBNE             loc_5B73A                                              ; +0x5c, 0x5b74c\nB               loc_5B752                                              ; +0x5e, 0x5b74e\nMOVS            R0, #0x1F                                              ; +0x60, 0x5b750\nPOP.W           {R11}                                                  ; +0x62, 0x5b752\nPOP             {R4-R7,PC}                                             ; +0x66, 0x5b756\nMOVS            R0, #0                                                 ; +0x68, 0x5b758\nB               loc_5B752                                              ; +0x6a, 0x5b75a", "xrefs": ["FMOD::System::setGeometrySettings @ 0xba5e0"], "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"}