; ; cocos2d::CCLayerRGBA::init from 0x18004ff30 to 0x18004ffdb (171 bytes) ; ; 5 xrefs: ; > @ 0x1800ed3f8 ; > @ 0x1801380f4 ; > @ 0x180138104 ; > @ 0x1801438a8 ; > @ 0x1801b1efc ; ; 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 ; push rdi ; +0x0, 0x18004ff30 sub rsp, 20h ; +0x2, 0x18004ff32 mov rdi, rcx ; +0x6, 0x18004ff36 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x18004ff39 test rax, rax ; +0xe, 0x18004ff3e jz loc_18004FFD5 ; +0x11, 0x18004ff41 mov [rsp+28h+arg_0], rbx ; +0x17, 0x18004ff47 lea rdx, [rsp+28h+arg_8] ; +0x1c, 0x18004ff4c mov rbx, [rdi] ; +0x21, 0x18004ff51 mov rcx, rax ; +0x24, 0x18004ff54 call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x27, 0x18004ff57 mov rdx, rax ; +0x2c, 0x18004ff5c mov rcx, rdi ; +0x2f, 0x18004ff5f call qword ptr [rbx+128h] ; +0x32, 0x18004ff62 movzx ecx, cs:word_1800ECE30 ; +0x38, 0x18004ff68 xor edx, edx ; +0x3f, 0x18004ff6f movzx eax, cs:byte_1800ECE32 ; +0x41, 0x18004ff71 mov [rdi+1A5h], cx ; +0x48, 0x18004ff78 mov [rdi+1A2h], cx ; +0x4f, 0x18004ff7f lea rcx, [rdi+198h] ; +0x56, 0x18004ff86 mov [rdi+1A7h], al ; +0x5d, 0x18004ff8d mov [rdi+1A4h], al ; +0x63, 0x18004ff93 mov rax, [rdi+198h] ; +0x69, 0x18004ff99 mov word ptr [rdi+168h], 0 ; +0x70, 0x18004ffa0 mov word ptr [rdi+1A0h], 0FFFFh ; +0x79, 0x18004ffa9 call qword ptr [rax+60h] ; +0x82, 0x18004ffb2 mov rax, [rdi+198h] ; +0x85, 0x18004ffb5 lea rcx, [rdi+198h] ; +0x8c, 0x18004ffbc xor edx, edx ; +0x93, 0x18004ffc3 call qword ptr [rax+48h] ; +0x95, 0x18004ffc5 mov rbx, [rsp+28h+arg_0] ; +0x98, 0x18004ffc8 mov al, 1 ; +0x9d, 0x18004ffcd add rsp, 20h ; +0x9f, 0x18004ffcf pop rdi ; +0xa3, 0x18004ffd3 retn ; +0xa4, 0x18004ffd4 add rsp, 20h ; +0xa5, 0x18004ffd5 pop rdi ; +0xa9, 0x18004ffd9 retn ; +0xaa, 0x18004ffda