{"type": "func", "start": 490464, "end": 490562, "name": "sub_77BE0", "pseudocode": "// \n// sub_77BE0 from 0x77be0 to 0x77c42 (98 bytes)\n// \n// 7 xrefs:\n// > sub_77C5C @ 0x77da0\n// > sub_77C5C @ 0x77dca\n// > sub_77C5C @ 0x77df4\n// > sub_77C5C @ 0x77e1e\n// > sub_77C5C @ 0x77ea8\n// > sub_77C5C @ 0x77ed0\n// > sub_77C5C @ 0x77ef8\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:41:12 +0000\n// \n\nint __fastcall sub_77BE0(int a1, int a2)\n{\n  float v3; // s4\n  float v4; // s2\n\n  if ( a2 == 0x80000000 )\n    return 0;\n  v3 = (float)((float)a2 * 0.00000010851) + 85.333;\n  v4 = 127.0;\n  if ( v3 < 0.0 )\n    v3 = 0.0;\n  if ( v3 < 128.0 )\n    v4 = v3;\n  return dword_400C0[v4];\n}", "assembly": "; \n; sub_77BE0 from 0x77be0 to 0x77c42 (98 bytes)\n; \n; 7 xrefs:\n; > sub_77C5C @ 0x77da0\n; > sub_77C5C @ 0x77dca\n; > sub_77C5C @ 0x77df4\n; > sub_77C5C @ 0x77e1e\n; > sub_77C5C @ 0x77ea8\n; > sub_77C5C @ 0x77ed0\n; > sub_77C5C @ 0x77ef8\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:41:12 +0000\n; \nCMP.W           R1, #0x80000000                                        ; +0x0, 0x77be0\nBNE             loc_77BEC                                              ; +0x4, 0x77be4\nVLDR            S0, =0.0                                               ; +0x6, 0x77be6\nB               loc_77C3C                                              ; +0xa, 0x77bea\nVMOV            S0, R1                                                 ; +0xc, 0x77bec\nVLDR            S2, =1.0851e-7                                         ; +0x10, 0x77bf0\nVLDR            S4, =85.333                                            ; +0x14, 0x77bf4\nVCVT.F32.S32    S0, S0                                                 ; +0x18, 0x77bf8\nVMLA.F32        S4, S0, S2                                             ; +0x1c, 0x77bfc\nVLDR            S0, =0.0                                               ; +0x20, 0x77c00\nVLDR            S2, =127.0                                             ; +0x24, 0x77c04\nVCMPE.F32       S4, #0.0                                               ; +0x28, 0x77c08\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2c, 0x77c0c\nIT LT                                                                  ; +0x30, 0x77c10\nVMOVLT.F32      S4, S0                                                 ; +0x32, 0x77c12\nVLDR            S0, =128.0                                             ; +0x36, 0x77c16\nVCMPE.F32       S4, S0                                                 ; +0x3a, 0x77c1a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x77c1e\nIT LT                                                                  ; +0x42, 0x77c22\nVMOVLT.F32      S2, S4                                                 ; +0x44, 0x77c24\nVCVT.S32.F32    S0, S2                                                 ; +0x48, 0x77c28\nLDR             R1, =(dword_400C0 - 0x77C32)                           ; +0x4c, 0x77c2c\nADD             R1, PC; dword_400C0                                    ; +0x4e, 0x77c2e\nVMOV            R0, S0                                                 ; +0x50, 0x77c30\nADD.W           R0, R1, R0,LSL#2                                       ; +0x54, 0x77c34\nVLDR            S0, [R0]                                               ; +0x58, 0x77c38\nVMOV            R0, S0                                                 ; +0x5c, 0x77c3c\nBX              LR                                                     ; +0x60, 0x77c40", "xrefs": ["sub_77C5C @ 0x77da0", "sub_77C5C @ 0x77dca", "sub_77C5C @ 0x77df4", "sub_77C5C @ 0x77e1e", "sub_77C5C @ 0x77ea8", "sub_77C5C @ 0x77ed0", "sub_77C5C @ 0x77ef8"], "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"}