{"type": "func", "start": 297904, "end": 298032, "name": "sub_48BB0", "pseudocode": "// \n// sub_48BB0 from 0x48bb0 to 0x48c30 (128 bytes)\n// \n// 0 xrefs:\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:39 +0000\n// \n\nint __fastcall sub_48BB0(_DWORD *a1, int a2, int a3)\n{\n  int v6; // r4\n  int v7; // r6\n  int result; // r0\n  float v9; // s0\n\n  if ( a3 < 0 )\n    return 31;\n  if ( a2 )\n  {\n    v6 = 0;\n    v7 = a2;\n    while ( a3 != v6 )\n    {\n      result = sub_488B0((int *)v7);\n      if ( result )\n        return result;\n      if ( v6 && *(float *)v7 <= *(float *)(v7 - 12) )\n        return 31;\n      v9 = *(float *)(v7 + 4);\n      result = 31;\n      if ( v9 >= 0.0 )\n      {\n        v7 += 12;\n        ++v6;\n        if ( v9 <= 1.0 )\n          continue;\n      }\n      return result;\n    }\n  }\n  a1[43] = a2;\n  a1[44] = a3;\n  a1[10] |= 4u;\n  return 0;\n}", "assembly": "; \n; sub_48BB0 from 0x48bb0 to 0x48c30 (128 bytes)\n; \n; 0 xrefs:\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:39 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x48bb0\nADD             R7, SP, #0xC                                           ; +0x2, 0x48bb2\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0x48bb4\nVPUSH           {D8}                                                   ; +0x8, 0x48bb8\nCMP             R2, #0                                                 ; +0xc, 0x48bbc\nBMI             loc_48C10                                              ; +0xe, 0x48bbe\nMOV             R5, R2                                                 ; +0x10, 0x48bc0\nMOV             R9, R1                                                 ; +0x12, 0x48bc2\nMOV             R8, R0                                                 ; +0x14, 0x48bc4\nCBZ             R1, loc_48C14                                          ; +0x16, 0x48bc6\nVMOV.F32        S16, #1.0                                              ; +0x18, 0x48bc8\nMOVS            R4, #0                                                 ; +0x1c, 0x48bcc\nMOV             R6, R9                                                 ; +0x1e, 0x48bce\nCMP             R5, R4                                                 ; +0x20, 0x48bd0\nBEQ             loc_48C14                                              ; +0x22, 0x48bd2\nMOV             R0, R6                                                 ; +0x24, 0x48bd4\nBL              sub_488B0                                              ; +0x26, 0x48bd6\nCBNZ            R0, loc_48C26                                          ; +0x2a, 0x48bda\nCBZ             R4, loc_48BF0                                          ; +0x2c, 0x48bdc\nVLDR            S0, [R6]                                               ; +0x2e, 0x48bde\nVLDR            S2, [R6,#-0xC]                                         ; +0x32, 0x48be2\nVCMPE.F32       S0, S2                                                 ; +0x36, 0x48be6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3a, 0x48bea\nBLE             loc_48C10                                              ; +0x3e, 0x48bee\nVLDR            S0, [R6,#4]                                            ; +0x40, 0x48bf0\nMOVS            R0, #0x1F                                              ; +0x44, 0x48bf4\nVCMPE.F32       S0, #0.0                                               ; +0x46, 0x48bf6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4a, 0x48bfa\nBLT             loc_48C26                                              ; +0x4e, 0x48bfe\nVCMPE.F32       S0, S16                                                ; +0x50, 0x48c00\nADDS            R6, #0xC                                               ; +0x54, 0x48c04\nADDS            R4, #1                                                 ; +0x56, 0x48c06\nVMRS            APSR_nzcv, FPSCR                                       ; +0x58, 0x48c08\nBLE             loc_48BD0                                              ; +0x5c, 0x48c0c\nB               loc_48C26                                              ; +0x5e, 0x48c0e\nMOVS            R0, #0x1F                                              ; +0x60, 0x48c10\nB               loc_48C26                                              ; +0x62, 0x48c12\nSTRD.W          R9, R5, [R8,#0xAC]                                     ; +0x64, 0x48c14\nLDR.W           R0, [R8,#0x28]                                         ; +0x68, 0x48c18\nORR.W           R0, R0, #4                                             ; +0x6c, 0x48c1c\nSTR.W           R0, [R8,#0x28]                                         ; +0x70, 0x48c20\nMOVS            R0, #0                                                 ; +0x74, 0x48c24\nVPOP            {D8}                                                   ; +0x76, 0x48c26\nPOP.W           {R8,R9,R11}                                            ; +0x7a, 0x48c2a\nPOP             {R4-R7,PC}                                             ; +0x7e, 0x48c2e", "xrefs": [], "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"}