; ; cocos2d::extension::CCScrollView::beforeDraw from 0x180013110 to 0x1800132b0 (416 bytes) ; ; 5 xrefs: ; > cocos2d::extension::CCScrollView::visit @ 0x180013377 ; > @ 0x180030fb0 ; > @ 0x180030ff0 ; > @ 0x180032408 ; > @ 0x18004c428 ; ; 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:15:40 +0000 ; push rbx ; +0x0, 0x180013110 sub rsp, 90h ; +0x2, 0x180013112 cmp byte ptr [rcx+1DDh], 0 ; +0x9, 0x180013119 mov rbx, rcx ; +0x10, 0x180013120 jz loc_180013263 ; +0x13, 0x180013123 lea rdx, [rsp+98h+var_68] ; +0x19, 0x180013129 mov byte ptr [rcx+220h], 0 ; +0x1e, 0x18001312e call ?getViewRect@CCScrollView@extension@cocos2d@@IEAA?AVCCRect@3@XZ; cocos2d::extension::CCScrollView::getViewRect(void) ; +0x25, 0x180013135 call cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x2a, 0x18001313a mov rcx, rax ; +0x30, 0x180013140 mov rdx, [rax] ; +0x33, 0x180013143 call qword ptr [rdx+70h] ; +0x36, 0x180013146 test al, al ; +0x39, 0x180013149 jz loc_18001326C ; +0x3b, 0x18001314b mov [rsp+98h+arg_0], rdi ; +0x41, 0x180013151 mov byte ptr [rbx+220h], 1 ; +0x49, 0x180013159 call cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x50, 0x180013160 lea rdx, [rsp+98h+var_58] ; +0x56, 0x180013166 mov rcx, [rax] ; +0x5b, 0x18001316b mov r8, [rcx+78h] ; +0x5e, 0x18001316e mov rcx, rax ; +0x62, 0x180013172 call r8 ; +0x65, 0x180013175 mov rdx, rax ; +0x68, 0x180013178 lea rcx, [rbx+210h] ; +0x6b, 0x18001317b call cs:??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x72, 0x180013182 lea rdx, [rbx+210h] ; +0x78, 0x180013188 lea rcx, [rsp+98h+var_68] ; +0x7f, 0x18001318f call cs:?intersectsRect@CCRect@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCRect::intersectsRect(cocos2d::CCRect const &) ; +0x84, 0x180013194 test al, al ; +0x8a, 0x18001319a jz loc_18001325B ; +0x8c, 0x18001319c movss xmm0, [rsp+98h+var_68] ; +0x92, 0x1800131a2 movss xmm1, [rsp+98h+var_64] ; +0x98, 0x1800131a8 movss xmm2, dword ptr [rbx+210h] ; +0x9e, 0x1800131ae movss xmm4, dword ptr [rbx+214h] ; +0xa6, 0x1800131b6 movaps [rsp+98h+var_18], xmm6 ; +0xae, 0x1800131be movss xmm6, [rsp+98h+var_5C] ; +0xb6, 0x1800131c6 movaps [rsp+98h+var_28], xmm7 ; +0xbc, 0x1800131cc addss xmm6, xmm1 ; +0xc1, 0x1800131d1 movss xmm7, [rsp+98h+var_60] ; +0xc5, 0x1800131d5 movaps [rsp+98h+var_38], xmm8 ; +0xcb, 0x1800131db addss xmm7, xmm0 ; +0xd1, 0x1800131e1 movaps [rsp+98h+var_48], xmm9 ; +0xd5, 0x1800131e5 movaps xmm8, xmm1 ; +0xdb, 0x1800131eb movaps xmm9, xmm0 ; +0xdf, 0x1800131ef maxss xmm8, xmm4 ; +0xe3, 0x1800131f3 addss xmm4, dword ptr [rbx+21Ch] ; +0xe8, 0x1800131f8 maxss xmm9, xmm2 ; +0xf0, 0x180013200 addss xmm2, dword ptr [rbx+218h] ; +0xf5, 0x180013205 minss xmm6, xmm4 ; +0xfd, 0x18001320d minss xmm7, xmm2 ; +0x101, 0x180013211 call cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x105, 0x180013215 subss xmm7, xmm9 ; +0x10b, 0x18001321b movaps xmm2, xmm8 ; +0x110, 0x180013220 subss xmm6, xmm8 ; +0x114, 0x180013224 movaps xmm1, xmm9 ; +0x119, 0x180013229 mov rcx, [rax] ; +0x11d, 0x18001322d movaps xmm3, xmm7 ; +0x120, 0x180013230 movss [rsp+98h+var_78], xmm6 ; +0x123, 0x180013233 mov rdx, [rcx+68h] ; +0x129, 0x180013239 mov rcx, rax ; +0x12d, 0x18001323d call rdx ; +0x130, 0x180013240 movaps xmm9, [rsp+98h+var_48] ; +0x132, 0x180013242 movaps xmm8, [rsp+98h+var_38] ; +0x138, 0x180013248 movaps xmm7, [rsp+98h+var_28] ; +0x13e, 0x18001324e movaps xmm6, [rsp+98h+var_18] ; +0x143, 0x180013253 mov rdi, [rsp+98h+arg_0] ; +0x14b, 0x18001325b add rsp, 90h ; +0x153, 0x180013263 pop rbx ; +0x15a, 0x18001326a retn ; +0x15b, 0x18001326b mov ecx, 0C11h; cap ; +0x15c, 0x18001326c call cs:glEnable ; +0x161, 0x180013271 call cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x167, 0x180013277 movss xmm0, [rsp+98h+var_5C] ; +0x16d, 0x18001327d movss xmm3, [rsp+98h+var_60] ; +0x173, 0x180013283 movss xmm2, [rsp+98h+var_64] ; +0x179, 0x180013289 mov rcx, [rax] ; +0x17f, 0x18001328f movss xmm1, [rsp+98h+var_68] ; +0x182, 0x180013292 movss [rsp+98h+var_78], xmm0 ; +0x188, 0x180013298 mov rdx, [rcx+68h] ; +0x18e, 0x18001329e mov rcx, rax ; +0x192, 0x1800132a2 call rdx ; +0x195, 0x1800132a5 add rsp, 90h ; +0x197, 0x1800132a7 pop rbx ; +0x19e, 0x1800132ae retn ; +0x19f, 0x1800132af