; ; GJChestSprite::create from 0x140566f50 to 0x14056701c (204 bytes) ; ; 18 xrefs: ; > LevelCell::loadCustomLevelCell @ 0x14014a1d0 ; > GJNotificationCell::loadFromNotification @ 0x14015bb0c ; > DailyLevelNode::init @ 0x140173671 ; > FollowRewardPage::init @ 0x14020cbe6 ; > GauntletNode::generateNode @ 0x1403027aa ; > GauntletNode::generateNode @ 0x140302820 ; > GauntletNode::generateNode @ 0x140302a0f ; > GauntletNode::generateNode @ 0x140302a81 ; > GJPathRewardPopup::init @ 0x14039807d ; > GJPathRewardPopup::init @ 0x1403980f0 ; > RewardUnlockLayer::init @ 0x140563d12 ; > SecretRewardsLayer::init @ 0x140568d2b ; > SecretRewardsLayer::init @ 0x1405694e9 ; > SecretRewardsLayer::generateChestItems @ 0x14056b88d ; > SecretLayer3::init @ 0x140580a87 ; > SecretLayer3::init @ 0x140580da0 ; > SecretLayer4::init @ 0x140586300 ; > @ 0x14092c570 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:34:17 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x140566f50 push rdi ; +0x5, 0x140566f55 sub rsp, 20h ; +0x6, 0x140566f56 mov edi, ecx ; +0xa, 0x140566f5a mov ecx, 268h; Size ; +0xc, 0x140566f5c call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x11, 0x140566f61 mov rbx, rax ; +0x16, 0x140566f66 mov [rsp+28h+arg_8], rax ; +0x19, 0x140566f69 mov rcx, rax ; +0x1e, 0x140566f6e call cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x21, 0x140566f71 lea rax, ??_7GJChestSprite@@6B@; const GJChestSprite::`vftable' ; +0x27, 0x140566f77 mov [rbx], rax ; +0x2e, 0x140566f7e lea rax, ??_7GJChestSprite@@6B@_0; const GJChestSprite::`vftable' ; +0x31, 0x140566f81 mov [rbx+140h], rax ; +0x38, 0x140566f88 lea rax, ??_7GJChestSprite@@6B@_1; const GJChestSprite::`vftable' ; +0x3f, 0x140566f8f mov [rbx+158h], rax ; +0x46, 0x140566f96 mov qword ptr [rbx+258h], 0 ; +0x4d, 0x140566f9d mov byte ptr [rbx+260h], 0 ; +0x58, 0x140566fa8 mov rcx, rbx ; +0x5f, 0x140566faf call cs:__imp_?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0x62, 0x140566fb2 mov rcx, [rbx] ; +0x68, 0x140566fb8 test al, al ; +0x6b, 0x140566fbb jz short loc_140567000 ; +0x6d, 0x140566fbd mov [rbx+258h], edi ; +0x6f, 0x140566fbf mov r8, [rcx+138h] ; +0x75, 0x140566fc5 lea rdx, unk_14090B5A0 ; +0x7c, 0x140566fcc mov rcx, rbx ; +0x83, 0x140566fd3 call r8 ; +0x86, 0x140566fd6 xor r8d, r8d ; +0x89, 0x140566fd9 mov edx, 2 ; +0x8c, 0x140566fdc mov rcx, rbx ; +0x91, 0x140566fe1 call GJChestSprite__switchToState ; +0x94, 0x140566fe4 mov rcx, rbx ; +0x99, 0x140566fe9 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x9c, 0x140566fec mov rax, rbx ; +0xa2, 0x140566ff2 mov rbx, [rsp+28h+arg_0] ; +0xa5, 0x140566ff5 add rsp, 20h ; +0xaa, 0x140566ffa pop rdi ; +0xae, 0x140566ffe retn ; +0xaf, 0x140566fff mov r8, [rcx+8] ; +0xb0, 0x140567000 mov edx, 1 ; +0xb4, 0x140567004 mov rcx, rbx ; +0xb9, 0x140567009 call r8 ; +0xbc, 0x14056700c xor eax, eax ; +0xbf, 0x14056700f mov rbx, [rsp+28h+arg_0] ; +0xc1, 0x140567011 add rsp, 20h ; +0xc6, 0x140567016 pop rdi ; +0xca, 0x14056701a retn ; +0xcb, 0x14056701b