{"type": "func", "start": 5372697792, "end": 5372698081, "name": "RewardUnlockLayer::create", "pseudocode": "// \n// RewardUnlockLayer::create from 0x1403cdcc0 to 0x1403cdde1 (289 bytes)\n// \n// 15 xrefs:\n// > DailyLevelPage::claimLevelReward @ 0x1400d1b63\n// > FollowRewardPage::onSpecialItem @ 0x14013cf4f\n// > GauntletSelectLayer::onPlay @ 0x1401fae6a\n// > GJPathRewardPopup::onClaim @ 0x14028a507\n// > GJShopLayer::dialogClosed @ 0x1402ae89b\n// > RewardsPage::onReward @ 0x1403cd411\n// > SecretRewardsLayer::onSelectItem @ 0x1403d6574\n// > SecretRewardsLayer::onSpecialItem @ 0x1403d6e1a\n// > SecretRewardsLayer::onGoldChest @ 0x1403d75cf\n// > SecretLayer3::onChest01 @ 0x1403eb5b7\n// > SecretLayer3::onChest02 @ 0x1403eb737\n// > SecretLayer4::onChest01 @ 0x1403f0c9a\n// > SecretLayer5::claimOnlineReward @ 0x1403f68f7\n// > SupportLayer::onGetReward @ 0x1404c9a0b\n// > <???> @ 0x1406d7bf8\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\nRewardUnlockLayer *RewardUnlockLayer::create(int a1, RewardsPage *a2)\n{\n  RewardUnlockLayer *v4; // rsi\n\n  v4 = (RewardUnlockLayer *)operator new(0x2C8u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RewardUnlockLayer_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->CurrencyRewardDelegate::__vftable = (CurrencyRewardDelegate_vtbl *)&RewardUnlockLayer::`vftable';\n  v4->m_backgroundObjects = nullptr;\n  v4->m_rewardsPage = nullptr;\n  v4->m_chestSprite = nullptr;\n  v4->m_chestType = 0;\n  *(_WORD *)&v4->m_rewardCollected = 0;\n  v4->m_rewardItem = nullptr;\n  v4->m_unkFloat = 0.0;\n  if ( RewardUnlockLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(RewardUnlockLayer *, __int64))v4->~RewardUnlockLayer)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; RewardUnlockLayer::create from 0x1403cdcc0 to 0x1403cdde1 (289 bytes)\n; \n; 15 xrefs:\n; > DailyLevelPage::claimLevelReward @ 0x1400d1b63\n; > FollowRewardPage::onSpecialItem @ 0x14013cf4f\n; > GauntletSelectLayer::onPlay @ 0x1401fae6a\n; > GJPathRewardPopup::onClaim @ 0x14028a507\n; > GJShopLayer::dialogClosed @ 0x1402ae89b\n; > RewardsPage::onReward @ 0x1403cd411\n; > SecretRewardsLayer::onSelectItem @ 0x1403d6574\n; > SecretRewardsLayer::onSpecialItem @ 0x1403d6e1a\n; > SecretRewardsLayer::onGoldChest @ 0x1403d75cf\n; > SecretLayer3::onChest01 @ 0x1403eb5b7\n; > SecretLayer3::onChest02 @ 0x1403eb737\n; > SecretLayer4::onChest01 @ 0x1403f0c9a\n; > SecretLayer5::claimOnlineReward @ 0x1403f68f7\n; > SupportLayer::onGetReward @ 0x1404c9a0b\n; > <???> @ 0x1406d7bf8\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403cdcc0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403cdcc5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1403cdcca\npush    rdi                                                            ; +0xf, 0x1403cdccf\nsub     rsp, 20h                                                       ; +0x10, 0x1403cdcd0\nmov     rbx, rdx                                                       ; +0x14, 0x1403cdcd4\nmov     edi, ecx                                                       ; +0x17, 0x1403cdcd7\nmov     ecx, 2C8h; Size                                                ; +0x19, 0x1403cdcd9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1403cdcde\nmov     rsi, rax                                                       ; +0x23, 0x1403cdce3\nmov     [rsp+28h+arg_10], rax                                          ; +0x26, 0x1403cdce6\nmov     rcx, rax                                                       ; +0x2b, 0x1403cdceb\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x2e, 0x1403cdcee\nlea     rax, ??_7RewardUnlockLayer@@6B@; const RewardUnlockLayer::`vftable' ; +0x33, 0x1403cdcf3\nmov     [rsi], rax                                                     ; +0x3a, 0x1403cdcfa\nlea     rax, ??_7RewardUnlockLayer@@6B@_0; const RewardUnlockLayer::`vftable' ; +0x3d, 0x1403cdcfd\nmov     [rsi+140h], rax                                                ; +0x44, 0x1403cdd04\nlea     rax, ??_7RewardUnlockLayer@@6B@_1; const RewardUnlockLayer::`vftable' ; +0x4b, 0x1403cdd0b\nmov     [rsi+148h], rax                                                ; +0x52, 0x1403cdd12\nlea     rax, ??_7RewardUnlockLayer@@6B@_2; const RewardUnlockLayer::`vftable' ; +0x59, 0x1403cdd19\nmov     [rsi+150h], rax                                                ; +0x60, 0x1403cdd20\nlea     rax, ??_7RewardUnlockLayer@@6B@_3; const RewardUnlockLayer::`vftable' ; +0x67, 0x1403cdd27\nmov     [rsi+158h], rax                                                ; +0x6e, 0x1403cdd2e\nlea     rax, ??_7RewardUnlockLayer@@6B@_4; const RewardUnlockLayer::`vftable' ; +0x75, 0x1403cdd35\nmov     [rsi+160h], rax                                                ; +0x7c, 0x1403cdd3c\nlea     rax, ??_7RewardUnlockLayer@@6B@_5; const RewardUnlockLayer::`vftable' ; +0x83, 0x1403cdd43\nmov     [rsi+198h], rax                                                ; +0x8a, 0x1403cdd4a\nlea     rax, ??_7RewardUnlockLayer@@6B@_6; const RewardUnlockLayer::`vftable' ; +0x91, 0x1403cdd51\nmov     [rsi+1B0h], rax                                                ; +0x98, 0x1403cdd58\nlea     rax, ??_7RewardUnlockLayer@@6B@_7; const RewardUnlockLayer::`vftable' ; +0x9f, 0x1403cdd5f\nmov     [rsi+278h], rax                                                ; +0xa6, 0x1403cdd66\nxor     ebp, ebp                                                       ; +0xad, 0x1403cdd6d\nmov     [rsi+280h], rbp                                                ; +0xaf, 0x1403cdd6f\nmov     [rsi+288h], rbp                                                ; +0xb6, 0x1403cdd76\nmov     [rsi+290h], rbp                                                ; +0xbd, 0x1403cdd7d\nmov     [rsi+298h], ebp                                                ; +0xc4, 0x1403cdd84\nmov     [rsi+29Ch], bp                                                 ; +0xca, 0x1403cdd8a\nmov     [rsi+2A0h], rbp                                                ; +0xd1, 0x1403cdd91\nmov     [rsi+2C0h], ebp                                                ; +0xd8, 0x1403cdd98\nmov     r8, rbx                                                        ; +0xde, 0x1403cdd9e\nmov     edx, edi                                                       ; +0xe1, 0x1403cdda1\nmov     rcx, rsi                                                       ; +0xe3, 0x1403cdda3\ncall    RewardUnlockLayer__init                                        ; +0xe6, 0x1403cdda6\nmov     rcx, rsi                                                       ; +0xeb, 0x1403cddab\ntest    al, al                                                         ; +0xee, 0x1403cddae\njz      short loc_1403CDDBD                                            ; +0xf0, 0x1403cddb0\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf2, 0x1403cddb2\nmov     rax, rsi                                                       ; +0xf8, 0x1403cddb8\njmp     short loc_1403CDDCC                                            ; +0xfb, 0x1403cddbb\nmov     r8, [rsi]                                                      ; +0xfd, 0x1403cddbd\nmov     edx, 1                                                         ; +0x100, 0x1403cddc0\ncall    qword ptr [r8+8]                                               ; +0x105, 0x1403cddc5\nmov     rax, rbp                                                       ; +0x109, 0x1403cddc9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10c, 0x1403cddcc\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x111, 0x1403cddd1\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x116, 0x1403cddd6\nadd     rsp, 20h                                                       ; +0x11b, 0x1403cdddb\npop     rdi                                                            ; +0x11f, 0x1403cdddf\nretn                                                                   ; +0x120, 0x1403cdde0", "xrefs": ["DailyLevelPage::claimLevelReward @ 0x1400d1b63", "FollowRewardPage::onSpecialItem @ 0x14013cf4f", "GauntletSelectLayer::onPlay @ 0x1401fae6a", "GJPathRewardPopup::onClaim @ 0x14028a507", "GJShopLayer::dialogClosed @ 0x1402ae89b", "RewardsPage::onReward @ 0x1403cd411", "SecretRewardsLayer::onSelectItem @ 0x1403d6574", "SecretRewardsLayer::onSpecialItem @ 0x1403d6e1a", "SecretRewardsLayer::onGoldChest @ 0x1403d75cf", "SecretLayer3::onChest01 @ 0x1403eb5b7", "SecretLayer3::onChest02 @ 0x1403eb737", "SecretLayer4::onChest01 @ 0x1403f0c9a", "SecretLayer5::claimOnlineReward @ 0x1403f68f7", "SupportLayer::onGetReward @ 0x1404c9a0b", "<???> @ 0x1406d7bf8"], "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"}