{"type": "func", "start": 4302994240, "end": 4302994431, "name": "CurrencySprite::spriteTypeToStat", "pseudocode": "// \n// CurrencySprite::spriteTypeToStat from 0x1007a7b40 to 0x1007a7bff (191 bytes)\n// \n// 0 xrefs:\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 CurrencySprite::spriteTypeToStat(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  result = a1;\n  switch ( a2 )\n  {\n    case 4:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14385;\n      goto LABEL_14;\n    case 5:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14641;\n      goto LABEL_14;\n    case 6:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14129;\n      goto LABEL_14;\n    case 7:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13873;\n      goto LABEL_14;\n    case 8:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 12338;\n      goto LABEL_14;\n    case 9:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 12594;\n      goto LABEL_14;\n    case 10:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13106;\n      goto LABEL_14;\n    case 11:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13362;\n      goto LABEL_14;\n    case 12:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13618;\n      goto LABEL_14;\n    case 13:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13874;\n      goto LABEL_14;\n    case 14:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14130;\n      goto LABEL_14;\n    case 16:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13108;\nLABEL_14:\n      *(_BYTE *)(a1 + 3) = 0;\n      break;\n    default:\n      *(_BYTE *)a1 = 0;\n      *(_BYTE *)(a1 + 1) = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; CurrencySprite::spriteTypeToStat from 0x1007a7b40 to 0x1007a7bff (191 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x1007a7b40\nmov     rbp, rsp                                                       ; +0x1, 0x1007a7b41\nmov     rax, rdi                                                       ; +0x4, 0x1007a7b44\nadd     esi, 0FFFFFFFCh; switch 13 cases                               ; +0x7, 0x1007a7b47\ncmp     esi, 0Ch                                                       ; +0xa, 0x1007a7b4a\nja      def_1007A7B61; jumptable 00000001007A7B61 default case, case 15 ; +0xd, 0x1007a7b4d\nlea     rcx, jpt_1007A7B61                                             ; +0x13, 0x1007a7b53\nmovsxd  rdx, (jpt_1007A7B61 - 1007A7C00h)[rcx+rsi*4]                   ; +0x1a, 0x1007a7b5a\nadd     rdx, rcx                                                       ; +0x1e, 0x1007a7b5e\njmp     rdx; switch jump                                               ; +0x21, 0x1007a7b61\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 4           ; +0x23, 0x1007a7b63\nmov     word ptr [rax+1], 3831h                                        ; +0x26, 0x1007a7b66\njmp     short loc_1007A7BE5                                            ; +0x2c, 0x1007a7b6c\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 14          ; +0x2e, 0x1007a7b6e\nmov     word ptr [rax+1], 3732h                                        ; +0x31, 0x1007a7b71\njmp     short loc_1007A7BE5                                            ; +0x37, 0x1007a7b77\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 6           ; +0x39, 0x1007a7b79\nmov     word ptr [rax+1], 3731h                                        ; +0x3c, 0x1007a7b7c\njmp     short loc_1007A7BE5                                            ; +0x42, 0x1007a7b82\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 9           ; +0x44, 0x1007a7b84\nmov     word ptr [rax+1], 3132h                                        ; +0x47, 0x1007a7b87\njmp     short loc_1007A7BE5                                            ; +0x4d, 0x1007a7b8d\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 16          ; +0x4f, 0x1007a7b8f\nmov     word ptr [rax+1], 3334h                                        ; +0x52, 0x1007a7b92\njmp     short loc_1007A7BE5                                            ; +0x58, 0x1007a7b98\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 5           ; +0x5a, 0x1007a7b9a\nmov     word ptr [rax+1], 3931h                                        ; +0x5d, 0x1007a7b9d\njmp     short loc_1007A7BE5                                            ; +0x63, 0x1007a7ba3\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 10          ; +0x65, 0x1007a7ba5\nmov     word ptr [rax+1], 3332h                                        ; +0x68, 0x1007a7ba8\njmp     short loc_1007A7BE5                                            ; +0x6e, 0x1007a7bae\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 11          ; +0x70, 0x1007a7bb0\nmov     word ptr [rax+1], 3432h                                        ; +0x73, 0x1007a7bb3\njmp     short loc_1007A7BE5                                            ; +0x79, 0x1007a7bb9\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 7           ; +0x7b, 0x1007a7bbb\nmov     word ptr [rax+1], 3631h                                        ; +0x7e, 0x1007a7bbe\njmp     short loc_1007A7BE5                                            ; +0x84, 0x1007a7bc4\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 8           ; +0x86, 0x1007a7bc6\nmov     word ptr [rax+1], 3032h                                        ; +0x89, 0x1007a7bc9\njmp     short loc_1007A7BE5                                            ; +0x8f, 0x1007a7bcf\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 13          ; +0x91, 0x1007a7bd1\nmov     word ptr [rax+1], 3632h                                        ; +0x94, 0x1007a7bd4\njmp     short loc_1007A7BE5                                            ; +0x9a, 0x1007a7bda\nmov     byte ptr [rax], 4; jumptable 00000001007A7B61 case 12          ; +0x9c, 0x1007a7bdc\nmov     word ptr [rax+1], 3532h                                        ; +0x9f, 0x1007a7bdf\nmov     rcx, rax                                                       ; +0xa5, 0x1007a7be5\nadd     rcx, 3                                                         ; +0xa8, 0x1007a7be8\nmov     byte ptr [rcx], 0                                              ; +0xac, 0x1007a7bec\npop     rbp                                                            ; +0xaf, 0x1007a7bef\nretn                                                                   ; +0xb0, 0x1007a7bf0\nmov     byte ptr [rax], 0; jumptable 00000001007A7B61 default case, case 15 ; +0xb1, 0x1007a7bf1\nmov     rcx, rax                                                       ; +0xb4, 0x1007a7bf4\ninc     rcx                                                            ; +0xb7, 0x1007a7bf7\nmov     byte ptr [rcx], 0                                              ; +0xba, 0x1007a7bfa\npop     rbp                                                            ; +0xbd, 0x1007a7bfd\nretn                                                                   ; +0xbe, 0x1007a7bfe", "xrefs": [], "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"}