; ; cocos2d::CCLayerRGBA::init from 0x180051d50 to 0x180051dfb (171 bytes) ; ; 5 xrefs: ; > @ 0x1800f3568 ; > @ 0x18014131c ; > @ 0x18014132c ; > @ 0x18014cf68 ; > @ 0x1801bc190 ; ; 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:21:45 +0000 ; push rdi ; +0x0, 0x180051d50 sub rsp, 20h ; +0x2, 0x180051d52 mov rdi, rcx ; +0x6, 0x180051d56 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180051d59 test rax, rax ; +0xe, 0x180051d5e jz loc_180051DF5 ; +0x11, 0x180051d61 mov [rsp+28h+arg_0], rbx ; +0x17, 0x180051d67 lea rdx, [rsp+28h+arg_8] ; +0x1c, 0x180051d6c mov rbx, [rdi] ; +0x21, 0x180051d71 mov rcx, rax ; +0x24, 0x180051d74 call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x27, 0x180051d77 mov rdx, rax ; +0x2c, 0x180051d7c mov rcx, rdi ; +0x2f, 0x180051d7f call qword ptr [rbx+138h] ; +0x32, 0x180051d82 movzx ecx, cs:word_1800F2F70 ; +0x38, 0x180051d88 xor edx, edx ; +0x3f, 0x180051d8f movzx eax, cs:byte_1800F2F72 ; +0x41, 0x180051d91 mov [rdi+1A5h], cx ; +0x48, 0x180051d98 mov [rdi+1A2h], cx ; +0x4f, 0x180051d9f lea rcx, [rdi+198h] ; +0x56, 0x180051da6 mov [rdi+1A7h], al ; +0x5d, 0x180051dad mov [rdi+1A4h], al ; +0x63, 0x180051db3 mov rax, [rdi+198h] ; +0x69, 0x180051db9 mov word ptr [rdi+168h], 0 ; +0x70, 0x180051dc0 mov word ptr [rdi+1A0h], 0FFFFh ; +0x79, 0x180051dc9 call qword ptr [rax+60h] ; +0x82, 0x180051dd2 mov rax, [rdi+198h] ; +0x85, 0x180051dd5 lea rcx, [rdi+198h] ; +0x8c, 0x180051ddc xor edx, edx ; +0x93, 0x180051de3 call qword ptr [rax+48h] ; +0x95, 0x180051de5 mov rbx, [rsp+28h+arg_0] ; +0x98, 0x180051de8 mov al, 1 ; +0x9d, 0x180051ded add rsp, 20h ; +0x9f, 0x180051def pop rdi ; +0xa3, 0x180051df3 retn ; +0xa4, 0x180051df4 add rsp, 20h ; +0xa5, 0x180051df5 pop rdi ; +0xa9, 0x180051df9 retn ; +0xaa, 0x180051dfa