{"type": "func", "start": 470148, "end": 470296, "name": "sub_72C84", "pseudocode": "// \n// sub_72C84 from 0x72c84 to 0x72d18 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x114750\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:00 +0000\n// \n\n__int64 __fastcall sub_72C84(__int64 a1, int a2, float *a3, __int64 a4)\n{\n  __int64 v4; // x8\n  float v7; // s8\n  float v8; // s0\n\n  v4 = *(_QWORD *)(a1 + 8);\n  if ( a2 == 2 )\n  {\n    v7 = *(float *)(v4 + 44);\n  }\n  else\n  {\n    if ( a2 != 1 )\n      return 31;\n    v7 = *(float *)(v4 + 40);\n  }\n  v8 = log10f(v7) * 20.0;\n  if ( v7 <= 0.0 )\n    v8 = -80.0;\n  *a3 = v8;\n  if ( a4 )\n    sub_E3FC8(a4, 32, \"%.1f\", v8);\n  return 0;\n}", "assembly": "; \n; sub_72C84 from 0x72c84 to 0x72d18 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x114750\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:00 +0000\n; \nSTR             D8, [SP,#-0x10+var_20]!                                ; +0x0, 0x72c84\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x72c88\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x72c8c\nLDR             X8, [X0,#8]                                            ; +0xc, 0x72c90\nMOV             X19, X3                                                ; +0x10, 0x72c94\nCMP             W1, #2                                                 ; +0x14, 0x72c98\nMOV             X20, X2                                                ; +0x18, 0x72c9c\nADD             X29, SP, #0x20                                         ; +0x1c, 0x72ca0\nB.EQ            loc_72CB8                                              ; +0x20, 0x72ca4\nCMP             W1, #1                                                 ; +0x24, 0x72ca8\nB.NE            loc_72D04                                              ; +0x28, 0x72cac\nLDR             S8, [X8,#0x28]                                         ; +0x2c, 0x72cb0\nB               loc_72CBC                                              ; +0x30, 0x72cb4\nLDR             S8, [X8,#0x2C]                                         ; +0x34, 0x72cb8\nMOV             V0.16B, V8.16B; x                                      ; +0x38, 0x72cbc\nBL              .log10f                                                ; +0x3c, 0x72cc0\nFMOV            S1, #20.0                                              ; +0x40, 0x72cc4\nMOV             W8, #0xC2A00000                                        ; +0x44, 0x72cc8\nFMUL            S0, S0, S1                                             ; +0x48, 0x72ccc\nFCMP            S8, #0.0                                               ; +0x4c, 0x72cd0\nFMOV            S1, W8                                                 ; +0x50, 0x72cd4\nFCSEL           S0, S0, S1, GT                                         ; +0x54, 0x72cd8\nSTR             S0, [X20]                                              ; +0x58, 0x72cdc\nCBZ             X19, loc_72CFC                                         ; +0x5c, 0x72ce0\nADRP            X2, #a1f@PAGE; \"%.1f\"                                  ; +0x60, 0x72ce4\nFCVT            D0, S0                                                 ; +0x64, 0x72ce8\nADD             X2, X2, #a1f@PAGEOFF; \"%.1f\"                           ; +0x68, 0x72cec\nMOV             W1, #0x20 ; ' '                                        ; +0x6c, 0x72cf0\nMOV             X0, X19                                                ; +0x70, 0x72cf4\nBL              sub_E3FC8                                              ; +0x74, 0x72cf8\nMOV             W0, WZR                                                ; +0x78, 0x72cfc\nB               loc_72D08                                              ; +0x7c, 0x72d00\nMOV             W0, #0x1F                                              ; +0x80, 0x72d04\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x72d08\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x72d0c\nLDR             D8, [SP+0x20+var_20],#0x30                             ; +0x8c, 0x72d10\nRET                                                                    ; +0x90, 0x72d14", "xrefs": ["<???> @ 0x114750"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}