; ; cocos2d::CCLayer::init from 0x180051c80 to 0x180051cd0 (80 bytes) ; ; 7 xrefs: ; > cocos2d::CCMenu::initWithArray @ 0x18005b47d ; > @ 0x1800f3088 ; > @ 0x1800f4640 ; > @ 0x1801411cc ; > @ 0x1801411dc ; > @ 0x18014cf68 ; > @ 0x1801bc154 ; ; 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, 0x180051c80 sub rsp, 20h ; +0x2, 0x180051c82 mov rdi, rcx ; +0x6, 0x180051c86 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180051c89 test rax, rax ; +0xe, 0x180051c8e jz short loc_180051CCA ; +0x11, 0x180051c91 mov [rsp+28h+arg_0], rbx ; +0x13, 0x180051c93 lea rdx, [rsp+28h+arg_8] ; +0x18, 0x180051c98 mov rbx, [rdi] ; +0x1d, 0x180051c9d mov rcx, rax ; +0x20, 0x180051ca0 call ?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x23, 0x180051ca3 mov rdx, rax ; +0x28, 0x180051ca8 mov rcx, rdi ; +0x2b, 0x180051cab call qword ptr [rbx+138h] ; +0x2e, 0x180051cae mov rbx, [rsp+28h+arg_0] ; +0x34, 0x180051cb4 mov al, 1 ; +0x39, 0x180051cb9 mov word ptr [rdi+168h], 0 ; +0x3b, 0x180051cbb add rsp, 20h ; +0x44, 0x180051cc4 pop rdi ; +0x48, 0x180051cc8 retn ; +0x49, 0x180051cc9 add rsp, 20h ; +0x4a, 0x180051cca pop rdi ; +0x4e, 0x180051cce retn ; +0x4f, 0x180051ccf