; ; EditLevelLayer::onEdit from 0x1400d82b0 to 0x1400d8448 (408 bytes) ; ; 3 xrefs: ; > EditLevelLayer::FLAlert_Clicked @ 0x1400d8f51 ; > EditLevelLayer::init @ 0x1400d5ef1 ; > @ 0x1406c8814 ; ; 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, 0x1400d82b0 push rdi ; +0x5, 0x1400d82b5 sub rsp, 70h ; +0x6, 0x1400d82b6 mov rbx, rcx ; +0xa, 0x1400d82ba call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd, 0x1400d82bd cmp byte ptr [rax+0A8h], 0 ; +0x13, 0x1400d82c3 jnz loc_1400D843A ; +0x1a, 0x1400d82ca cmp byte ptr [rbx+1E0h], 0 ; +0x20, 0x1400d82d0 jnz loc_1400D843A ; +0x27, 0x1400d82d7 mov rcx, rbx ; +0x2d, 0x1400d82dd call EditLevelLayer__closeTextInputs ; +0x30, 0x1400d82e0 mov rax, [rbx] ; +0x35, 0x1400d82e5 xor edx, edx ; +0x38, 0x1400d82e8 mov rcx, rbx ; +0x3a, 0x1400d82ea call qword ptr [rax+3D0h] ; +0x3d, 0x1400d82ed mov byte ptr [rbx+1E0h], 1 ; +0x43, 0x1400d82f3 mov rax, cs:qword_1406C2ED8 ; +0x4a, 0x1400d82fa test rax, rax ; +0x51, 0x1400d8301 jnz short loc_1400D8338 ; +0x54, 0x1400d8304 mov ecx, 668h; Size ; +0x56, 0x1400d8306 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x5b, 0x1400d830b mov [rsp+78h+arg_10], rax ; +0x60, 0x1400d8310 mov rcx, rax ; +0x68, 0x1400d8318 call sub_14017AB00 ; +0x6b, 0x1400d831b nop ; +0x70, 0x1400d8320 mov cs:qword_1406C2ED8, rax ; +0x71, 0x1400d8321 mov rdx, [rax] ; +0x78, 0x1400d8328 mov rcx, rax ; +0x7b, 0x1400d832b call qword ptr [rdx+48h] ; +0x7e, 0x1400d832e mov rax, cs:qword_1406C2ED8 ; +0x81, 0x1400d8331 mov dword ptr [rax+2BCh], 3 ; +0x88, 0x1400d8338 mov rcx, rbx ; +0x92, 0x1400d8342 call EditLevelLayer__verifyLevelName ; +0x95, 0x1400d8345 lea rax, [rsp+78h+var_28] ; +0x9a, 0x1400d834a mov [rsp+78h+arg_10], rax ; +0x9f, 0x1400d834f lea rdx, [rsp+78h+var_28] ; +0xa7, 0x1400d8357 mov rcx, [rbx+1C8h] ; +0xac, 0x1400d835c call GJGameLevel__getAudioFileName ; +0xb3, 0x1400d8363 mov rdi, rax ; +0xb8, 0x1400d8368 mov rcx, cs:qword_1406C2E88 ; +0xbb, 0x1400d836b test rcx, rcx ; +0xc2, 0x1400d8372 jnz short loc_1400D83A9 ; +0xc5, 0x1400d8375 mov ecx, 888h; Size ; +0xc7, 0x1400d8377 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xcc, 0x1400d837c mov [rsp+78h+arg_18], rax ; +0xd1, 0x1400d8381 mov rcx, rax ; +0xd9, 0x1400d8389 call FMODAudioEngine__FMODAudioEngine ; +0xdc, 0x1400d838c nop ; +0xe1, 0x1400d8391 mov cs:qword_1406C2E88, rax ; +0xe2, 0x1400d8392 mov rdx, [rax] ; +0xe9, 0x1400d8399 mov rcx, rax ; +0xec, 0x1400d839c call qword ptr [rdx+48h] ; +0xef, 0x1400d839f mov rcx, cs:qword_1406C2E88 ; +0xf2, 0x1400d83a2 mov [rsp+78h+var_38], 0 ; +0xf9, 0x1400d83a9 xor eax, eax ; +0xfe, 0x1400d83ae mov [rsp+78h+var_40], eax ; +0x100, 0x1400d83b0 mov [rsp+78h+var_48], eax ; +0x104, 0x1400d83b4 mov [rsp+78h+var_50], 1 ; +0x108, 0x1400d83b8 movss xmm2, cs:flt_140622C24 ; +0x10d, 0x1400d83bd movss [rsp+78h+var_58], xmm2 ; +0x115, 0x1400d83c5 xorps xmm3, xmm3 ; +0x11b, 0x1400d83cb mov rdx, rdi ; +0x11e, 0x1400d83ce call FMODAudioEngine__loadMusic ; +0x121, 0x1400d83d1 mov rbx, [rbx+1C8h] ; +0x126, 0x1400d83d6 call cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x12d, 0x1400d83dd mov rdi, rax ; +0x133, 0x1400d83e3 call cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x136, 0x1400d83e6 mov [rax+0E0h], rdi ; +0x13c, 0x1400d83ec xor edx, edx ; +0x143, 0x1400d83f3 mov rcx, rbx ; +0x145, 0x1400d83f5 call LevelEditorLayer__create ; +0x148, 0x1400d83f8 mov r8, [rdi] ; +0x14d, 0x1400d83fd mov rdx, rax ; +0x150, 0x1400d8400 mov rcx, rdi ; +0x153, 0x1400d8403 call qword ptr [r8+1C0h] ; +0x156, 0x1400d8406 mov dword ptr [rdi+1Ch], 6 ; +0x15d, 0x1400d840d mov rdx, rdi ; +0x164, 0x1400d8414 movss xmm0, cs:dword_140622B08 ; +0x167, 0x1400d8417 call cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x16f, 0x1400d841f mov rbx, rax ; +0x175, 0x1400d8425 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x178, 0x1400d8428 mov rcx, rax ; +0x17e, 0x1400d842e mov rdx, rbx ; +0x181, 0x1400d8431 call cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x184, 0x1400d8434 mov rbx, [rsp+78h+arg_0] ; +0x18a, 0x1400d843a add rsp, 70h ; +0x192, 0x1400d8442 pop rdi ; +0x196, 0x1400d8446 retn ; +0x197, 0x1400d8447