{"type": "func", "start": 728772, "end": 728948, "name": "sub_B1EC4", "pseudocode": "// \n// sub_B1EC4 from 0xb1ec4 to 0xb1f74 (176 bytes)\n// \n// 3 xrefs:\n// > sub_B1E14 @ 0xb1eac\n// > sub_B1FC8 @ 0xb20a8\n// > sub_B2550 @ 0xb2558\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\n__int64 __fastcall sub_B1EC4(__int64 a1)\n{\n  void *v2; // x0\n  float *v3; // x20\n  float v4; // w8\n  int v5; // s0\n  float v6; // s4\n  float v7; // s0\n  float v8; // s2\n  float v9; // w8\n  float v10; // s1\n\n  v2 = *(void **)(a1 + 576);\n  v3 = (float *)(a1 + 33388);\n  *(_QWORD *)(a1 + 592) = 0;\n  if ( v2 )\n    memset(v2, 0, *(unsigned int *)(a1 + 588));\n  v4 = *v3;\n  v5 = *(_DWORD *)(a1 + 612);\n  *(float *)(a1 + 544) = *v3;\n  v6 = *(float *)(a1 + 33392);\n  v7 = (float)v5;\n  v8 = v4 * (float)((float)(v4 * 0.02) * v7);\n  *(float *)(a1 + 552) = v6 * 0.01;\n  *(float *)(a1 + 548) = v6;\n  *(float *)(a1 + 556) = 1.0 - (float)(v6 * 0.01);\n  v9 = *(float *)(a1 + 33396);\n  v10 = fmaxf(v8, 4.0);\n  *(float *)(a1 + 604) = v10;\n  *(float *)(a1 + 608) = v10;\n  *(float *)(a1 + 560) = v9;\n  *(float *)(a1 + 600) = v9 / v7;\n  return 0;\n}", "assembly": "; \n; sub_B1EC4 from 0xb1ec4 to 0xb1f74 (176 bytes)\n; \n; 3 xrefs:\n; > sub_B1E14 @ 0xb1eac\n; > sub_B1FC8 @ 0xb20a8\n; > sub_B2550 @ 0xb2558\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0xb1ec4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xb1ec8\nMOV             X19, X0                                                ; +0x8, 0xb1ecc\nLDR             X0, [X0,#0x240]; s                                     ; +0xc, 0xb1ed0\nMOV             W8, #0x826C                                            ; +0x10, 0xb1ed4\nADD             X20, X19, X8                                           ; +0x14, 0xb1ed8\nADD             X29, SP, #0x10                                         ; +0x18, 0xb1edc\nSTR             XZR, [X19,#0x250]                                      ; +0x1c, 0xb1ee0\nCBZ             X0, loc_B1EF4                                          ; +0x20, 0xb1ee4\nLDR             W2, [X19,#0x24C]; n                                    ; +0x24, 0xb1ee8\nMOV             W1, WZR; c                                             ; +0x28, 0xb1eec\nBL              .memset                                                ; +0x2c, 0xb1ef0\nLDR             W8, [X20]                                              ; +0x30, 0xb1ef4\nADRP            X9, #dword_2F0BC@PAGE                                  ; +0x34, 0xb1ef8\nLDR             S1, [X9,#dword_2F0BC@PAGEOFF]                          ; +0x38, 0xb1efc\nADRP            X9, #dword_2EF78@PAGE                                  ; +0x3c, 0xb1f00\nLDR             S0, [X19,#0x264]                                       ; +0x40, 0xb1f04\nLDR             S2, [X9,#dword_2EF78@PAGEOFF]                          ; +0x44, 0xb1f08\nSTR             W8, [X19,#0x220]                                       ; +0x48, 0xb1f0c\nLDR             S4, [X20,#4]                                           ; +0x4c, 0xb1f10\nFMOV            S3, W8                                                 ; +0x50, 0xb1f14\nSCVTF           S0, S0                                                 ; +0x54, 0xb1f18\nFMUL            S2, S3, S2                                             ; +0x58, 0xb1f1c\nFMUL            S2, S2, S0                                             ; +0x5c, 0xb1f20\nFMUL            S2, S3, S2                                             ; +0x60, 0xb1f24\nFMUL            S1, S4, S1                                             ; +0x64, 0xb1f28\nFMOV            S3, #1.0                                               ; +0x68, 0xb1f2c\nSTR             S1, [X19,#0x228]                                       ; +0x6c, 0xb1f30\nFSUB            S1, S3, S1                                             ; +0x70, 0xb1f34\nSTR             S4, [X19,#0x224]                                       ; +0x74, 0xb1f38\nSTR             S1, [X19,#0x22C]                                       ; +0x78, 0xb1f3c\nLDR             W8, [X20,#8]                                           ; +0x7c, 0xb1f40\nFMOV            S1, #4.0                                               ; +0x80, 0xb1f44\nFMAXNM          S1, S2, S1                                             ; +0x84, 0xb1f48\nSTR             S1, [X19,#0x25C]                                       ; +0x88, 0xb1f4c\nSTR             S1, [X19,#0x260]                                       ; +0x8c, 0xb1f50\nFMOV            S1, W8                                                 ; +0x90, 0xb1f54\nFDIV            S0, S1, S0                                             ; +0x94, 0xb1f58\nSTR             W8, [X19,#0x230]                                       ; +0x98, 0xb1f5c\nSTR             S0, [X19,#0x258]                                       ; +0x9c, 0xb1f60\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa0, 0xb1f64\nMOV             W0, WZR                                                ; +0xa4, 0xb1f68\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa8, 0xb1f6c\nRET                                                                    ; +0xac, 0xb1f70", "xrefs": ["sub_B1E14 @ 0xb1eac", "sub_B1FC8 @ 0xb20a8", "sub_B2550 @ 0xb2558"], "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"}