{"type": "func", "start": 374808, "end": 374862, "name": "sub_5B818", "pseudocode": "// \n// sub_5B818 from 0x5b818 to 0x5b84e (54 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getGeometryOcclusion @ 0xba7b4\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_5B818(int a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)\n{\n  int result; // r0\n  _DWORD *v8; // [sp+8h] [bp-10h] BYREF\n  _DWORD *v9; // [sp+Ch] [bp-Ch] BYREF\n\n  v8 = a3;\n  v9 = a4;\n  result = 31;\n  if ( a2 )\n  {\n    if ( a3 )\n    {\n      v8 = nullptr;\n      v9 = nullptr;\n      result = sub_4CE80(a1 + 71272, a2, a3, (float *)&v9, (float *)&v8);\n      if ( !result )\n      {\n        if ( a4 )\n          *a4 = v9;\n        if ( a5 )\n          *a5 = v8;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5B818 from 0x5b818 to 0x5b84e (54 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getGeometryOcclusion @ 0xba7b4\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            {R0-R4,R6,R7,LR}                                       ; +0x0, 0x5b818\nADD             R7, SP, #0x18                                          ; +0x2, 0x5b81a\nMOV             R4, R3                                                 ; +0x4, 0x5b81c\nMOV             R3, R0                                                 ; +0x6, 0x5b81e\nMOVS            R0, #0x1F                                              ; +0x8, 0x5b820\nCBZ             R1, loc_5B84A                                          ; +0xa, 0x5b822\nCBZ             R2, loc_5B84A                                          ; +0xc, 0x5b824\nMOVS            R0, #0                                                 ; +0xe, 0x5b826\nSTRD.W          R0, R0, [SP,#0x10+var_8]                               ; +0x10, 0x5b828\nADD             R0, SP, #0x10+var_8                                    ; +0x14, 0x5b82c\nSTR             R0, [SP,#0x10+var_10]                                  ; +0x16, 0x5b82e\nLDR             R0, =0x11668                                           ; +0x18, 0x5b830\nADD             R0, R3                                                 ; +0x1a, 0x5b832\nADD             R3, SP, #0x10+var_4                                    ; +0x1c, 0x5b834\nBL              sub_4CE80                                              ; +0x1e, 0x5b836\nCBNZ            R0, loc_5B84A                                          ; +0x22, 0x5b83a\nLDR             R1, [R7,#-8+arg_0]                                     ; +0x24, 0x5b83c\nCBZ             R4, loc_5B844                                          ; +0x26, 0x5b83e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x28, 0x5b840\nSTR             R2, [R4]                                               ; +0x2a, 0x5b842\nCBZ             R1, loc_5B84A                                          ; +0x2c, 0x5b844\nLDR             R2, [SP,#0x10+var_8]                                   ; +0x2e, 0x5b846\nSTR             R2, [R1]                                               ; +0x30, 0x5b848\nADD             SP, SP, #0x10                                          ; +0x32, 0x5b84a\nPOP             {R4,R6,R7,PC}                                          ; +0x34, 0x5b84c", "xrefs": ["FMOD::System::getGeometryOcclusion @ 0xba7b4"], "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"}