; ; CCPartAnimSprite::setDisplayFrame from 0x140049e50 to 0x14004a0c0 (624 bytes) ; ; 5 xrefs: ; > @ 0x14070aae8 ; > @ 0x140885c04 ; > @ 0x140885c44 ; > @ 0x140885c54 ; > @ 0x14090fc80 ; ; 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:32 +0000 ; test rdx, rdx ; +0x0, 0x140049e50 jz locret_14004A0BF ; +0x3, 0x140049e53 push rbx ; +0x9, 0x140049e59 push rsi ; +0xa, 0x140049e5a sub rsp, 68h ; +0xb, 0x140049e5b mov rsi, rcx ; +0xf, 0x140049e5f mov rbx, rdx ; +0x12, 0x140049e62 mov rcx, [rcx+260h] ; +0x15, 0x140049e65 cmp rdx, rcx ; +0x1c, 0x140049e6c jz loc_14004A0B9 ; +0x1f, 0x140049e6f test rcx, rcx ; +0x25, 0x140049e75 jz short loc_140049E80 ; +0x28, 0x140049e78 call cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2a, 0x140049e7a mov rcx, rbx ; +0x30, 0x140049e80 mov [rsi+260h], rbx ; +0x33, 0x140049e83 call cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3a, 0x140049e8a mov rcx, rbx ; +0x40, 0x140049e90 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x43, 0x140049e93 mov rbx, rax ; +0x49, 0x140049e99 call CCAnimateFrameCache__sharedSpriteFrameCache ; +0x4c, 0x140049e9c mov rcx, rax ; +0x51, 0x140049ea1 mov rdx, rbx ; +0x54, 0x140049ea4 call CCAnimateFrameCache__spriteFrameByName ; +0x57, 0x140049ea7 mov r8, rax ; +0x5c, 0x140049eac test rax, rax ; +0x5f, 0x140049eaf jz loc_14004A0B2 ; +0x62, 0x140049eb2 mov rcx, [rsi+278h] ; +0x68, 0x140049eb8 mov [rsp+78h+arg_18], r14 ; +0x6f, 0x140049ebf mov [rsp+78h+var_18], r15 ; +0x77, 0x140049ec7 test rcx, rcx ; +0x7c, 0x140049ecc jz short loc_140049F08 ; +0x7f, 0x140049ecf mov rcx, [rcx+38h] ; +0x81, 0x140049ed1 mov edx, [rcx] ; +0x85, 0x140049ed5 test edx, edx ; +0x87, 0x140049ed7 jz short loc_140049F08 ; +0x89, 0x140049ed9 mov rcx, [rcx+10h] ; +0x8b, 0x140049edb dec rdx ; +0x8f, 0x140049edf lea rdx, [rcx+rdx*8] ; +0x92, 0x140049ee2 cmp rcx, rdx ; +0x96, 0x140049ee6 ja short loc_140049F08 ; +0x99, 0x140049ee9 nop dword ptr [rax+rax+00h] ; +0x9b, 0x140049eeb mov rax, [rcx] ; +0xa0, 0x140049ef0 test rax, rax ; +0xa3, 0x140049ef3 jz short loc_140049F08 ; +0xa6, 0x140049ef6 add rcx, 8 ; +0xa8, 0x140049ef8 mov byte ptr [rax+270h], 0 ; +0xac, 0x140049efc cmp rcx, rdx ; +0xb3, 0x140049f03 jbe short loc_140049EF0 ; +0xb6, 0x140049f06 mov r15, [r8+38h] ; +0xb8, 0x140049f08 mov [rsp+78h+arg_10], rdi ; +0xbc, 0x140049f0c movsxd r14, dword ptr [r15] ; +0xc4, 0x140049f14 test r14, r14 ; +0xc7, 0x140049f17 jle loc_14004A051 ; +0xca, 0x140049f1a mov [rsp+78h+arg_0], rbp ; +0xd0, 0x140049f20 xor ebp, ebp ; +0xd8, 0x140049f28 movaps [rsp+78h+var_28], xmm6 ; +0xda, 0x140049f2a movss xmm6, dword ptr cs:xmmword_140836CC0 ; +0xdf, 0x140049f2f movaps [rsp+78h+var_38], xmm7 ; +0xe7, 0x140049f37 xorps xmm7, xmm7 ; +0xec, 0x140049f3c nop ; +0xef, 0x140049f3f mov rax, [r15+10h] ; +0xf0, 0x140049f40 mov rcx, [rsi+278h] ; +0xf4, 0x140049f44 mov rdi, [rax+rbp*8] ; +0xfb, 0x140049f4b mov edx, [rdi+58h] ; +0xff, 0x140049f4f call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x102, 0x140049f52 mov rcx, rax ; +0x108, 0x140049f58 mov rbx, rax ; +0x10b, 0x140049f5b call cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x10e, 0x140049f5e mov rcx, [rbx] ; +0x114, 0x140049f64 lea rdx, [rdi+38h] ; +0x117, 0x140049f67 mov r8, [rcx+0B8h] ; +0x11b, 0x140049f6b mov rcx, rbx ; +0x122, 0x140049f72 call r8 ; +0x125, 0x140049f75 mov rcx, [rbx] ; +0x128, 0x140049f78 movss xmm0, dword ptr [rdi+48h] ; +0x12b, 0x140049f7b ucomiss xmm0, xmm7 ; +0x130, 0x140049f80 mov rax, [rcx+78h] ; +0x133, 0x140049f83 movss xmm1, dword ptr [rdi+40h] ; +0x137, 0x140049f87 jp short loc_140049F90 ; +0x13c, 0x140049f8c jz short loc_140049F93 ; +0x13e, 0x140049f8e xorps xmm1, xmm6 ; +0x140, 0x140049f90 mov rcx, rbx ; +0x143, 0x140049f93 call rax ; +0x146, 0x140049f96 mov rax, [rbx] ; +0x148, 0x140049f98 movss xmm0, dword ptr [rdi+4Ch] ; +0x14b, 0x140049f9b ucomiss xmm0, xmm7 ; +0x150, 0x140049fa0 mov rdx, [rax+88h] ; +0x153, 0x140049fa3 movss xmm1, dword ptr [rdi+44h] ; +0x15a, 0x140049faa jp short loc_140049FB3 ; +0x15f, 0x140049faf jz short loc_140049FB6 ; +0x161, 0x140049fb1 xorps xmm1, xmm6 ; +0x163, 0x140049fb3 mov rcx, rbx ; +0x166, 0x140049fb6 call rdx ; +0x169, 0x140049fb9 mov rax, [rbx] ; +0x16b, 0x140049fbb mov rcx, rbx ; +0x16e, 0x140049fbe movss xmm1, dword ptr [rdi+50h] ; +0x171, 0x140049fc1 call qword ptr [rax+160h] ; +0x176, 0x140049fc6 cmp byte ptr [rdi+5Ch], 0 ; +0x17c, 0x140049fcc jz short loc_140049FFC ; +0x180, 0x140049fd0 mov rax, [rbx] ; +0x182, 0x140049fd2 mov rcx, rbx ; +0x185, 0x140049fd5 mov rdx, [rdi+60h] ; +0x188, 0x140049fd8 call qword ptr [rax+3F0h] ; +0x18c, 0x140049fdc mov rcx, [rdi+60h] ; +0x192, 0x140049fe2 lea rdx, [rsp+78h+var_58] ; +0x196, 0x140049fe6 call cs:?getFrameName@CCSpriteFrame@cocos2d@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ; cocos2d::CCSpriteFrame::getFrameName(void) ; +0x19b, 0x140049feb mov rdx, rax ; +0x1a1, 0x140049ff1 mov rcx, rbx ; +0x1a4, 0x140049ff4 call CCSpritePart__frameChanged ; +0x1a7, 0x140049ff7 mov rax, [rbx] ; +0x1ac, 0x140049ffc mov rcx, rbx ; +0x1af, 0x140049fff mov edi, [rdi+54h] ; +0x1b2, 0x14004a002 call qword ptr [rax+60h] ; +0x1b5, 0x14004a005 cmp eax, edi ; +0x1b8, 0x14004a008 jz short loc_14004A01E ; +0x1ba, 0x14004a00a mov rax, [rsi] ; +0x1bc, 0x14004a00c mov r8d, edi ; +0x1bf, 0x14004a00f mov rdx, rbx ; +0x1c2, 0x14004a012 mov rcx, rsi ; +0x1c5, 0x14004a015 call qword ptr [rax+248h] ; +0x1c8, 0x14004a018 mov rax, [rbx] ; +0x1ce, 0x14004a01e mov dl, 1 ; +0x1d1, 0x14004a021 mov rcx, rbx ; +0x1d3, 0x14004a023 mov byte ptr [rbx+270h], 1 ; +0x1d6, 0x14004a026 call qword ptr [rax+150h] ; +0x1dd, 0x14004a02d inc rbp ; +0x1e3, 0x14004a033 cmp rbp, r14 ; +0x1e6, 0x14004a036 jl loc_140049F40 ; +0x1e9, 0x14004a039 movaps xmm7, [rsp+78h+var_38] ; +0x1ef, 0x14004a03f movaps xmm6, [rsp+78h+var_28] ; +0x1f4, 0x14004a044 mov rbp, [rsp+78h+arg_0] ; +0x1f9, 0x14004a049 mov rax, [rsi+278h] ; +0x201, 0x14004a051 mov r15, [rsp+78h+var_18] ; +0x208, 0x14004a058 mov r14, [rsp+78h+arg_18] ; +0x20d, 0x14004a05d test rax, rax ; +0x215, 0x14004a065 jz short loc_14004A0AA ; +0x218, 0x14004a068 mov rbx, [rax+38h] ; +0x21a, 0x14004a06a mov eax, [rbx] ; +0x21e, 0x14004a06e test eax, eax ; +0x220, 0x14004a070 jz short loc_14004A0AA ; +0x222, 0x14004a072 mov rbx, [rbx+10h] ; +0x224, 0x14004a074 lea rdi, [rax-1] ; +0x228, 0x14004a078 lea rdi, [rbx+rdi*8] ; +0x22c, 0x14004a07c cmp rbx, rdi ; +0x230, 0x14004a080 ja short loc_14004A0AA ; +0x233, 0x14004a083 mov rcx, [rbx] ; +0x235, 0x14004a085 test rcx, rcx ; +0x238, 0x14004a088 jz short loc_14004A0AA ; +0x23b, 0x14004a08b cmp byte ptr [rcx+270h], 0 ; +0x23d, 0x14004a08d jnz short loc_14004A0A1 ; +0x244, 0x14004a094 mov rax, [rcx] ; +0x246, 0x14004a096 xor edx, edx ; +0x249, 0x14004a099 call qword ptr [rax+150h] ; +0x24b, 0x14004a09b add rbx, 8 ; +0x251, 0x14004a0a1 cmp rbx, rdi ; +0x255, 0x14004a0a5 jbe short loc_14004A085 ; +0x258, 0x14004a0a8 mov rdi, [rsp+78h+arg_10] ; +0x25a, 0x14004a0aa mov byte ptr [rsi+268h], 1 ; +0x262, 0x14004a0b2 add rsp, 68h ; +0x269, 0x14004a0b9 pop rsi ; +0x26d, 0x14004a0bd pop rbx ; +0x26e, 0x14004a0be retn ; +0x26f, 0x14004a0bf