; ; BoomScrollLayer::updatePages from 0x140041170 to 0x14004128a (282 bytes) ; ; 4 xrefs: ; > BoomScrollLayer::init @ 0x140040ddd ; > @ 0x140884ca0 ; > @ 0x140884cb0 ; > @ 0x14090f4a0 ; ; 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:25:29 +0000 ; push rsi ; +0x0, 0x140041170 push rdi ; +0x2, 0x140041172 sub rsp, 38h ; +0x3, 0x140041173 mov rsi, rcx ; +0x7, 0x140041177 xor edi, edi ; +0xa, 0x14004117a mov rcx, [rcx+1E0h] ; +0xc, 0x14004117c call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x13, 0x140041183 test eax, eax ; +0x19, 0x140041189 jz loc_140041283 ; +0x1b, 0x14004118b mov [rsp+48h+arg_18], rbx ; +0x21, 0x140041191 mov [rsp+48h+var_18], r14 ; +0x26, 0x140041196 movaps [rsp+48h+var_28], xmm6 ; +0x2b, 0x14004119b mov rcx, [rsi+1E0h] ; +0x30, 0x1400411a0 mov edx, edi ; +0x37, 0x1400411a7 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1400411a9 xorps xmm2, xmm2 ; +0x3f, 0x1400411af lea rcx, [rsp+48h+arg_0] ; +0x42, 0x1400411b2 xorps xmm1, xmm1 ; +0x47, 0x1400411b7 mov r14, rax ; +0x4a, 0x1400411ba mov rbx, [rax] ; +0x4d, 0x1400411bd call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x50, 0x1400411c0 mov rdx, rax ; +0x56, 0x1400411c6 mov rcx, r14 ; +0x59, 0x1400411c9 call qword ptr [rbx+120h] ; +0x5c, 0x1400411cc mov rbx, [r14] ; +0x62, 0x1400411d2 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x1400411d5 mov rcx, rax ; +0x6b, 0x1400411db lea rdx, [rsp+48h+arg_8] ; +0x6e, 0x1400411de call cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x73, 0x1400411e3 mov rdx, rax ; +0x79, 0x1400411e9 mov rcx, r14 ; +0x7c, 0x1400411ec call qword ptr [rbx+138h] ; +0x7f, 0x1400411ef mov rax, [rsi] ; +0x85, 0x1400411f5 mov rcx, rsi ; +0x88, 0x1400411f8 movss xmm6, dword ptr [rsi+250h] ; +0x8b, 0x1400411fb call qword ptr [rax+140h] ; +0x93, 0x140041203 mov rbx, [r14] ; +0x99, 0x140041209 lea rcx, [rsp+48h+arg_10] ; +0x9c, 0x14004120c movd xmm0, edi ; +0xa1, 0x140041211 xorps xmm2, xmm2 ; +0xa5, 0x140041215 cvtdq2ps xmm0, xmm0 ; +0xa8, 0x140041218 movss xmm1, dword ptr [rax] ; +0xab, 0x14004121b subss xmm1, xmm6 ; +0xaf, 0x14004121f mulss xmm1, xmm0 ; +0xb3, 0x140041223 call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb7, 0x140041227 mov rdx, rax ; +0xbd, 0x14004122d mov rcx, r14 ; +0xc0, 0x140041230 call qword ptr [rbx+0B8h] ; +0xc3, 0x140041233 mov rax, [r14] ; +0xc9, 0x140041239 mov rcx, r14 ; +0xcc, 0x14004123c call qword ptr [rax+1F8h] ; +0xcf, 0x14004123f test rax, rax ; +0xd5, 0x140041245 jnz short loc_14004125D ; +0xd8, 0x140041248 mov rcx, [rsi+1F8h] ; +0xda, 0x14004124a mov rdx, r14 ; +0xe1, 0x140041251 mov rax, [rcx] ; +0xe4, 0x140041254 call qword ptr [rax+1D0h] ; +0xe7, 0x140041257 mov rcx, [rsi+1E0h] ; +0xed, 0x14004125d inc edi ; +0xf4, 0x140041264 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf6, 0x140041266 cmp edi, eax ; +0xfc, 0x14004126c jb loc_1400411A0 ; +0xfe, 0x14004126e movaps xmm6, [rsp+48h+var_28] ; +0x104, 0x140041274 mov r14, [rsp+48h+var_18] ; +0x109, 0x140041279 mov rbx, [rsp+48h+arg_18] ; +0x10e, 0x14004127e add rsp, 38h ; +0x113, 0x140041283 pop rdi ; +0x117, 0x140041287 pop rsi ; +0x118, 0x140041288 retn ; +0x119, 0x140041289