; ; BrowseSmartTemplateLayer::goToPage from 0x14045ae90 to 0x14045aff8 (360 bytes) ; ; 7 xrefs: ; > BrowseSmartTemplateLayer::init @ 0x14045a384 ; > BrowseSmartTemplateLayer::onClick @ 0x14045b3bc ; > BrowseSmartTemplateLayer::onClick @ 0x14045b3d1 ; > BrowseSmartKeyLayer::init @ 0x14045ba0b ; > @ 0x1406a3b80 ; > @ 0x1406a3bc0 ; > @ 0x1406dab68 ; ; 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 rbx ; +0x0, 0x14045ae90 sub rsp, 30h ; +0x2, 0x14045ae92 mov [rcx+288h], edx ; +0x6, 0x14045ae96 mov rbx, rcx ; +0xc, 0x14045ae9c mov rcx, [rcx+280h] ; +0xf, 0x14045ae9f mov [rsp+38h+arg_0], rbp ; +0x16, 0x14045aea6 test edx, edx ; +0x1b, 0x14045aeab jns short loc_14045AEBF ; +0x1d, 0x14045aead call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1f, 0x14045aeaf dec eax ; +0x25, 0x14045aeb5 mov [rbx+288h], eax ; +0x27, 0x14045aeb7 jmp short loc_14045AED9 ; +0x2d, 0x14045aebd call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x14045aebf dec eax ; +0x35, 0x14045aec5 cmp [rbx+288h], eax ; +0x37, 0x14045aec7 jbe short loc_14045AED9 ; +0x3d, 0x14045aecd mov dword ptr [rbx+288h], 0 ; +0x3f, 0x14045aecf mov rcx, [rbx+280h] ; +0x49, 0x14045aed9 xor ebp, ebp ; +0x50, 0x14045aee0 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x52, 0x14045aee2 test eax, eax ; +0x58, 0x14045aee8 jz loc_14045AFAA ; +0x5a, 0x14045aeea mov [rsp+38h+arg_8], rsi ; +0x60, 0x14045aef0 mov [rsp+38h+arg_10], rdi ; +0x65, 0x14045aef5 mov [rsp+38h+var_10], r14 ; +0x6a, 0x14045aefa mov [rsp+38h+var_18], r15 ; +0x6f, 0x14045aeff nop dword ptr [rax+00h] ; +0x74, 0x14045af04 nop dword ptr [rax+rax+00000000h] ; +0x78, 0x14045af08 cmp [rbx+288h], ebp ; +0x80, 0x14045af10 mov edx, ebp ; +0x86, 0x14045af16 mov rcx, [rbx+280h] ; +0x88, 0x14045af18 setz r15b ; +0x8f, 0x14045af1f call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x93, 0x14045af23 mov rcx, rax ; +0x99, 0x14045af29 mov r14, rax ; +0x9c, 0x14045af2c xor esi, esi ; +0x9f, 0x14045af2f call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x14045af31 test eax, eax ; +0xa7, 0x14045af37 jz short loc_14045AF7F ; +0xa9, 0x14045af39 nop dword ptr [rax+rax+00h] ; +0xab, 0x14045af3b mov edx, esi ; +0xb0, 0x14045af40 mov rcx, r14 ; +0xb2, 0x14045af42 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb5, 0x14045af45 movzx edx, r15b ; +0xbb, 0x14045af4b mov rcx, rax ; +0xbf, 0x14045af4f mov rdi, rax ; +0xc2, 0x14045af52 mov r8, [rax] ; +0xc5, 0x14045af55 call qword ptr [r8+140h] ; +0xc8, 0x14045af58 mov r8, [rdi] ; +0xcf, 0x14045af5f movzx edx, r15b ; +0xd2, 0x14045af62 mov rcx, rdi ; +0xd6, 0x14045af66 call qword ptr [r8+398h] ; +0xd9, 0x14045af69 mov rcx, r14 ; +0xe0, 0x14045af70 inc esi ; +0xe3, 0x14045af73 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe5, 0x14045af75 cmp esi, eax ; +0xeb, 0x14045af7b jb short loc_14045AF40 ; +0xed, 0x14045af7d mov rcx, [rbx+280h] ; +0xef, 0x14045af7f inc ebp ; +0xf6, 0x14045af86 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf8, 0x14045af88 cmp ebp, eax ; +0xfe, 0x14045af8e jb loc_14045AF10 ; +0x100, 0x14045af90 mov r15, [rsp+38h+var_18] ; +0x106, 0x14045af96 mov r14, [rsp+38h+var_10] ; +0x10b, 0x14045af9b mov rdi, [rsp+38h+arg_10] ; +0x110, 0x14045afa0 mov rsi, [rsp+38h+arg_8] ; +0x115, 0x14045afa5 mov rcx, [rbx+280h] ; +0x11a, 0x14045afaa call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x121, 0x14045afb1 mov rbp, [rsp+38h+arg_0] ; +0x127, 0x14045afb7 cmp eax, 1 ; +0x12c, 0x14045afbc ja short loc_14045AFEB ; +0x12f, 0x14045afbf mov rcx, [rbx+298h] ; +0x131, 0x14045afc1 xor edx, edx ; +0x138, 0x14045afc8 mov rax, [rcx] ; +0x13a, 0x14045afca call qword ptr [rax+140h] ; +0x13d, 0x14045afcd mov rcx, [rbx+290h] ; +0x143, 0x14045afd3 xor edx, edx ; +0x14a, 0x14045afda mov rax, [rcx] ; +0x14c, 0x14045afdc add rsp, 30h ; +0x14f, 0x14045afdf pop rbx ; +0x153, 0x14045afe3 jmp qword ptr [rax+140h] ; +0x154, 0x14045afe4 mov rcx, rbx ; +0x15b, 0x14045afeb add rsp, 30h ; +0x15e, 0x14045afee pop rbx ; +0x162, 0x14045aff2 jmp sub_14045AC40 ; +0x163, 0x14045aff3