{"type": "func", "start": 298330, "end": 298416, "name": "sub_48D5A", "pseudocode": "// \n// sub_48D5A from 0x48d5a to 0x48db0 (86 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_48D5A(float *a1, float a2, int a3, int a4)\n{\n  int result; // r0\n  int v7; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = a4;\n  result = (*(int (__fastcall **)(float *, int *))(*(_DWORD *)a1 + 76))(a1, &v7);\n  if ( !result )\n  {\n    if ( (v7 & 0x10) != 0 )\n    {\n      if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n      {\n        return 29;\n      }\n      else\n      {\n        result = 31;\n        if ( a2 >= 0.0 && a2 <= 5.0 )\n        {\n          a1[47] = a2;\n          return 0;\n        }\n      }\n    }\n    else\n    {\n      return 40;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_48D5A from 0x48d5a to 0x48db0 (86 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            {R2-R5,R7,LR}                                          ; +0x0, 0x48d5a\nADD             R7, SP, #0x10                                          ; +0x2, 0x48d5c\nMOV             R4, R0                                                 ; +0x4, 0x48d5e\nLDR             R0, [R0]                                               ; +0x6, 0x48d60\nMOV             R5, R1                                                 ; +0x8, 0x48d62\nADD             R1, SP, #8+var_4                                       ; +0xa, 0x48d64\nLDR             R2, [R0,#0x4C]                                         ; +0xc, 0x48d66\nMOV             R0, R4                                                 ; +0xe, 0x48d68\nBLX             R2                                                     ; +0x10, 0x48d6a\nCBNZ            R0, loc_48DAC                                          ; +0x12, 0x48d6c\nLDRB.W          R0, [SP,#8+var_4]                                      ; +0x14, 0x48d6e\nLSLS            R0, R0, #0x1B                                          ; +0x18, 0x48d72\nBMI             loc_48D7A                                              ; +0x1a, 0x48d74\nMOVS            R0, #0x28 ; '('                                        ; +0x1c, 0x48d76\nB               loc_48DAC                                              ; +0x1e, 0x48d78\nAND.W           R0, R5, #0x7F800000                                    ; +0x20, 0x48d7a\nVMOV            S0, R5                                                 ; +0x24, 0x48d7e\nCMP.W           R0, #0x7F800000                                        ; +0x28, 0x48d82\nBNE             loc_48D8C                                              ; +0x2c, 0x48d86\nMOVS            R0, #0x1D                                              ; +0x2e, 0x48d88\nB               loc_48DAC                                              ; +0x30, 0x48d8a\nVCMPE.F32       S0, #0.0                                               ; +0x32, 0x48d8c\nMOVS            R0, #0x1F                                              ; +0x36, 0x48d90\nVMRS            APSR_nzcv, FPSCR                                       ; +0x38, 0x48d92\nBLT             loc_48DAC                                              ; +0x3c, 0x48d96\nVMOV.F32        S2, #5.0                                               ; +0x3e, 0x48d98\nVCMPE.F32       S0, S2                                                 ; +0x42, 0x48d9c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x46, 0x48da0\nITT LE                                                                 ; +0x4a, 0x48da4\nVSTRLE          S0, [R4,#0xBC]                                         ; +0x4c, 0x48da6\nMOVLE           R0, #0                                                 ; +0x50, 0x48daa\nADD             SP, SP, #8                                             ; +0x52, 0x48dac\nPOP             {R4,R5,R7,PC}                                          ; +0x54, 0x48dae", "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"}