{"type": "func", "start": 6443036624, "end": 6443036964, "name": "sub_18008EFD0", "pseudocode": "// \n// sub_18008EFD0 from 0x18008efd0 to 0x18008f124 (340 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ae840\n// > <???> @ 0x1801fa65c\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_18008EFD0(float **a1, int a2, _DWORD *a3, __int64 a4)\n{\n  float *v5; // r9\n  float v6; // xmm3_4\n\n  v5 = *a1;\n  switch ( a2 )\n  {\n    case 0:\n      *a3 = *((_DWORD *)v5 + 249);\n      if ( a4 )\n      {\n        v6 = v5[249];\n        goto LABEL_18;\n      }\n      break;\n    case 1:\n      *a3 = *((_DWORD *)v5 + 250);\n      if ( a4 )\n      {\n        v6 = v5[250];\n        goto LABEL_18;\n      }\n      break;\n    case 2:\n      *a3 = *((_DWORD *)v5 + 251);\n      if ( a4 )\n      {\n        v6 = v5[251];\n        goto LABEL_18;\n      }\n      break;\n    case 3:\n      *a3 = *((_DWORD *)v5 + 252);\n      if ( a4 )\n      {\n        v6 = v5[252];\n        goto LABEL_18;\n      }\n      break;\n    case 4:\n      *a3 = *((_DWORD *)v5 + 253);\n      if ( a4 )\n      {\n        v6 = v5[253];\n        goto LABEL_18;\n      }\n      break;\n    case 5:\n      *a3 = *((_DWORD *)v5 + 254);\n      if ( a4 )\n      {\n        v6 = v5[254];\n        goto LABEL_18;\n      }\n      break;\n    case 6:\n      *a3 = *((_DWORD *)v5 + 255);\n      if ( a4 )\n      {\n        v6 = v5[255];\n        goto LABEL_18;\n      }\n      break;\n    case 7:\n      *a3 = *((_DWORD *)v5 + 256);\n      if ( a4 )\n      {\n        v6 = v5[256];\nLABEL_18:\n        sub_1800B7CA0(a4, 32, \"%.02f\", v6);\n      }\n      break;\n    default:\n      return 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_18008EFD0 from 0x18008efd0 to 0x18008f124 (340 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ae840\n; > <???> @ 0x1801fa65c\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\nsub     rsp, 28h                                                       ; +0x0, 0x18008efd0\nmov     r10, r9                                                        ; +0x4, 0x18008efd4\nmov     r9, [rcx]                                                      ; +0x7, 0x18008efd7\ncmp     edx, 7; switch 8 cases                                         ; +0xa, 0x18008efda\nja      def_18008EFF7; jumptable 000000018008EFF7 default case         ; +0xd, 0x18008efdd\nmovsxd  rax, edx                                                       ; +0x13, 0x18008efe3\nlea     rdx, cs:180000000h                                             ; +0x16, 0x18008efe6\nmov     ecx, ds:(jpt_18008EFF7 - 180000000h)[rdx+rax*4]                ; +0x1d, 0x18008efed\nadd     rcx, rdx                                                       ; +0x24, 0x18008eff4\njmp     rcx; switch jump                                               ; +0x27, 0x18008eff7\nmov     eax, [r9+3E4h]; jumptable 000000018008EFF7 case 0              ; +0x29, 0x18008eff9\nmov     [r8], eax                                                      ; +0x30, 0x18008f000\ntest    r10, r10                                                       ; +0x33, 0x18008f003\njz      def_18008EFF7; jumptable 000000018008EFF7 default case         ; +0x36, 0x18008f006\nmovss   xmm3, dword ptr [r9+3E4h]                                      ; +0x3c, 0x18008f00c\njmp     loc_18008F0E0                                                  ; +0x45, 0x18008f015\nmov     eax, [r9+3E8h]; jumptable 000000018008EFF7 case 1              ; +0x4a, 0x18008f01a\nmov     [r8], eax                                                      ; +0x51, 0x18008f021\ntest    r10, r10                                                       ; +0x54, 0x18008f024\njz      def_18008EFF7; jumptable 000000018008EFF7 default case         ; +0x57, 0x18008f027\nmovss   xmm3, dword ptr [r9+3E8h]                                      ; +0x5d, 0x18008f02d\njmp     loc_18008F0E0                                                  ; +0x66, 0x18008f036\nmov     eax, [r9+3ECh]; jumptable 000000018008EFF7 case 2              ; +0x6b, 0x18008f03b\nmov     [r8], eax                                                      ; +0x72, 0x18008f042\ntest    r10, r10                                                       ; +0x75, 0x18008f045\njz      def_18008EFF7; jumptable 000000018008EFF7 default case         ; +0x78, 0x18008f048\nmovss   xmm3, dword ptr [r9+3ECh]                                      ; +0x7e, 0x18008f04e\njmp     loc_18008F0E0                                                  ; +0x87, 0x18008f057\nmov     eax, [r9+3F0h]; jumptable 000000018008EFF7 case 3              ; +0x8c, 0x18008f05c\nmov     [r8], eax                                                      ; +0x93, 0x18008f063\ntest    r10, r10                                                       ; +0x96, 0x18008f066\njz      def_18008EFF7; jumptable 000000018008EFF7 default case         ; +0x99, 0x18008f069\nmovss   xmm3, dword ptr [r9+3F0h]                                      ; +0x9f, 0x18008f06f\njmp     short loc_18008F0E0                                            ; +0xa8, 0x18008f078\nmov     eax, [r9+3F4h]; jumptable 000000018008EFF7 case 4              ; +0xaa, 0x18008f07a\nmov     [r8], eax                                                      ; +0xb1, 0x18008f081\ntest    r10, r10                                                       ; +0xb4, 0x18008f084\njz      short def_18008EFF7; jumptable 000000018008EFF7 default case   ; +0xb7, 0x18008f087\nmovss   xmm3, dword ptr [r9+3F4h]                                      ; +0xb9, 0x18008f089\njmp     short loc_18008F0E0                                            ; +0xc2, 0x18008f092\nmov     eax, [r9+3F8h]; jumptable 000000018008EFF7 case 5              ; +0xc4, 0x18008f094\nmov     [r8], eax                                                      ; +0xcb, 0x18008f09b\ntest    r10, r10                                                       ; +0xce, 0x18008f09e\njz      short def_18008EFF7; jumptable 000000018008EFF7 default case   ; +0xd1, 0x18008f0a1\nmovss   xmm3, dword ptr [r9+3F8h]                                      ; +0xd3, 0x18008f0a3\njmp     short loc_18008F0E0                                            ; +0xdc, 0x18008f0ac\nmov     eax, [r9+3FCh]; jumptable 000000018008EFF7 case 6              ; +0xde, 0x18008f0ae\nmov     [r8], eax                                                      ; +0xe5, 0x18008f0b5\ntest    r10, r10                                                       ; +0xe8, 0x18008f0b8\njz      short def_18008EFF7; jumptable 000000018008EFF7 default case   ; +0xeb, 0x18008f0bb\nmovss   xmm3, dword ptr [r9+3FCh]                                      ; +0xed, 0x18008f0bd\njmp     short loc_18008F0E0                                            ; +0xf6, 0x18008f0c6\nmov     eax, [r9+400h]; jumptable 000000018008EFF7 case 7              ; +0xf8, 0x18008f0c8\nmov     [r8], eax                                                      ; +0xff, 0x18008f0cf\ntest    r10, r10                                                       ; +0x102, 0x18008f0d2\njz      short def_18008EFF7; jumptable 000000018008EFF7 default case   ; +0x105, 0x18008f0d5\nmovss   xmm3, dword ptr [r9+400h]                                      ; +0x107, 0x18008f0d7\ncvtps2pd xmm3, xmm3                                                    ; +0x110, 0x18008f0e0\nlea     r8, a02f; \"%.02f\"                                              ; +0x113, 0x18008f0e3\nmov     edx, 20h ; ' '                                                 ; +0x11a, 0x18008f0ea\nmov     rcx, r10                                                       ; +0x11f, 0x18008f0ef\nmovq    r9, xmm3                                                       ; +0x122, 0x18008f0f2\ncall    sub_1800B7CA0                                                  ; +0x127, 0x18008f0f7\nxor     eax, eax; jumptable 000000018008EFF7 default case              ; +0x12c, 0x18008f0fc\nadd     rsp, 28h                                                       ; +0x12e, 0x18008f0fe\nretn                                                                   ; +0x132, 0x18008f102\nalign 4                                                                ; +0x133, 0x18008f103\ndd offset loc_18008EFF9 - 180000000h; jump table for switch statement  ; +0x134, 0x18008f104", "xrefs": ["<???> @ 0x1801ae840", "<???> @ 0x1801fa65c"], "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"}