; ; EditLevelLayer::onPlay from 0x1400d7e50 to 0x1400d800b (443 bytes) ; ; 3 xrefs: ; > EditLevelLayer::keyDown @ 0x1400d9acd ; > EditLevelLayer::init @ 0x1400d5f2a ; > @ 0x1406c87e4 ; ; 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_0], rbx ; +0x0, 0x1400d7e50 push rdi ; +0x5, 0x1400d7e55 sub rsp, 50h ; +0x6, 0x1400d7e56 mov rdi, rcx ; +0xa, 0x1400d7e5a call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1400d7e5d cmp byte ptr [rax+0A8h], 0 ; +0x13, 0x1400d7e63 jnz loc_1400D8000 ; +0x1a, 0x1400d7e6a cmp byte ptr [rdi+1E0h], 0 ; +0x20, 0x1400d7e70 jnz loc_1400D8000 ; +0x27, 0x1400d7e77 mov rcx, rdi ; +0x2d, 0x1400d7e7d call EditLevelLayer__closeTextInputs ; +0x30, 0x1400d7e80 mov rax, [rdi] ; +0x35, 0x1400d7e85 xor edx, edx ; +0x38, 0x1400d7e88 mov rcx, rdi ; +0x3a, 0x1400d7e8a call qword ptr [rax+3D0h] ; +0x3d, 0x1400d7e8d mov byte ptr [rdi+1E0h], 1 ; +0x43, 0x1400d7e93 mov rbx, cs:qword_1406C2E88 ; +0x4a, 0x1400d7e9a test rbx, rbx ; +0x51, 0x1400d7ea1 jnz short loc_1400D7ED5 ; +0x54, 0x1400d7ea4 mov ecx, 888h; Size ; +0x56, 0x1400d7ea6 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x5b, 0x1400d7eab mov [rsp+58h+arg_10], rax ; +0x60, 0x1400d7eb0 mov rcx, rax ; +0x65, 0x1400d7eb5 call FMODAudioEngine__FMODAudioEngine ; +0x68, 0x1400d7eb8 nop ; +0x6d, 0x1400d7ebd mov cs:qword_1406C2E88, rax ; +0x6e, 0x1400d7ebe mov rdx, [rax] ; +0x75, 0x1400d7ec5 mov rcx, rax ; +0x78, 0x1400d7ec8 call qword ptr [rdx+48h] ; +0x7b, 0x1400d7ecb mov rbx, cs:qword_1406C2E88 ; +0x7e, 0x1400d7ece cmp qword ptr [rbx+228h], 0 ; +0x85, 0x1400d7ed5 jz short loc_1400D7EEC ; +0x8d, 0x1400d7edd mov rcx, [rbx+228h] ; +0x8f, 0x1400d7edf call cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x96, 0x1400d7ee6 lea rcx, [rbx+428h] ; +0x9c, 0x1400d7eec call sub_14005E0D0 ; +0xa3, 0x1400d7ef3 lea rcx, [rbx+468h] ; +0xa8, 0x1400d7ef8 call sub_14005E0D0 ; +0xaf, 0x1400d7eff lea rcx, [rbx+4A8h] ; +0xb4, 0x1400d7f04 call sub_14005E0D0 ; +0xbb, 0x1400d7f0b lea rax, [rsp+58h+var_28] ; +0xc0, 0x1400d7f10 mov [rsp+58h+arg_10], rax ; +0xc5, 0x1400d7f15 xorps xmm0, xmm0 ; +0xca, 0x1400d7f1a movups [rsp+58h+var_28], xmm0 ; +0xcd, 0x1400d7f1d mov [rsp+58h+var_18], 0 ; +0xd2, 0x1400d7f22 mov [rsp+58h+var_10], 0Fh ; +0xdb, 0x1400d7f2b mov ecx, 20h ; ' ' ; +0xe4, 0x1400d7f34 call sub_14003AA10 ; +0xe9, 0x1400d7f39 mov qword ptr [rsp+58h+var_28], rax ; +0xee, 0x1400d7f3e mov [rsp+58h+var_18], 10h ; +0xf3, 0x1400d7f43 mov [rsp+58h+var_10], 1Fh ; +0xfc, 0x1400d7f4c movups xmm0, cs:xmmword_140532E28 ; +0x105, 0x1400d7f55 movups xmmword ptr [rax], xmm0 ; +0x10c, 0x1400d7f5c mov byte ptr [rax+10h], 0 ; +0x10f, 0x1400d7f5f mov rcx, cs:qword_1406C2E88 ; +0x113, 0x1400d7f63 test rcx, rcx ; +0x11a, 0x1400d7f6a jnz short loc_1400D7F9E ; +0x11d, 0x1400d7f6d mov ecx, 888h; Size ; +0x11f, 0x1400d7f6f call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x124, 0x1400d7f74 mov [rsp+58h+arg_18], rax ; +0x129, 0x1400d7f79 mov rcx, rax ; +0x12e, 0x1400d7f7e call FMODAudioEngine__FMODAudioEngine ; +0x131, 0x1400d7f81 nop ; +0x136, 0x1400d7f86 mov cs:qword_1406C2E88, rax ; +0x137, 0x1400d7f87 mov rdx, [rax] ; +0x13e, 0x1400d7f8e mov rcx, rax ; +0x141, 0x1400d7f91 call qword ptr [rdx+48h] ; +0x144, 0x1400d7f94 mov rcx, cs:qword_1406C2E88 ; +0x147, 0x1400d7f97 movss xmm0, cs:dword_140622AA0 ; +0x14e, 0x1400d7f9e movss [rsp+58h+var_38], xmm0 ; +0x156, 0x1400d7fa6 xorps xmm3, xmm3 ; +0x15c, 0x1400d7fac movss xmm2, cs:flt_140622C24 ; +0x15f, 0x1400d7faf lea rdx, [rsp+58h+var_28] ; +0x167, 0x1400d7fb7 call FMODAudioEngine__playEffect ; +0x16c, 0x1400d7fbc mov rcx, rdi ; +0x171, 0x1400d7fc1 call EditLevelLayer__verifyLevelName ; +0x174, 0x1400d7fc4 lea rdx, EditLevelLayer__playStep2 ; +0x179, 0x1400d7fc9 mov rcx, rdi ; +0x180, 0x1400d7fd0 call cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x183, 0x1400d7fd3 mov rbx, rax ; +0x189, 0x1400d7fd9 xorps xmm0, xmm0 ; +0x18c, 0x1400d7fdc call cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x18f, 0x1400d7fdf mov rcx, rax ; +0x195, 0x1400d7fe5 xor r8d, r8d ; +0x198, 0x1400d7fe8 mov rdx, rbx ; +0x19b, 0x1400d7feb call cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x19e, 0x1400d7fee mov rdx, rax ; +0x1a4, 0x1400d7ff4 mov rcx, rdi ; +0x1a7, 0x1400d7ff7 call cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1aa, 0x1400d7ffa mov rbx, [rsp+58h+arg_0] ; +0x1b0, 0x1400d8000 add rsp, 50h ; +0x1b5, 0x1400d8005 pop rdi ; +0x1b9, 0x1400d8009 retn ; +0x1ba, 0x1400d800a