{"type": "func", "start": 4295198240, "end": 4295198430, "name": "GJRewardItem::rewardItemToStat", "pseudocode": "// \n// GJRewardItem::rewardItemToStat from 0x100038620 to 0x1000386de (190 bytes)\n// \n// 1 xrefs:\n// > GameStatsManager::completedDailyLevel @ 0x100039dcd\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 12:19:32 +0000\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 0x100038620 to 0x1000386de (190 bytes)\n; \n; 1 xrefs:\n; > GameStatsManager::completedDailyLevel @ 0x100039dcd\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 12:19:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100038620\nmov     rbp, rsp                                                       ; +0x1, 0x100038621\nmov     rax, rdi                                                       ; +0x4, 0x100038624\ndec     esi; switch 15 cases                                           ; +0x7, 0x100038627\ncmp     esi, 0Eh                                                       ; +0x9, 0x100038629\nja      def_100038640; jumptable 0000000100038640 default case, cases 7-9 ; +0xc, 0x10003862c\nlea     rcx, jpt_100038640                                             ; +0x12, 0x100038632\nmovsxd  rdx, (jpt_100038640 - 1000386E0h)[rcx+rsi*4]                   ; +0x19, 0x100038639\nadd     rdx, rcx                                                       ; +0x1d, 0x10003863d\njmp     rdx; switch jump                                               ; +0x20, 0x100038640\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 1           ; +0x22, 0x100038642\nmov     word ptr [rax+1], 3831h                                        ; +0x25, 0x100038645\njmp     short loc_1000386C4                                            ; +0x2b, 0x10003864b\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 14          ; +0x2d, 0x10003864d\nmov     word ptr [rax+1], 3732h                                        ; +0x30, 0x100038650\njmp     short loc_1000386C4                                            ; +0x36, 0x100038656\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 3           ; +0x38, 0x100038658\nmov     word ptr [rax+1], 3731h                                        ; +0x3b, 0x10003865b\njmp     short loc_1000386C4                                            ; +0x41, 0x100038661\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 6           ; +0x43, 0x100038663\nmov     word ptr [rax+1], 3132h                                        ; +0x46, 0x100038666\njmp     short loc_1000386C4                                            ; +0x4c, 0x10003866c\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 15          ; +0x4e, 0x10003866e\nmov     word ptr [rax+1], 3334h                                        ; +0x51, 0x100038671\njmp     short loc_1000386C4                                            ; +0x57, 0x100038677\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 2           ; +0x59, 0x100038679\nmov     word ptr [rax+1], 3931h                                        ; +0x5c, 0x10003867c\njmp     short loc_1000386C4                                            ; +0x62, 0x100038682\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 10          ; +0x64, 0x100038684\nmov     word ptr [rax+1], 3332h                                        ; +0x67, 0x100038687\njmp     short loc_1000386C4                                            ; +0x6d, 0x10003868d\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 11          ; +0x6f, 0x10003868f\nmov     word ptr [rax+1], 3432h                                        ; +0x72, 0x100038692\njmp     short loc_1000386C4                                            ; +0x78, 0x100038698\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 4           ; +0x7a, 0x10003869a\nmov     word ptr [rax+1], 3631h                                        ; +0x7d, 0x10003869d\njmp     short loc_1000386C4                                            ; +0x83, 0x1000386a3\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 5           ; +0x85, 0x1000386a5\nmov     word ptr [rax+1], 3032h                                        ; +0x88, 0x1000386a8\njmp     short loc_1000386C4                                            ; +0x8e, 0x1000386ae\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 13          ; +0x90, 0x1000386b0\nmov     word ptr [rax+1], 3632h                                        ; +0x93, 0x1000386b3\njmp     short loc_1000386C4                                            ; +0x99, 0x1000386b9\nmov     byte ptr [rax], 4; jumptable 0000000100038640 case 12          ; +0x9b, 0x1000386bb\nmov     word ptr [rax+1], 3532h                                        ; +0x9e, 0x1000386be\nmov     rcx, rax                                                       ; +0xa4, 0x1000386c4\nadd     rcx, 3                                                         ; +0xa7, 0x1000386c7\nmov     byte ptr [rcx], 0                                              ; +0xab, 0x1000386cb\npop     rbp                                                            ; +0xae, 0x1000386ce\nretn                                                                   ; +0xaf, 0x1000386cf\nmov     byte ptr [rax], 0; jumptable 0000000100038640 default case, cases 7-9 ; +0xb0, 0x1000386d0\nmov     rcx, rax                                                       ; +0xb3, 0x1000386d3\ninc     rcx                                                            ; +0xb6, 0x1000386d6\nmov     byte ptr [rcx], 0                                              ; +0xb9, 0x1000386d9\npop     rbp                                                            ; +0xbc, 0x1000386dc\nretn                                                                   ; +0xbd, 0x1000386dd", "xrefs": ["GameStatsManager::completedDailyLevel @ 0x100039dcd"], "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"}