{"type": "func", "start": 4295437120, "end": 4295437310, "name": "GJRewardItem::rewardItemToStat", "pseudocode": "// \n// GJRewardItem::rewardItemToStat from 0x100072b40 to 0x100072bfe (190 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::completedDailyLevel @ 0x1000742fd\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 GJRewardItem::rewardItemToStat(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  result = a1;\n  switch ( a2 )\n  {\n    case 1:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14385;\n      goto LABEL_14;\n    case 2:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14641;\n      goto LABEL_14;\n    case 3:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 14129;\n      goto LABEL_14;\n    case 4:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 13873;\n      goto LABEL_14;\n    case 5:\n      *(_BYTE *)a1 = 4;\n      *(_WORD *)(a1 + 1) = 12338;\n      goto LABEL_14;\n    case 6:\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 15:\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; GJRewardItem::rewardItemToStat from 0x100072b40 to 0x100072bfe (190 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::completedDailyLevel @ 0x1000742fd\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, 0x100072b40\nmov     rbp, rsp                                                       ; +0x1, 0x100072b41\nmov     rax, rdi                                                       ; +0x4, 0x100072b44\ndec     esi; switch 15 cases                                           ; +0x7, 0x100072b47\ncmp     esi, 0Eh                                                       ; +0x9, 0x100072b49\nja      def_100072B60; jumptable 0000000100072B60 default case, cases 7-9 ; +0xc, 0x100072b4c\nlea     rcx, jpt_100072B60                                             ; +0x12, 0x100072b52\nmovsxd  rdx, (jpt_100072B60 - 100072C00h)[rcx+rsi*4]                   ; +0x19, 0x100072b59\nadd     rdx, rcx                                                       ; +0x1d, 0x100072b5d\njmp     rdx; switch jump                                               ; +0x20, 0x100072b60\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 1           ; +0x22, 0x100072b62\nmov     word ptr [rax+1], 3831h                                        ; +0x25, 0x100072b65\njmp     short loc_100072BE4                                            ; +0x2b, 0x100072b6b\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 14          ; +0x2d, 0x100072b6d\nmov     word ptr [rax+1], 3732h                                        ; +0x30, 0x100072b70\njmp     short loc_100072BE4                                            ; +0x36, 0x100072b76\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 3           ; +0x38, 0x100072b78\nmov     word ptr [rax+1], 3731h                                        ; +0x3b, 0x100072b7b\njmp     short loc_100072BE4                                            ; +0x41, 0x100072b81\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 6           ; +0x43, 0x100072b83\nmov     word ptr [rax+1], 3132h                                        ; +0x46, 0x100072b86\njmp     short loc_100072BE4                                            ; +0x4c, 0x100072b8c\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 15          ; +0x4e, 0x100072b8e\nmov     word ptr [rax+1], 3334h                                        ; +0x51, 0x100072b91\njmp     short loc_100072BE4                                            ; +0x57, 0x100072b97\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 2           ; +0x59, 0x100072b99\nmov     word ptr [rax+1], 3931h                                        ; +0x5c, 0x100072b9c\njmp     short loc_100072BE4                                            ; +0x62, 0x100072ba2\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 10          ; +0x64, 0x100072ba4\nmov     word ptr [rax+1], 3332h                                        ; +0x67, 0x100072ba7\njmp     short loc_100072BE4                                            ; +0x6d, 0x100072bad\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 11          ; +0x6f, 0x100072baf\nmov     word ptr [rax+1], 3432h                                        ; +0x72, 0x100072bb2\njmp     short loc_100072BE4                                            ; +0x78, 0x100072bb8\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 4           ; +0x7a, 0x100072bba\nmov     word ptr [rax+1], 3631h                                        ; +0x7d, 0x100072bbd\njmp     short loc_100072BE4                                            ; +0x83, 0x100072bc3\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 5           ; +0x85, 0x100072bc5\nmov     word ptr [rax+1], 3032h                                        ; +0x88, 0x100072bc8\njmp     short loc_100072BE4                                            ; +0x8e, 0x100072bce\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 13          ; +0x90, 0x100072bd0\nmov     word ptr [rax+1], 3632h                                        ; +0x93, 0x100072bd3\njmp     short loc_100072BE4                                            ; +0x99, 0x100072bd9\nmov     byte ptr [rax], 4; jumptable 0000000100072B60 case 12          ; +0x9b, 0x100072bdb\nmov     word ptr [rax+1], 3532h                                        ; +0x9e, 0x100072bde\nmov     rcx, rax                                                       ; +0xa4, 0x100072be4\nadd     rcx, 3                                                         ; +0xa7, 0x100072be7\nmov     byte ptr [rcx], 0                                              ; +0xab, 0x100072beb\npop     rbp                                                            ; +0xae, 0x100072bee\nretn                                                                   ; +0xaf, 0x100072bef\nmov     byte ptr [rax], 0; jumptable 0000000100072B60 default case, cases 7-9 ; +0xb0, 0x100072bf0\nmov     rcx, rax                                                       ; +0xb3, 0x100072bf3\ninc     rcx                                                            ; +0xb6, 0x100072bf6\nmov     byte ptr [rcx], 0                                              ; +0xb9, 0x100072bf9\npop     rbp                                                            ; +0xbc, 0x100072bfc\nretn                                                                   ; +0xbd, 0x100072bfd", "xrefs": ["GameStatsManager::completedDailyLevel @ 0x1000742fd"], "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"}