; ; DrawGridLayer::create from 0x1402e8af0 to 0x1402e8ccc (476 bytes) ; ; 2 xrefs: ; > LevelEditorLayer::init @ 0x1402d27b7 ; > @ 0x1406d380c ; ; 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, 0x1402e8af0 mov [rsp+arg_8], rbp ; +0x5, 0x1402e8af5 push rsi ; +0xa, 0x1402e8afa push rdi ; +0xb, 0x1402e8afb push r14 ; +0xc, 0x1402e8afc sub rsp, 20h ; +0xe, 0x1402e8afe mov rdi, rdx ; +0x12, 0x1402e8b02 mov rsi, rcx ; +0x15, 0x1402e8b05 mov ecx, 280h; Size ; +0x18, 0x1402e8b08 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1d, 0x1402e8b0d mov [rsp+38h+arg_10], rax ; +0x22, 0x1402e8b12 mov rcx, rax ; +0x27, 0x1402e8b17 call sub_1402D0FF0 ; +0x2a, 0x1402e8b1a mov rbx, rax ; +0x2f, 0x1402e8b1f test rax, rax ; +0x32, 0x1402e8b22 jz loc_1402E8CB6 ; +0x35, 0x1402e8b25 mov rcx, rax ; +0x3b, 0x1402e8b2b call cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0x3e, 0x1402e8b2e test al, al ; +0x44, 0x1402e8b34 jz loc_1402E8CA6 ; +0x46, 0x1402e8b36 mov [rbx+230h], rsi ; +0x4c, 0x1402e8b3c mov [rbx+208h], rdi ; +0x53, 0x1402e8b43 mov qword ptr [rbx+238h], 0 ; +0x5a, 0x1402e8b4a call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x65, 0x1402e8b55 mov [rbx+240h], rax ; +0x6b, 0x1402e8b5b mov rcx, rax ; +0x72, 0x1402e8b62 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x75, 0x1402e8b65 call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x7b, 0x1402e8b6b mov [rbx+248h], rax ; +0x81, 0x1402e8b71 mov rcx, rax ; +0x88, 0x1402e8b78 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x8b, 0x1402e8b7b call cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x91, 0x1402e8b81 mov [rbx+250h], rax ; +0x97, 0x1402e8b87 mov rcx, rax ; +0x9e, 0x1402e8b8e call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xa1, 0x1402e8b91 mov dword ptr [rbx+264h], 437B28FBh ; +0xa7, 0x1402e8b97 mov dword ptr [rbx+268h], 439BCA41h ; +0xb1, 0x1402e8ba1 mov dword ptr [rbx+26Ch], 43C1B5C7h ; +0xbb, 0x1402e8bab mov dword ptr [rbx+270h], 43EA0005h ; +0xc5, 0x1402e8bb5 mov dword ptr [rbx+274h], 44100003h ; +0xcf, 0x1402e8bbf mov dword ptr [rbx+260h], 439BCA41h ; +0xd9, 0x1402e8bc9 mov ecx, 0C80h; Size ; +0xe3, 0x1402e8bd3 call j_??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xe8, 0x1402e8bd8 mov r14, rax ; +0xed, 0x1402e8bdd mov [rsp+38h+arg_10], rax ; +0xf0, 0x1402e8be0 mov rdi, rax ; +0xf5, 0x1402e8be5 mov esi, 190h ; +0xf8, 0x1402e8be8 mov ebp, esi ; +0xfd, 0x1402e8bed nop ; +0xff, 0x1402e8bef mov rcx, rdi ; +0x100, 0x1402e8bf0 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x103, 0x1402e8bf3 add rdi, 8 ; +0x109, 0x1402e8bf9 sub rbp, 1 ; +0x10d, 0x1402e8bfd jnz short loc_1402E8BF0 ; +0x111, 0x1402e8c01 mov [rbx+198h], r14 ; +0x113, 0x1402e8c03 xor edx, edx; Val ; +0x11a, 0x1402e8c0a mov r8d, 0C80h; Size ; +0x11c, 0x1402e8c0c mov rcx, r14; void * ; +0x122, 0x1402e8c12 call memset ; +0x125, 0x1402e8c15 mov ecx, 0C80h; Size ; +0x12a, 0x1402e8c1a call j_??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x12f, 0x1402e8c1f mov r14, rax ; +0x134, 0x1402e8c24 mov [rsp+38h+arg_10], rax ; +0x137, 0x1402e8c27 mov rdi, rax ; +0x13c, 0x1402e8c2c mov rbp, rsi ; +0x13f, 0x1402e8c2f mov rcx, rdi ; +0x142, 0x1402e8c32 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x145, 0x1402e8c35 add rdi, 8 ; +0x14b, 0x1402e8c3b sub rbp, 1 ; +0x14f, 0x1402e8c3f jnz short loc_1402E8C32 ; +0x153, 0x1402e8c43 mov [rbx+1A0h], r14 ; +0x155, 0x1402e8c45 xor edx, edx; Val ; +0x15c, 0x1402e8c4c mov r8d, 0C80h; Size ; +0x15e, 0x1402e8c4e mov rcx, r14; void * ; +0x164, 0x1402e8c54 call memset ; +0x167, 0x1402e8c57 mov ecx, 0C80h; Size ; +0x16c, 0x1402e8c5c call j_??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x171, 0x1402e8c61 mov rbp, rax ; +0x176, 0x1402e8c66 mov [rsp+38h+arg_10], rax ; +0x179, 0x1402e8c69 mov rdi, rax ; +0x17e, 0x1402e8c6e mov rcx, rdi ; +0x181, 0x1402e8c71 call cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x184, 0x1402e8c74 add rdi, 8 ; +0x18a, 0x1402e8c7a sub rsi, 1 ; +0x18e, 0x1402e8c7e jnz short loc_1402E8C71 ; +0x192, 0x1402e8c82 mov [rbx+1A8h], rbp ; +0x194, 0x1402e8c84 xor edx, edx; Val ; +0x19b, 0x1402e8c8b mov r8d, 0C80h; Size ; +0x19d, 0x1402e8c8d mov rcx, rbp; void * ; +0x1a3, 0x1402e8c93 call memset ; +0x1a6, 0x1402e8c96 mov rcx, rbx ; +0x1ab, 0x1402e8c9b call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1ae, 0x1402e8c9e jmp short loc_1402E8CB6 ; +0x1b4, 0x1402e8ca4 mov rax, [rbx] ; +0x1b6, 0x1402e8ca6 mov edx, 1 ; +0x1b9, 0x1402e8ca9 mov rcx, rbx ; +0x1be, 0x1402e8cae call qword ptr [rax+8] ; +0x1c1, 0x1402e8cb1 xor ebx, ebx ; +0x1c4, 0x1402e8cb4 mov rax, rbx ; +0x1c6, 0x1402e8cb6 mov rbx, [rsp+38h+arg_0] ; +0x1c9, 0x1402e8cb9 mov rbp, [rsp+38h+arg_8] ; +0x1ce, 0x1402e8cbe add rsp, 20h ; +0x1d3, 0x1402e8cc3 pop r14 ; +0x1d7, 0x1402e8cc7 pop rdi ; +0x1d9, 0x1402e8cc9 pop rsi ; +0x1da, 0x1402e8cca retn ; +0x1db, 0x1402e8ccb