{"type": "func", "start": 674192, "end": 674326, "name": "sub_A4990", "pseudocode": "// \n// sub_A4990 from 0xa4990 to 0xa4a16 (134 bytes)\n// \n// 1 xrefs:\n// > sub_A4110 @ 0xa4148\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_A4990(int a1, int a2)\n{\n  float v2; // s0\n  float v5; // s4\n  float v6; // s6\n  float v7; // s0\n  float v8; // s2\n\n  v2 = *(float *)(a2 + 24);\n  v5 = v2 * 0.009;\n  v6 = (float)(v2 * 0.01) * (float)(v2 * 0.01);\n  v7 = 0.1;\n  v8 = (float)(v6 * v5) + 0.1;\n  if ( v8 >= 0.1 )\n  {\n    v7 = (float)(v6 * v5) + 0.1;\n    if ( v8 > 1.0 )\n      v7 = 1.0;\n  }\n  sub_AC2A8(a1 + 376, COERCE_INT(v7 * 0.061), 1068037571, 985963430, 1.47, (float)*(int *)(a1 + 1832));\n  sub_A3DF8(a1, a2);\n  return 0;\n}", "assembly": "; \n; sub_A4990 from 0xa4990 to 0xa4a16 (134 bytes)\n; \n; 1 xrefs:\n; > sub_A4110 @ 0xa4148\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0xa4990\nADD             R7, SP, #0x10                                          ; +0x2, 0xa4992\nVLDR            S0, [R1,#0x18]                                         ; +0x4, 0xa4994\nMOV             R4, R1                                                 ; +0x8, 0xa4998\nVLDR            S2, =0.009                                             ; +0xa, 0xa499a\nMOV             R5, R0                                                 ; +0xe, 0xa499e\nVMUL.F32        S4, S0, S2                                             ; +0x10, 0xa49a0\nVLDR            S2, =0.01                                              ; +0x14, 0xa49a4\nVMUL.F32        S0, S0, S2                                             ; +0x18, 0xa49a8\nVMUL.F32        S6, S0, S0                                             ; +0x1c, 0xa49ac\nVLDR            S0, =0.1                                               ; +0x20, 0xa49b0\nVMOV.F32        S2, S0                                                 ; +0x24, 0xa49b4\nVMLA.F32        S2, S6, S4                                             ; +0x28, 0xa49b8\nVCMPE.F32       S2, S0                                                 ; +0x2c, 0xa49bc\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30, 0xa49c0\nBLT             loc_A49DC                                              ; +0x34, 0xa49c4\nVMOV.F32        S4, #1.0                                               ; +0x36, 0xa49c6\nVMOV.F32        S0, S2                                                 ; +0x3a, 0xa49ca\nVCMPE.F32       S2, S4                                                 ; +0x3e, 0xa49ce\nVMRS            APSR_nzcv, FPSCR                                       ; +0x42, 0xa49d2\nIT GT                                                                  ; +0x46, 0xa49d6\nVMOVGT.F32      S0, S4                                                 ; +0x48, 0xa49d8\nADD.W           R0, R5, #0x728                                         ; +0x4c, 0xa49dc\nLDR             R2, =0x3FA8F5C3; int                                   ; +0x50, 0xa49e0\nLDR             R3, =0x3AC49BA6; int                                   ; +0x52, 0xa49e2\nVLDR            S2, [R0]                                               ; +0x54, 0xa49e4\nLDR             R0, flt_A4A24                                          ; +0x58, 0xa49e8\nVCVT.F32.S32    S2, S2                                                 ; +0x5a, 0xa49ea\nSTR             R0, [SP,#8+var_8]; float                               ; +0x5e, 0xa49ee\nADD.W           R0, R5, #0x178; int                                    ; +0x60, 0xa49f0\nVSTR            S2, [SP,#8+var_4]                                      ; +0x64, 0xa49f4\nVLDR            S2, =0.061                                             ; +0x68, 0xa49f8\nVMUL.F32        S0, S0, S2                                             ; +0x6c, 0xa49fc\nVMOV            R1, S0; int                                            ; +0x70, 0xa4a00\nBL              sub_AC2A8                                              ; +0x74, 0xa4a04\nMOV             R0, R5                                                 ; +0x78, 0xa4a08\nMOV             R1, R4                                                 ; +0x7a, 0xa4a0a\nBL              sub_A3DF8                                              ; +0x7c, 0xa4a0c\nMOVS            R0, #0                                                 ; +0x80, 0xa4a10\nADD             SP, SP, #8                                             ; +0x82, 0xa4a12\nPOP             {R4,R5,R7,PC}                                          ; +0x84, 0xa4a14", "xrefs": ["sub_A4110 @ 0xa4148"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}