{"type": "func", "start": 496256, "end": 496374, "name": "sub_79280", "pseudocode": "// \n// sub_79280 from 0x79280 to 0x792f6 (118 bytes)\n// \n// 3 xrefs:\n// > sub_779E6 @ 0x779f0\n// > sub_78EB8 @ 0x79094\n// > sub_79454 @ 0x797c0\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_79280(int a1)\n{\n  int v1; // r2\n  float v2; // s0\n  float v3; // s2\n  unsigned int v4; // r3\n  float v6; // s2\n\n  v1 = a1 + 11484;\n  v2 = (float)((float)*(unsigned int *)(a1 + 11532) * 0.001)\n     / (float)(*(float *)(a1 + 11548) * (float)*(int *)(a1 + 11512));\n  v3 = (float)(v2 * 0.001) * (float)*(int *)(*(_DWORD *)(a1 + 4) + 12);\n  v4 = (unsigned int)(float)(v3 + 0.5);\n  if ( *(_DWORD *)(a1 + 11488) > v4 )\n    v4 = *(_DWORD *)(a1 + 11488);\n  *(_DWORD *)(a1 + 11484) = v4;\n  v6 = (float)v4 / v3;\n  *(float *)(v1 + 8) = v6;\n  *(float *)(v1 + 56) = v6 * v2;\n  return 0;\n}", "assembly": "; \n; sub_79280 from 0x79280 to 0x792f6 (118 bytes)\n; \n; 3 xrefs:\n; > sub_779E6 @ 0x779f0\n; > sub_78EB8 @ 0x79094\n; > sub_79454 @ 0x797c0\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            {R4,R6,R7,LR}                                          ; +0x0, 0x79280\nADD             R7, SP, #8                                             ; +0x2, 0x79282\nMOVW            R1, #0x2CDC                                            ; +0x4, 0x79284\nADDS            R2, R0, R1                                             ; +0x8, 0x79288\nVLDR            S4, =0.001                                             ; +0xa, 0x7928a\nVLDR            S2, [R2,#0x1C]                                         ; +0xe, 0x7928e\nVLDR            S0, [R2,#0x40]                                         ; +0x12, 0x79292\nVCVT.F32.S32    S2, S2                                                 ; +0x16, 0x79296\nVMUL.F32        S0, S0, S2                                             ; +0x1a, 0x7929a\nVLDR            S2, [R2,#0x30]                                         ; +0x1e, 0x7929e\nVCVT.F32.U32    S2, S2                                                 ; +0x22, 0x792a2\nLDR             R3, [R0,#4]                                            ; +0x26, 0x792a6\nVMUL.F32        S2, S2, S4                                             ; +0x28, 0x792a8\nVDIV.F32        S0, S2, S0                                             ; +0x2c, 0x792ac\nVMUL.F32        S2, S0, S4                                             ; +0x30, 0x792b0\nVLDR            S4, [R3,#0xC]                                          ; +0x34, 0x792b4\nVCVT.F32.S32    S4, S4                                                 ; +0x38, 0x792b8\nVMUL.F32        S2, S2, S4                                             ; +0x3c, 0x792bc\nVMOV.F32        S4, #0.5                                               ; +0x40, 0x792c0\nVADD.F32        S4, S2, S4                                             ; +0x44, 0x792c4\nVCVT.U32.F32    S4, S4                                                 ; +0x48, 0x792c8\nLDR             R4, [R2,#4]                                            ; +0x4c, 0x792cc\nVMOV            R3, S4                                                 ; +0x4e, 0x792ce\nCMP             R4, R3                                                 ; +0x52, 0x792d2\nIT HI                                                                  ; +0x54, 0x792d4\nMOVHI           R3, R4                                                 ; +0x56, 0x792d6\nVMOV            S4, R3                                                 ; +0x58, 0x792d8\nSTR             R3, [R0,R1]                                            ; +0x5c, 0x792dc\nMOVS            R0, #0                                                 ; +0x5e, 0x792de\nVCVT.F32.U32    S4, S4                                                 ; +0x60, 0x792e0\nVDIV.F32        S2, S4, S2                                             ; +0x64, 0x792e4\nVMUL.F32        S0, S2, S0                                             ; +0x68, 0x792e8\nVSTR            S2, [R2,#8]                                            ; +0x6c, 0x792ec\nVSTR            S0, [R2,#0x38]                                         ; +0x70, 0x792f0\nPOP             {R4,R6,R7,PC}                                          ; +0x74, 0x792f4", "xrefs": ["sub_779E6 @ 0x779f0", "sub_78EB8 @ 0x79094", "sub_79454 @ 0x797c0"], "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"}