{"type": "func", "start": 6443019968, "end": 6443020177, "name": "sub_18008AEC0", "pseudocode": "// \n// sub_18008AEC0 from 0x18008aec0 to 0x18008af91 (209 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ae720\n// > <???> @ 0x1801fa530\n// \n// This function is hookable on this platform (idp: pc, 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 10:53:42 +0000\n// \n\n__int64 __fastcall sub_18008AEC0(float **a1, int a2, _DWORD *a3, __int64 a4)\n{\n  float *v5; // r9\n  int v6; // edx\n  int v7; // edx\n  int v8; // edx\n  float v9; // xmm3_4\n\n  v5 = *a1;\n  if ( a2 )\n  {\n    v6 = a2 - 1;\n    if ( v6 )\n    {\n      v7 = v6 - 1;\n      if ( v7 )\n      {\n        v8 = v7 - 1;\n        if ( v8 )\n        {\n          if ( v8 == 1 )\n          {\n            *a3 = *((_DWORD *)v5 + 2432);\n            if ( a4 )\n            {\n              v9 = v5[2432];\nLABEL_16:\n              sub_1800B7CA0(a4, 32, \"%.02f\", v9);\n            }\n          }\n        }\n        else\n        {\n          *a3 = *((_DWORD *)v5 + 2431);\n          if ( a4 )\n          {\n            v9 = v5[2431];\n            goto LABEL_16;\n          }\n        }\n      }\n      else\n      {\n        *a3 = *((_DWORD *)v5 + 2430);\n        if ( a4 )\n        {\n          v9 = v5[2430];\n          goto LABEL_16;\n        }\n      }\n    }\n    else\n    {\n      *a3 = *((_DWORD *)v5 + 2429);\n      if ( a4 )\n      {\n        v9 = v5[2429];\n        goto LABEL_16;\n      }\n    }\n  }\n  else\n  {\n    *a3 = *((_DWORD *)v5 + 2428);\n    if ( a4 )\n    {\n      v9 = v5[2428];\n      goto LABEL_16;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_18008AEC0 from 0x18008aec0 to 0x18008af91 (209 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ae720\n; > <???> @ 0x1801fa530\n; \n; This function is hookable on this platform (idp: pc, 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 10:53:42 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x18008aec0\nmov     r10, r9                                                        ; +0x4, 0x18008aec4\nmov     r9, [rcx]                                                      ; +0x7, 0x18008aec7\ntest    edx, edx                                                       ; +0xa, 0x18008aeca\njz      loc_18008AF56                                                  ; +0xc, 0x18008aecc\nsub     edx, 1                                                         ; +0x12, 0x18008aed2\njz      short loc_18008AF3C                                            ; +0x15, 0x18008aed5\nsub     edx, 1                                                         ; +0x17, 0x18008aed7\njz      short loc_18008AF22                                            ; +0x1a, 0x18008aeda\nsub     edx, 1                                                         ; +0x1c, 0x18008aedc\njz      short loc_18008AF08                                            ; +0x1f, 0x18008aedf\ncmp     edx, 1                                                         ; +0x21, 0x18008aee1\njnz     loc_18008AF8A                                                  ; +0x24, 0x18008aee4\nmov     eax, [r9+2600h]                                                ; +0x2a, 0x18008aeea\nmov     [r8], eax                                                      ; +0x31, 0x18008aef1\ntest    r10, r10                                                       ; +0x34, 0x18008aef4\njz      loc_18008AF8A                                                  ; +0x37, 0x18008aef7\nmovss   xmm3, dword ptr [r9+2600h]                                     ; +0x3d, 0x18008aefd\njmp     short loc_18008AF6E                                            ; +0x46, 0x18008af06\nmov     eax, [r9+25FCh]                                                ; +0x48, 0x18008af08\nmov     [r8], eax                                                      ; +0x4f, 0x18008af0f\ntest    r10, r10                                                       ; +0x52, 0x18008af12\njz      short loc_18008AF8A                                            ; +0x55, 0x18008af15\nmovss   xmm3, dword ptr [r9+25FCh]                                     ; +0x57, 0x18008af17\njmp     short loc_18008AF6E                                            ; +0x60, 0x18008af20\nmov     eax, [r9+25F8h]                                                ; +0x62, 0x18008af22\nmov     [r8], eax                                                      ; +0x69, 0x18008af29\ntest    r10, r10                                                       ; +0x6c, 0x18008af2c\njz      short loc_18008AF8A                                            ; +0x6f, 0x18008af2f\nmovss   xmm3, dword ptr [r9+25F8h]                                     ; +0x71, 0x18008af31\njmp     short loc_18008AF6E                                            ; +0x7a, 0x18008af3a\nmov     eax, [r9+25F4h]                                                ; +0x7c, 0x18008af3c\nmov     [r8], eax                                                      ; +0x83, 0x18008af43\ntest    r10, r10                                                       ; +0x86, 0x18008af46\njz      short loc_18008AF8A                                            ; +0x89, 0x18008af49\nmovss   xmm3, dword ptr [r9+25F4h]                                     ; +0x8b, 0x18008af4b\njmp     short loc_18008AF6E                                            ; +0x94, 0x18008af54\nmov     eax, [r9+25F0h]                                                ; +0x96, 0x18008af56\nmov     [r8], eax                                                      ; +0x9d, 0x18008af5d\ntest    r10, r10                                                       ; +0xa0, 0x18008af60\njz      short loc_18008AF8A                                            ; +0xa3, 0x18008af63\nmovss   xmm3, dword ptr [r9+25F0h]                                     ; +0xa5, 0x18008af65\ncvtps2pd xmm3, xmm3                                                    ; +0xae, 0x18008af6e\nlea     r8, a02f; \"%.02f\"                                              ; +0xb1, 0x18008af71\nmov     edx, 20h ; ' '                                                 ; +0xb8, 0x18008af78\nmov     rcx, r10                                                       ; +0xbd, 0x18008af7d\nmovq    r9, xmm3                                                       ; +0xc0, 0x18008af80\ncall    sub_1800B7CA0                                                  ; +0xc5, 0x18008af85\nxor     eax, eax                                                       ; +0xca, 0x18008af8a\nadd     rsp, 28h                                                       ; +0xcc, 0x18008af8c\nretn                                                                   ; +0xd0, 0x18008af90", "xrefs": ["<???> @ 0x1801ae720", "<???> @ 0x1801fa530"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}