; ; GJBaseGameLayer::resetPlayer from 0x140318f90 to 0x1403190e6 (342 bytes) ; ; 4 xrefs: ; > GJBaseGameLayer::resetLevelVariables @ 0x1403458c9 ; > LevelEditorLayer::onPlaytest @ 0x1403feec7 ; > PlayLayer::setupHasCompleted @ 0x140504e60 ; > @ 0x14091eab8 ; ; 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:30:19 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x140318f90 push rbp ; +0x5, 0x140318f95 push rsi ; +0x6, 0x140318f96 push rdi ; +0x7, 0x140318f97 sub rsp, 20h ; +0x8, 0x140318f98 movss xmm2, cs:dword_1408357C4 ; +0xc, 0x140318f9c mov rbp, rcx ; +0x14, 0x140318fa4 lea rcx, [rsp+38h+arg_0] ; +0x17, 0x140318fa7 xorps xmm1, xmm1 ; +0x1c, 0x140318fac call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1f, 0x140318faf mov rcx, [rbp+3270h] ; +0x25, 0x140318fb5 test rcx, rcx ; +0x2c, 0x140318fbc jz short loc_140318FE1 ; +0x2f, 0x140318fbf mov rax, [rcx] ; +0x31, 0x140318fc1 call qword ptr [rax+0C8h] ; +0x34, 0x140318fc4 mov rdx, rax ; +0x3a, 0x140318fca lea rcx, [rsp+38h+arg_0] ; +0x3d, 0x140318fcd call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x42, 0x140318fd2 lea rsi, [rbp+0DC8h] ; +0x48, 0x140318fd8 jmp short loc_140319039 ; +0x4f, 0x140318fdf lea rsi, [rbp+0DC8h] ; +0x51, 0x140318fe1 mov rax, [rsi] ; +0x58, 0x140318fe8 mov edx, [rax+1C4h] ; +0x5b, 0x140318feb test edx, edx ; +0x61, 0x140318ff1 jle short loc_140319039 ; +0x63, 0x140318ff3 mov rcx, rbp ; +0x65, 0x140318ff5 call GJBaseGameLayer__tryGetObject ; +0x68, 0x140318ff8 test rax, rax ; +0x6d, 0x140318ffd jz short loc_140319039 ; +0x70, 0x140319000 mov rcx, [rax] ; +0x72, 0x140319002 lea rdx, [rsp+38h+arg_8] ; +0x75, 0x140319005 mov r8, [rcx+4B8h] ; +0x7a, 0x14031900a mov rcx, rax ; +0x81, 0x140319011 call r8 ; +0x84, 0x140319014 mov rdx, rax ; +0x87, 0x140319017 lea rcx, [rsp+38h+arg_0] ; +0x8a, 0x14031901a call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x8f, 0x14031901f mov rax, [rsi] ; +0x95, 0x140319025 cmp byte ptr [rax+155h], 0 ; +0x98, 0x140319028 jnz short loc_140319039 ; +0x9f, 0x14031902f mov [rsp+38h+arg_0], 0 ; +0xa1, 0x140319031 mov rdi, [rbp+0DB8h] ; +0xa9, 0x140319039 lea rdx, [rsp+38h+arg_0] ; +0xb0, 0x140319040 lea rcx, [rsp+38h+arg_8] ; +0xb5, 0x140319045 mov rbx, [rdi] ; +0xba, 0x14031904a call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xbd, 0x14031904d mov rdx, rax ; +0xc3, 0x140319053 mov rcx, rdi ; +0xc6, 0x140319056 call qword ptr [rbx+4C0h] ; +0xc9, 0x140319059 mov rcx, [rbp+0DB8h] ; +0xcf, 0x14031905f mov rax, [rcx] ; +0xd6, 0x140319066 call qword ptr [rax+470h] ; +0xd9, 0x140319069 mov rdi, [rbp+0DC0h] ; +0xdf, 0x14031906f lea rdx, [rsp+38h+arg_0] ; +0xe6, 0x140319076 lea rcx, [rsp+38h+arg_8] ; +0xeb, 0x14031907b mov rbx, [rdi] ; +0xf0, 0x140319080 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xf3, 0x140319083 mov rdx, rax ; +0xf9, 0x140319089 mov rcx, rdi ; +0xfc, 0x14031908c call qword ptr [rbx+4C0h] ; +0xff, 0x14031908f mov rcx, [rbp+0DC0h] ; +0x105, 0x140319095 mov rax, [rcx] ; +0x10c, 0x14031909c call qword ptr [rax+470h] ; +0x10f, 0x14031909f mov rax, [rsi] ; +0x115, 0x1403190a5 mov rbx, [rsp+38h+arg_10] ; +0x118, 0x1403190a8 cmp byte ptr [rax+1D5h], 0 ; +0x11d, 0x1403190ad mov rax, [rbp+0DB8h] ; +0x124, 0x1403190b4 setz cl ; +0x12b, 0x1403190bb mov [rax+0A30h], cl ; +0x12e, 0x1403190be mov rax, [rsi] ; +0x134, 0x1403190c4 cmp byte ptr [rax+1D5h], 0 ; +0x137, 0x1403190c7 mov rax, [rbp+0DC0h] ; +0x13e, 0x1403190ce setz cl ; +0x145, 0x1403190d5 mov [rax+0A30h], cl ; +0x148, 0x1403190d8 add rsp, 20h ; +0x14e, 0x1403190de pop rdi ; +0x152, 0x1403190e2 pop rsi ; +0x153, 0x1403190e3 pop rbp ; +0x154, 0x1403190e4 retn ; +0x155, 0x1403190e5