{"type": "func", "start": 324656, "end": 324738, "name": "sub_4F430", "pseudocode": "// \n// sub_4F430 from 0x4f430 to 0x4f482 (82 bytes)\n// \n// 6 xrefs:\n// > sub_4F22C @ 0x4f2cc\n// > sub_4FB88 @ 0x4fb94\n// > sub_73AD8 @ 0x7499e\n// > sub_7A260 @ 0x7a570\n// > sub_82C94 @ 0x830a8\n// > sub_86DAC @ 0x872f2\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:42 +0000\n// \n\nint __fastcall sub_4F430(int a1, int a2)\n{\n  float v2; // s0\n\n  if ( a2 <= 1 )\n    a2 = 1;\n  *(_DWORD *)(a1 + 2432) = a2;\n  v2 = (float)((float)a2 * 0.4) * *(float *)(a1 + 2400);\n  if ( v2 >= 0.01 )\n    *(_DWORD *)(a1 + 1512) = (int)(float)((float)*(int *)(*(_DWORD *)(a1 + 4) + 12) / v2);\n  return 0;\n}", "assembly": "; \n; sub_4F430 from 0x4f430 to 0x4f482 (82 bytes)\n; \n; 6 xrefs:\n; > sub_4F22C @ 0x4f2cc\n; > sub_4FB88 @ 0x4fb94\n; > sub_73AD8 @ 0x7499e\n; > sub_7A260 @ 0x7a570\n; > sub_82C94 @ 0x830a8\n; > sub_86DAC @ 0x872f2\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:42 +0000\n; \nCMP             R1, #1                                                 ; +0x0, 0x4f430\nIT LE                                                                  ; +0x2, 0x4f432\nMOVLE           R1, #1                                                 ; +0x4, 0x4f434\nVMOV            S0, R1                                                 ; +0x6, 0x4f436\nSTR.W           R1, [R0,#0x980]                                        ; +0xa, 0x4f43a\nVLDR            S2, =0.4                                               ; +0xe, 0x4f43e\nADD.W           R1, R0, #0x960                                         ; +0x12, 0x4f442\nVCVT.F32.S32    S0, S0                                                 ; +0x16, 0x4f446\nVMUL.F32        S0, S0, S2                                             ; +0x1a, 0x4f44a\nVLDR            S2, [R1]                                               ; +0x1e, 0x4f44e\nVMUL.F32        S0, S0, S2                                             ; +0x22, 0x4f452\nVLDR            S2, =0.01                                              ; +0x26, 0x4f456\nVCMPE.F32       S0, S2                                                 ; +0x2a, 0x4f45a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2e, 0x4f45e\nBLT             loc_4F47E                                              ; +0x32, 0x4f462\nLDR             R1, [R0,#4]                                            ; +0x34, 0x4f464\nADD.W           R0, R0, #0x5E8                                         ; +0x36, 0x4f466\nVLDR            S2, [R1,#0xC]                                          ; +0x3a, 0x4f46a\nVCVT.F32.S32    S2, S2                                                 ; +0x3e, 0x4f46e\nVDIV.F32        S0, S2, S0                                             ; +0x42, 0x4f472\nVCVT.S32.F32    S0, S0                                                 ; +0x46, 0x4f476\nVSTR            S0, [R0]                                               ; +0x4a, 0x4f47a\nMOVS            R0, #0                                                 ; +0x4e, 0x4f47e\nBX              LR                                                     ; +0x50, 0x4f480", "xrefs": ["sub_4F22C @ 0x4f2cc", "sub_4FB88 @ 0x4fb94", "sub_73AD8 @ 0x7499e", "sub_7A260 @ 0x7a570", "sub_82C94 @ 0x830a8", "sub_86DAC @ 0x872f2"], "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"}