; ; EditLevelLayer::onEdit from 0x1001de4a0 to 0x1001de5d9 (313 bytes) ; ; 2 xrefs: ; > EditLevelLayer::FLAlert_Clicked @ 0x1001e0e2a ; > EditLevelLayer::init @ 0x1001dd97a ; ; 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 12:26:27 +0000 ; push rbp ; +0x0, 0x1001de4a0 mov rbp, rsp ; +0x1, 0x1001de4a1 push r15 ; +0x4, 0x1001de4a4 push r14 ; +0x6, 0x1001de4a6 push rbx ; +0x8, 0x1001de4a8 sub rsp, 18h ; +0x9, 0x1001de4a9 mov rbx, rdi ; +0xd, 0x1001de4ad call cocos2d__CCDirector__sharedDirector ; +0x10, 0x1001de4b0 cmp byte ptr [rax+0B0h], 0 ; +0x15, 0x1001de4b5 jnz loc_1001DE5CE ; +0x1c, 0x1001de4bc cmp byte ptr [rbx+1F0h], 0 ; +0x22, 0x1001de4c2 jnz loc_1001DE5CE ; +0x29, 0x1001de4c9 mov rdi, [rbx+1E0h] ; +0x2f, 0x1001de4cf call sub_1007FEF90 ; +0x36, 0x1001de4d6 test eax, eax ; +0x3b, 0x1001de4db jz short loc_1001DE521 ; +0x3d, 0x1001de4dd xor r14d, r14d ; +0x3f, 0x1001de4df nop word ptr [rax+rax+00000000h] ; +0x42, 0x1001de4e2 mov rdi, [rbx+1E0h] ; +0x50, 0x1001de4f0 mov esi, r14d ; +0x57, 0x1001de4f7 call sub_1007FEFE0 ; +0x5a, 0x1001de4fa mov rcx, [rax] ; +0x5f, 0x1001de4ff mov rdi, rax ; +0x62, 0x1001de502 xor esi, esi ; +0x65, 0x1001de505 call qword ptr [rcx+488h] ; +0x67, 0x1001de507 inc r14d ; +0x6d, 0x1001de50d mov rdi, [rbx+1E0h] ; +0x70, 0x1001de510 call sub_1007FEF90 ; +0x77, 0x1001de517 cmp r14d, eax ; +0x7c, 0x1001de51c jb short loc_1001DE4F0 ; +0x7f, 0x1001de51f mov rax, [rbx] ; +0x81, 0x1001de521 mov rdi, rbx ; +0x84, 0x1001de524 xor esi, esi ; +0x87, 0x1001de527 call qword ptr [rax+430h] ; +0x89, 0x1001de529 mov byte ptr [rbx+1F0h], 1 ; +0x8f, 0x1001de52f call GameManager__sharedState ; +0x96, 0x1001de536 mov dword ptr [rax+2C4h], 3 ; +0x9b, 0x1001de53b mov rdi, rbx ; +0xa5, 0x1001de545 call EditLevelLayer__verifyLevelName ; +0xa8, 0x1001de548 call FMODAudioEngine__sharedEngine ; +0xad, 0x1001de54d mov r14, rax ; +0xb2, 0x1001de552 mov rsi, [rbx+1D8h] ; +0xb5, 0x1001de555 lea r15, [rbp+var_30] ; +0xbc, 0x1001de55c mov rdi, r15 ; +0xc0, 0x1001de560 call GJGameLevel__getAudioFileName ; +0xc3, 0x1001de563 movss xmm0, cs:alpha ; +0xc8, 0x1001de568 xorps xmm1, xmm1 ; +0xd0, 0x1001de570 mov rdi, r14 ; +0xd3, 0x1001de573 mov rsi, r15 ; +0xd6, 0x1001de576 movaps xmm2, xmm0 ; +0xd9, 0x1001de579 mov edx, 1 ; +0xdc, 0x1001de57c xor ecx, ecx ; +0xe1, 0x1001de581 xor r8d, r8d ; +0xe3, 0x1001de583 xor r9d, r9d ; +0xe6, 0x1001de586 call FMODAudioEngine__loadMusic ; +0xe9, 0x1001de589 test [rbp+var_30], 1 ; +0xee, 0x1001de58e jz short loc_1001DE59D ; +0xf2, 0x1001de592 mov rdi, [rbp+__p]; __p ; +0xf4, 0x1001de594 call __ZdlPv; operator delete(void *) ; +0xf8, 0x1001de598 call cocos2d__CCDirector__sharedDirector ; +0xfd, 0x1001de59d mov r14, rax ; +0x102, 0x1001de5a2 mov rdi, [rbx+1D8h] ; +0x105, 0x1001de5a5 xor esi, esi ; +0x10c, 0x1001de5ac call LevelEditorLayer__scene ; +0x10e, 0x1001de5ae movss xmm0, cs:dword_100A03578 ; +0x113, 0x1001de5b3 mov rdi, rax ; +0x11b, 0x1001de5bb call cocos2d__CCTransitionFade__create_1 ; +0x11e, 0x1001de5be mov rdi, r14 ; +0x123, 0x1001de5c3 mov rsi, rax ; +0x126, 0x1001de5c6 call cocos2d__CCDirector__replaceScene ; +0x129, 0x1001de5c9 add rsp, 18h ; +0x12e, 0x1001de5ce pop rbx ; +0x132, 0x1001de5d2 pop r14 ; +0x133, 0x1001de5d3 pop r15 ; +0x135, 0x1001de5d5 pop rbp ; +0x137, 0x1001de5d7 retn ; +0x138, 0x1001de5d8