{"type": "func", "start": 5370379104, "end": 5370379466, "name": "GameObject::setPosition", "pseudocode": "// \n// GameObject::setPosition from 0x140197b60 to 0x140197cca (362 bytes)\n// \n// 50 xrefs:\n// > EndPortalObject::setPosition @ 0x140138279\n// > PlayerObject::setPosition @ 0x14039c67f\n// > TeleportPortalObject::setPosition @ 0x1404b23db\n// > TeleportPortalObject::setPosition @ 0x1404b242a\n// > <???> @ 0x140556468\n// > <???> @ 0x14055dc10\n// > <???> @ 0x14055e290\n// > <???> @ 0x14060d4b8\n// > <???> @ 0x14060de08\n// > <???> @ 0x14060e528\n// > <???> @ 0x14060ed60\n// > <???> @ 0x14060f408\n// > <???> @ 0x14060fad8\n// > <???> @ 0x140610190\n// > <???> @ 0x1406108d8\n// > <???> @ 0x140611870\n// > <???> @ 0x140612058\n// > <???> @ 0x140612700\n// > <???> @ 0x140612da8\n// > <???> @ 0x140613518\n// > <???> @ 0x140613bc0\n// > <???> @ 0x1406143a8\n// > <???> @ 0x140614be0\n// > <???> @ 0x140615328\n// > <???> @ 0x1406159d0\n// > <???> @ 0x140616118\n// > <???> @ 0x1406168d8\n// > <???> @ 0x140616f80\n// > <???> @ 0x140617628\n// > <???> @ 0x140617d98\n// > <???> @ 0x140618440\n// > <???> @ 0x140618b88\n// > <???> @ 0x140619628\n// > <???> @ 0x140619cd0\n// > <???> @ 0x14061a378\n// > <???> @ 0x14061aa98\n// > <???> @ 0x14061b140\n// > <???> @ 0x14061b888\n// > <???> @ 0x14061c020\n// > <???> @ 0x14061c6c8\n// > <???> @ 0x14061cd70\n// > <???> @ 0x14061d418\n// > <???> @ 0x14061dac0\n// > <???> @ 0x14061e168\n// > <???> @ 0x14061e810\n// > <???> @ 0x14061f020\n// > <???> @ 0x14061f7b8\n// > <???> @ 0x140678d78\n// > <???> @ 0x140678d88\n// > <???> @ 0x1406cbaa8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GameObject::setPosition(GameObject *a1, const cocos2d::CCPoint *a2)\n{\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n  float x; // xmm0_4\n  cocos2d::CCParticleSystemQuad_vtbl *v8; // rbx\n  const cocos2d::CCPoint *v9; // rax\n  cocos2d::CCSprite *m_glowSprite; // rcx\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  struct cocos2d::CCPoint v12; // [rsp+40h] [rbp+8h] BYREF\n  struct cocos2d::CCPoint v13; // [rsp+50h] [rbp+18h] BYREF\n\n  cocos2d::CCSprite::setPosition(a1, a2);\n  if ( a1->m_hasFollower )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);\n      v5->__vftable[2].encodeWithCoder(v5, (DS_Dictionary *)a2);\n    }\n  }\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    x = a1->m_particleOffset.x;\n    if ( x == 0.0 && (x = a1->m_particleOffset.y, x == 0.0) )\n    {\n      m_particle->setPosition_0(m_particle, a2);\n    }\n    else\n    {\n      cocos2d::CCNode::convertToWorldSpace(a1, &v12);\n      cocos2d::CCNode::convertToWorldSpace(a1, &v13);\n      v8 = a1->m_particle->__vftable;\n      cocos2d::CCPoint::CCPoint(x, (float)(v12.x + a2->x) - v13.x);\n      v8->setPosition_0(a1->m_particle, v9);\n    }\n  }\n  m_glowSprite = a1->m_glowSprite;\n  if ( m_glowSprite )\n    m_glowSprite->setPosition_0(m_glowSprite, a2);\n  m_colorSprite = a1->m_colorSprite;\n  if ( m_colorSprite )\n  {\n    if ( !a1->m_colorSpriteLocked )\n      m_colorSprite->setPosition_0(m_colorSprite, a2);\n  }\n}", "assembly": "; \n; GameObject::setPosition from 0x140197b60 to 0x140197cca (362 bytes)\n; \n; 50 xrefs:\n; > EndPortalObject::setPosition @ 0x140138279\n; > PlayerObject::setPosition @ 0x14039c67f\n; > TeleportPortalObject::setPosition @ 0x1404b23db\n; > TeleportPortalObject::setPosition @ 0x1404b242a\n; > <???> @ 0x140556468\n; > <???> @ 0x14055dc10\n; > <???> @ 0x14055e290\n; > <???> @ 0x14060d4b8\n; > <???> @ 0x14060de08\n; > <???> @ 0x14060e528\n; > <???> @ 0x14060ed60\n; > <???> @ 0x14060f408\n; > <???> @ 0x14060fad8\n; > <???> @ 0x140610190\n; > <???> @ 0x1406108d8\n; > <???> @ 0x140611870\n; > <???> @ 0x140612058\n; > <???> @ 0x140612700\n; > <???> @ 0x140612da8\n; > <???> @ 0x140613518\n; > <???> @ 0x140613bc0\n; > <???> @ 0x1406143a8\n; > <???> @ 0x140614be0\n; > <???> @ 0x140615328\n; > <???> @ 0x1406159d0\n; > <???> @ 0x140616118\n; > <???> @ 0x1406168d8\n; > <???> @ 0x140616f80\n; > <???> @ 0x140617628\n; > <???> @ 0x140617d98\n; > <???> @ 0x140618440\n; > <???> @ 0x140618b88\n; > <???> @ 0x140619628\n; > <???> @ 0x140619cd0\n; > <???> @ 0x14061a378\n; > <???> @ 0x14061aa98\n; > <???> @ 0x14061b140\n; > <???> @ 0x14061b888\n; > <???> @ 0x14061c020\n; > <???> @ 0x14061c6c8\n; > <???> @ 0x14061cd70\n; > <???> @ 0x14061d418\n; > <???> @ 0x14061dac0\n; > <???> @ 0x14061e168\n; > <???> @ 0x14061e810\n; > <???> @ 0x14061f020\n; > <???> @ 0x14061f7b8\n; > <???> @ 0x140678d78\n; > <???> @ 0x140678d88\n; > <???> @ 0x1406cbaa8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rsi                                                            ; +0x0, 0x140197b60\npush    rdi                                                            ; +0x2, 0x140197b62\nsub     rsp, 28h                                                       ; +0x3, 0x140197b63\nmov     [rsp+38h+var_18], rbx                                          ; +0x7, 0x140197b67\nmov     rsi, rdx                                                       ; +0xc, 0x140197b6c\nmov     rdi, rcx                                                       ; +0xf, 0x140197b6f\ncall    cs:__imp_?setPosition@CCSprite@cocos2d@@UEAAXAEBVCCPoint@2@@Z; cocos2d::CCSprite::setPosition(cocos2d::CCPoint const &) ; +0x12, 0x140197b72\ncmp     byte ptr [rdi+268h], 0                                         ; +0x18, 0x140197b78\njz      short loc_140197BD2                                            ; +0x1f, 0x140197b7f\nmov     rcx, [rdi+258h]                                                ; +0x21, 0x140197b81\nxor     ebx, ebx                                                       ; +0x28, 0x140197b88\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2a, 0x140197b8a\ntest    eax, eax                                                       ; +0x30, 0x140197b90\njz      short loc_140197BD2                                            ; +0x32, 0x140197b92\nnop     dword ptr [rax+00h]                                            ; +0x34, 0x140197b94\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x38, 0x140197b98\nmov     rcx, [rdi+258h]                                                ; +0x40, 0x140197ba0\nmov     edx, ebx                                                       ; +0x47, 0x140197ba7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140197ba9\nmov     rdx, rsi                                                       ; +0x4f, 0x140197baf\nmov     rcx, rax                                                       ; +0x52, 0x140197bb2\nmov     r8, [rax]                                                      ; +0x55, 0x140197bb5\ncall    qword ptr [r8+0B8h]                                            ; +0x58, 0x140197bb8\nmov     rcx, [rdi+258h]                                                ; +0x5f, 0x140197bbf\ninc     ebx                                                            ; +0x66, 0x140197bc6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x68, 0x140197bc8\ncmp     ebx, eax                                                       ; +0x6e, 0x140197bce\njb      short loc_140197BA0                                            ; +0x70, 0x140197bd0\nmov     rcx, [rdi+308h]                                                ; +0x72, 0x140197bd2\ntest    rcx, rcx                                                       ; +0x79, 0x140197bd9\njz      loc_140197C7E                                                  ; +0x7c, 0x140197bdc\nlea     r8, [rdi+334h]                                                 ; +0x82, 0x140197be2\nxorps   xmm1, xmm1                                                     ; +0x89, 0x140197be9\nmovss   xmm0, dword ptr [r8]                                           ; +0x8c, 0x140197bec\nucomiss xmm0, xmm1                                                     ; +0x91, 0x140197bf1\njp      short loc_140197C15                                            ; +0x94, 0x140197bf4\njnz     short loc_140197C15                                            ; +0x96, 0x140197bf6\nmovss   xmm0, dword ptr [rdi+338h]                                     ; +0x98, 0x140197bf8\nucomiss xmm0, xmm1                                                     ; +0xa0, 0x140197c00\njp      short loc_140197C15                                            ; +0xa3, 0x140197c03\njnz     short loc_140197C15                                            ; +0xa5, 0x140197c05\nmov     rax, [rcx]                                                     ; +0xa7, 0x140197c07\nmov     rdx, rsi                                                       ; +0xaa, 0x140197c0a\ncall    qword ptr [rax+0B8h]                                           ; +0xad, 0x140197c0d\njmp     short loc_140197C7E                                            ; +0xb3, 0x140197c13\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xb5, 0x140197c15\nmov     rcx, rdi                                                       ; +0xba, 0x140197c1a\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xbd, 0x140197c1d\nlea     r8, stru_1406C1C08                                             ; +0xc3, 0x140197c23\nmov     rcx, rdi                                                       ; +0xca, 0x140197c2a\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xcd, 0x140197c2d\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xd2, 0x140197c32\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0xd8, 0x140197c38\nlea     rcx, [rsp+38h+arg_18]                                          ; +0xde, 0x140197c3e\nmovss   xmm1, [rsp+38h+arg_0]                                          ; +0xe3, 0x140197c43\naddss   xmm2, dword ptr [rsi+4]                                        ; +0xe9, 0x140197c49\naddss   xmm1, dword ptr [rsi]                                          ; +0xee, 0x140197c4e\nmov     rax, [rdi+308h]                                                ; +0xf2, 0x140197c52\nsubss   xmm2, [rsp+38h+arg_14]                                         ; +0xf9, 0x140197c59\nsubss   xmm1, [rsp+38h+arg_10]                                         ; +0xff, 0x140197c5f\nmov     rbx, [rax]                                                     ; +0x105, 0x140197c65\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x108, 0x140197c68\nmov     rcx, [rdi+308h]                                                ; +0x10e, 0x140197c6e\nmov     rdx, rax                                                       ; +0x115, 0x140197c75\ncall    qword ptr [rbx+0B8h]                                           ; +0x118, 0x140197c78\nmov     rcx, [rdi+2F0h]                                                ; +0x11e, 0x140197c7e\nmov     rbx, [rsp+38h+var_18]                                          ; +0x125, 0x140197c85\ntest    rcx, rcx                                                       ; +0x12a, 0x140197c8a\njz      short loc_140197C9B                                            ; +0x12d, 0x140197c8d\nmov     rax, [rcx]                                                     ; +0x12f, 0x140197c8f\nmov     rdx, rsi                                                       ; +0x132, 0x140197c92\ncall    qword ptr [rax+0B8h]                                           ; +0x135, 0x140197c95\nmov     rcx, [rdi+380h]                                                ; +0x13b, 0x140197c9b\ntest    rcx, rcx                                                       ; +0x142, 0x140197ca2\njz      short loc_140197CC3                                            ; +0x145, 0x140197ca5\ncmp     byte ptr [rdi+36Ah], 0                                         ; +0x147, 0x140197ca7\njnz     short loc_140197CC3                                            ; +0x14e, 0x140197cae\nmov     rax, [rcx]                                                     ; +0x150, 0x140197cb0\nmov     rdx, rsi                                                       ; +0x153, 0x140197cb3\nadd     rsp, 28h                                                       ; +0x156, 0x140197cb6\npop     rdi                                                            ; +0x15a, 0x140197cba\npop     rsi                                                            ; +0x15b, 0x140197cbb\njmp     qword ptr [rax+0B8h]                                           ; +0x15c, 0x140197cbc\nadd     rsp, 28h                                                       ; +0x163, 0x140197cc3\npop     rdi                                                            ; +0x167, 0x140197cc7\npop     rsi                                                            ; +0x168, 0x140197cc8\nretn                                                                   ; +0x169, 0x140197cc9", "xrefs": ["EndPortalObject::setPosition @ 0x140138279", "PlayerObject::setPosition @ 0x14039c67f", "TeleportPortalObject::setPosition @ 0x1404b23db", "TeleportPortalObject::setPosition @ 0x1404b242a", "<???> @ 0x140556468", "<???> @ 0x14055dc10", "<???> @ 0x14055e290", "<???> @ 0x14060d4b8", "<???> @ 0x14060de08", "<???> @ 0x14060e528", "<???> @ 0x14060ed60", "<???> @ 0x14060f408", "<???> @ 0x14060fad8", "<???> @ 0x140610190", "<???> @ 0x1406108d8", "<???> @ 0x140611870", "<???> @ 0x140612058", "<???> @ 0x140612700", "<???> @ 0x140612da8", "<???> @ 0x140613518", "<???> @ 0x140613bc0", "<???> @ 0x1406143a8", "<???> @ 0x140614be0", "<???> @ 0x140615328", "<???> @ 0x1406159d0", "<???> @ 0x140616118", "<???> @ 0x1406168d8", "<???> @ 0x140616f80", "<???> @ 0x140617628", "<???> @ 0x140617d98", "<???> @ 0x140618440", "<???> @ 0x140618b88", "<???> @ 0x140619628", "<???> @ 0x140619cd0", "<???> @ 0x14061a378", "<???> @ 0x14061aa98", "<???> @ 0x14061b140", "<???> @ 0x14061b888", "<???> @ 0x14061c020", "<???> @ 0x14061c6c8", "<???> @ 0x14061cd70", "<???> @ 0x14061d418", "<???> @ 0x14061dac0", "<???> @ 0x14061e168", "<???> @ 0x14061e810", "<???> @ 0x14061f020", "<???> @ 0x14061f7b8", "<???> @ 0x140678d78", "<???> @ 0x140678d88", "<???> @ 0x1406cbaa8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}