; ; cocos2d::CCSpriteBatchNode::atlasIndexForChild from 0x18008e100 to 0x18008e24e (334 bytes) ; ; 4 xrefs: ; > cocos2d::CCSpriteBatchNode::insertChild @ 0x18008e95e ; > cocos2d::CCSpriteBatchNode::insertChild @ 0x18008ea0a ; > @ 0x1801438a8 ; > @ 0x1801b5f88 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x18008e100 mov [rsp+arg_8], rbp ; +0x5, 0x18008e105 mov [rsp+arg_10], rsi ; +0xa, 0x18008e10a mov [rsp+arg_18], rdi ; +0xf, 0x18008e10f push r12 ; +0x14, 0x18008e114 push r14 ; +0x16, 0x18008e116 push r15 ; +0x18, 0x18008e118 sub rsp, 20h ; +0x1a, 0x18008e11a mov rax, [rdx] ; +0x1e, 0x18008e11e mov rbp, rcx ; +0x21, 0x18008e121 mov rcx, rdx ; +0x24, 0x18008e124 mov esi, r8d ; +0x27, 0x18008e127 mov rdi, rdx ; +0x2a, 0x18008e12a call qword ptr [rax+1E8h] ; +0x2d, 0x18008e12d mov rcx, rax ; +0x33, 0x18008e133 mov r9, [rax] ; +0x36, 0x18008e136 call qword ptr [r9+1D0h] ; +0x39, 0x18008e139 mov rcx, rax; this ; +0x40, 0x18008e140 mov rdx, rdi; struct cocos2d::CCObject * ; +0x43, 0x18008e143 mov r15, rax ; +0x46, 0x18008e146 call ?indexOfObject@CCArray@cocos2d@@QEBAIPEAVCCObject@2@@Z; cocos2d::CCArray::indexOfObject(cocos2d::CCObject *) ; +0x49, 0x18008e149 mov rdx, [rdi] ; +0x4e, 0x18008e14e mov rcx, rdi ; +0x51, 0x18008e151 mov r14d, eax ; +0x54, 0x18008e154 call qword ptr [rdx+1E8h] ; +0x57, 0x18008e157 lea edx, [r14-1]; unsigned int ; +0x5d, 0x18008e15d xor ebx, ebx ; +0x61, 0x18008e161 mov r12, rax ; +0x63, 0x18008e163 cmp edx, 0FFFFFFFDh ; +0x66, 0x18008e166 ja short loc_18008E176 ; +0x69, 0x18008e169 mov rcx, r15; this ; +0x6b, 0x18008e16b call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6e, 0x18008e16e mov rbx, rax ; +0x73, 0x18008e173 cmp r12, rbp ; +0x76, 0x18008e176 jnz short loc_18008E197 ; +0x79, 0x18008e179 test r14d, r14d ; +0x7b, 0x18008e17b jnz short loc_18008E187 ; +0x7e, 0x18008e17e xor eax, eax ; +0x80, 0x18008e180 jmp loc_18008E22F ; +0x82, 0x18008e182 mov rdx, rbx; struct cocos2d::CCSprite * ; +0x87, 0x18008e187 mov rcx, rbp; this ; +0x8a, 0x18008e18a call ?highestAtlasIndexInChild@CCSpriteBatchNode@cocos2d@@QEAAIPEAVCCSprite@2@@Z; cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(cocos2d::CCSprite *) ; +0x8d, 0x18008e18d jmp loc_18008E22D ; +0x92, 0x18008e192 test r14d, r14d ; +0x97, 0x18008e197 jnz short loc_18008E1B8 ; +0x9a, 0x18008e19a mov rax, [rdi] ; +0x9c, 0x18008e19c mov rcx, rdi ; +0x9f, 0x18008e19f call qword ptr [rax+1E8h] ; +0xa2, 0x18008e1a2 test esi, esi ; +0xa8, 0x18008e1a8 mov ecx, [rax+168h] ; +0xaa, 0x18008e1aa lea eax, [rcx+1] ; +0xb0, 0x18008e1b0 cmovs eax, ecx ; +0xb3, 0x18008e1b3 jmp short loc_18008E22F ; +0xb6, 0x18008e1b6 mov rax, [rbx] ; +0xb8, 0x18008e1b8 mov rcx, rbx ; +0xbb, 0x18008e1bb call qword ptr [rax+60h] ; +0xbe, 0x18008e1be test eax, eax ; +0xc1, 0x18008e1c1 jns short loc_18008E1C9 ; +0xc3, 0x18008e1c3 test esi, esi ; +0xc5, 0x18008e1c5 js short loc_18008E1DA ; +0xc7, 0x18008e1c7 mov rax, [rbx] ; +0xc9, 0x18008e1c9 mov rcx, rbx ; +0xcc, 0x18008e1cc call qword ptr [rax+60h] ; +0xcf, 0x18008e1cf test eax, eax ; +0xd2, 0x18008e1d2 js short loc_18008E21B ; +0xd4, 0x18008e1d4 test esi, esi ; +0xd6, 0x18008e1d6 js short loc_18008E21B ; +0xd8, 0x18008e1d8 mov rax, [rbx] ; +0xda, 0x18008e1da mov rcx, rbx ; +0xdd, 0x18008e1dd call qword ptr [rax+1D0h] ; +0xe0, 0x18008e1e0 mov rdi, rax ; +0xe6, 0x18008e1e6 test rax, rax ; +0xe9, 0x18008e1e9 jz short loc_18008E211 ; +0xec, 0x18008e1ec mov rcx, rax; this ; +0xee, 0x18008e1ee call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf1, 0x18008e1f1 test eax, eax ; +0xf6, 0x18008e1f6 jz short loc_18008E211 ; +0xf8, 0x18008e1f8 mov rcx, rdi; this ; +0xfa, 0x18008e1fa call ?lastObject@CCArray@cocos2d@@QEAAPEAVCCObject@2@XZ; cocos2d::CCArray::lastObject(void) ; +0xfd, 0x18008e1fd mov rdx, rax; struct cocos2d::CCSprite * ; +0x102, 0x18008e202 mov rcx, rbp; this ; +0x105, 0x18008e205 call ?highestAtlasIndexInChild@CCSpriteBatchNode@cocos2d@@QEAAIPEAVCCSprite@2@@Z; cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(cocos2d::CCSprite *) ; +0x108, 0x18008e208 inc eax ; +0x10d, 0x18008e20d jmp short loc_18008E22F ; +0x10f, 0x18008e20f mov eax, [rbx+168h] ; +0x111, 0x18008e211 inc eax ; +0x117, 0x18008e217 jmp short loc_18008E22F ; +0x119, 0x18008e219 mov rax, [rdi] ; +0x11b, 0x18008e21b mov rcx, rdi ; +0x11e, 0x18008e21e call qword ptr [rax+1E8h] ; +0x121, 0x18008e221 mov eax, [rax+168h] ; +0x127, 0x18008e227 inc eax ; +0x12d, 0x18008e22d mov rbx, [rsp+38h+arg_0] ; +0x12f, 0x18008e22f mov rbp, [rsp+38h+arg_8] ; +0x134, 0x18008e234 mov rsi, [rsp+38h+arg_10] ; +0x139, 0x18008e239 mov rdi, [rsp+38h+arg_18] ; +0x13e, 0x18008e23e add rsp, 20h ; +0x143, 0x18008e243 pop r15 ; +0x147, 0x18008e247 pop r14 ; +0x149, 0x18008e249 pop r12 ; +0x14b, 0x18008e24b retn ; +0x14d, 0x18008e24d