; ; GJBaseGameLayer::resetPlayer from 0x1402120b0 to 0x140212214 (356 bytes) ; ; 4 xrefs: ; > GJBaseGameLayer::resetLevelVariables @ 0x14023b933 ; > LevelEditorLayer::onPlaytest @ 0x1402e0307 ; > PlayLayer::setupHasCompleted @ 0x1403a6b46 ; > @ 0x1406ccfcc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_10], rbx ; +0x0, 0x1402120b0 mov [rsp+arg_18], rsi ; +0x5, 0x1402120b5 push rdi ; +0xa, 0x1402120ba sub rsp, 20h ; +0xb, 0x1402120bb movss xmm2, cs:dword_1406232CC ; +0xf, 0x1402120bf mov rdi, rcx ; +0x17, 0x1402120c7 lea rcx, [rsp+28h+arg_0] ; +0x1a, 0x1402120ca xorps xmm1, xmm1 ; +0x1f, 0x1402120cf call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x22, 0x1402120d2 mov rcx, [rdi+3188h] ; +0x28, 0x1402120d8 test rcx, rcx ; +0x2f, 0x1402120df jz short loc_140212104 ; +0x32, 0x1402120e2 mov rax, [rcx] ; +0x34, 0x1402120e4 call qword ptr [rax+0C8h] ; +0x37, 0x1402120e7 mov rdx, rax ; +0x3d, 0x1402120ed lea rcx, [rsp+28h+arg_0] ; +0x40, 0x1402120f0 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x45, 0x1402120f5 lea rsi, [rdi+0DB0h] ; +0x4b, 0x1402120fb jmp short loc_14021215C ; +0x52, 0x140212102 lea rbx, [rdi+0DB0h] ; +0x54, 0x140212104 mov rax, [rbx] ; +0x5b, 0x14021210b mov rsi, rbx ; +0x5e, 0x14021210e mov edx, [rax+1C4h] ; +0x61, 0x140212111 test edx, edx ; +0x67, 0x140212117 jle short loc_14021215C ; +0x69, 0x140212119 mov rcx, rdi ; +0x6b, 0x14021211b call GJBaseGameLayer__tryGetObject ; +0x6e, 0x14021211e test rax, rax ; +0x73, 0x140212123 jz short loc_14021215C ; +0x76, 0x140212126 mov r8, [rax] ; +0x78, 0x140212128 lea rdx, [rsp+28h+arg_8] ; +0x7b, 0x14021212b mov rcx, rax ; +0x80, 0x140212130 call qword ptr [r8+4A8h] ; +0x83, 0x140212133 mov rdx, rax ; +0x8a, 0x14021213a lea rcx, [rsp+28h+arg_0] ; +0x8d, 0x14021213d call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x92, 0x140212142 mov rax, [rbx] ; +0x98, 0x140212148 cmp byte ptr [rax+155h], 0 ; +0x9b, 0x14021214b jnz short loc_14021215C ; +0xa2, 0x140212152 mov [rsp+28h+arg_0], 0 ; +0xa4, 0x140212154 mov rax, [rdi+0DA0h] ; +0xac, 0x14021215c lea rdx, [rsp+28h+arg_0] ; +0xb3, 0x140212163 lea rcx, [rsp+28h+arg_8] ; +0xb8, 0x140212168 mov rbx, [rax] ; +0xbd, 0x14021216d call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc0, 0x140212170 mov rcx, [rdi+0DA0h] ; +0xc6, 0x140212176 mov rdx, rax ; +0xcd, 0x14021217d call qword ptr [rbx+4B0h] ; +0xd0, 0x140212180 mov rcx, [rdi+0DA0h] ; +0xd6, 0x140212186 mov rax, [rcx] ; +0xdd, 0x14021218d call qword ptr [rax+460h] ; +0xe0, 0x140212190 mov rax, [rdi+0DA8h] ; +0xe6, 0x140212196 lea rdx, [rsp+28h+arg_0] ; +0xed, 0x14021219d lea rcx, [rsp+28h+arg_8] ; +0xf2, 0x1402121a2 mov rbx, [rax] ; +0xf7, 0x1402121a7 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xfa, 0x1402121aa mov rcx, [rdi+0DA8h] ; +0x100, 0x1402121b0 mov rdx, rax ; +0x107, 0x1402121b7 call qword ptr [rbx+4B0h] ; +0x10a, 0x1402121ba mov rcx, [rdi+0DA8h] ; +0x110, 0x1402121c0 mov rax, [rcx] ; +0x117, 0x1402121c7 call qword ptr [rax+460h] ; +0x11a, 0x1402121ca mov rax, [rsi] ; +0x120, 0x1402121d0 mov rbx, [rsp+28h+arg_10] ; +0x123, 0x1402121d3 cmp byte ptr [rax+1D3h], 0 ; +0x128, 0x1402121d8 mov rax, [rdi+0DA0h] ; +0x12f, 0x1402121df setz cl ; +0x136, 0x1402121e6 mov [rax+0A28h], cl ; +0x139, 0x1402121e9 mov rax, [rsi] ; +0x13f, 0x1402121ef mov rsi, [rsp+28h+arg_18] ; +0x142, 0x1402121f2 cmp byte ptr [rax+1D3h], 0 ; +0x147, 0x1402121f7 mov rax, [rdi+0DA8h] ; +0x14e, 0x1402121fe setz cl ; +0x155, 0x140212205 mov [rax+0A28h], cl ; +0x158, 0x140212208 add rsp, 20h ; +0x15e, 0x14021220e pop rdi ; +0x162, 0x140212212 retn ; +0x163, 0x140212213