{"type": "func", "start": 5370681968, "end": 5370682063, "name": "GameStatsManager::hasRewardBeenCollected", "pseudocode": "// \n// GameStatsManager::hasRewardBeenCollected from 0x1401e1a70 to 0x1401e1acf (95 bytes)\n// \n// 3 xrefs:\n// > RewardsPage::rewardsStatusFinished @ 0x1403cd560\n// > RewardsPage::rewardsStatusFinished @ 0x1403cd61b\n// > <???> @ 0x1406cc534\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// Hidden C++ exception states: #wind=1\nbool GameStatsManager::hasRewardBeenCollected(GameStatsManager *a1, GJRewardType a2, int a3)\n{\n  GameStatsManager *v3; // rbx\n  _QWORD *ItemKey; // rax\n  _QWORD v6[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  v3 = a1;\n  ItemKey = GameStatsManager::getItemKey((__int64)a1, v6, a2, a3);\n  LOBYTE(v3) = cocos2d::CCDictionary::objectForKey(v3->m_dailyChests, ItemKey) != 0;\n  sub_14003A830((__int64)v6);\n  return (char)v3;\n}", "assembly": "; \n; GameStatsManager::hasRewardBeenCollected from 0x1401e1a70 to 0x1401e1acf (95 bytes)\n; \n; 3 xrefs:\n; > RewardsPage::rewardsStatusFinished @ 0x1403cd560\n; > RewardsPage::rewardsStatusFinished @ 0x1403cd61b\n; > <???> @ 0x1406cc534\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    rbx                                                            ; +0x0, 0x1401e1a70\nsub     rsp, 50h                                                       ; +0x2, 0x1401e1a72\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1401e1a76\nxor     rax, rsp                                                       ; +0xd, 0x1401e1a7d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x1401e1a80\nmov     rbx, rcx                                                       ; +0x15, 0x1401e1a85\nmov     r9d, r8d                                                       ; +0x18, 0x1401e1a88\nmov     r8d, edx                                                       ; +0x1b, 0x1401e1a8b\nlea     rdx, [rsp+58h+var_38]                                          ; +0x1e, 0x1401e1a8e\ncall    GameStatsManager__getItemKey                                   ; +0x23, 0x1401e1a93\nnop                                                                    ; +0x28, 0x1401e1a98\nmov     rdx, rax                                                       ; +0x29, 0x1401e1a99\nmov     rcx, [rbx+218h]                                                ; +0x2c, 0x1401e1a9c\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x33, 0x1401e1aa3\ntest    rax, rax                                                       ; +0x39, 0x1401e1aa9\nsetnz   bl                                                             ; +0x3c, 0x1401e1aac\nlea     rcx, [rsp+58h+var_38]                                          ; +0x3f, 0x1401e1aaf\ncall    sub_14003A830                                                  ; +0x44, 0x1401e1ab4\nmovzx   eax, bl                                                        ; +0x49, 0x1401e1ab9\nmov     rcx, [rsp+58h+var_18]                                          ; +0x4c, 0x1401e1abc\nxor     rcx, rsp; StackCookie                                          ; +0x51, 0x1401e1ac1\ncall    __security_check_cookie                                        ; +0x54, 0x1401e1ac4\nadd     rsp, 50h                                                       ; +0x59, 0x1401e1ac9\npop     rbx                                                            ; +0x5d, 0x1401e1acd\nretn                                                                   ; +0x5e, 0x1401e1ace", "xrefs": ["RewardsPage::rewardsStatusFinished @ 0x1403cd560", "RewardsPage::rewardsStatusFinished @ 0x1403cd61b", "<???> @ 0x1406cc534"], "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"}