{"type": "func", "start": 5372943184, "end": 5372943429, "name": "SetupAnimationPopup::determineStartValues", "pseudocode": "// \n// SetupAnimationPopup::determineStartValues from 0x140409b50 to 0x140409c45 (245 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405da650\n// > <???> @ 0x14069f0c8\n// > <???> @ 0x14069f0d8\n// > <???> @ 0x1406d8a14\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 SetupAnimationPopup::determineStartValues(SetupAnimationPopup *a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCArray *m_gameObjects; // rsi\n  unsigned int v4; // edi\n  struct cocos2d::CCObject *v5; // rax\n  int m_targetID; // edx\n  int m_uAutoReleaseCount; // ecx\n  int m_animationID; // ecx\n  int m_nZOrder; // eax\n\n  SetupTriggerPopup::determineStartValues(a1);\n  if ( a1->m_gameObject )\n  {\n    m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);\n    cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n  }\n  if ( m_gameObjects )\n  {\n    if ( cocos2d::CCArray::count(m_gameObjects) )\n    {\n      v4 = 0;\n      for ( *(_QWORD *)&a1->m_targetID = -1; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);\n        m_targetID = a1->m_targetID;\n        m_uAutoReleaseCount = v5[26].m_uAutoReleaseCount;\n        if ( m_targetID == -1 )\n        {\n          a1->m_targetID = m_uAutoReleaseCount;\n        }\n        else if ( m_targetID != m_uAutoReleaseCount )\n        {\n          a1->m_targetID = 0;\n        }\n        m_animationID = a1->m_animationID;\n        m_nZOrder = v5[29].m_nZOrder;\n        if ( m_animationID == -1 )\n        {\n          a1->m_animationID = m_nZOrder;\n        }\n        else if ( m_animationID != m_nZOrder )\n        {\n          a1->m_animationID = 0;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; SetupAnimationPopup::determineStartValues from 0x140409b50 to 0x140409c45 (245 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405da650\n; > <???> @ 0x14069f0c8\n; > <???> @ 0x14069f0d8\n; > <???> @ 0x1406d8a14\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140409b50\npush    rsi                                                            ; +0x5, 0x140409b55\nsub     rsp, 20h                                                       ; +0x6, 0x140409b56\nmov     rbx, rcx                                                       ; +0xa, 0x140409b5a\ncall    SetupTriggerPopup__determineStartValues                        ; +0xd, 0x140409b5d\ncmp     qword ptr [rbx+290h], 0                                        ; +0x12, 0x140409b62\njz      short loc_140409B87                                            ; +0x1a, 0x140409b6a\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x1c, 0x140409b6c\nmov     rdx, [rbx+290h]                                                ; +0x22, 0x140409b72\nmov     rcx, rax                                                       ; +0x29, 0x140409b79\nmov     rsi, rax                                                       ; +0x2c, 0x140409b7c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2f, 0x140409b7f\njmp     short loc_140409B8E                                            ; +0x35, 0x140409b85\nmov     rsi, [rbx+298h]                                                ; +0x37, 0x140409b87\ntest    rsi, rsi                                                       ; +0x3e, 0x140409b8e\njz      loc_140409C3A                                                  ; +0x41, 0x140409b91\nmov     rcx, rsi                                                       ; +0x47, 0x140409b97\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x140409b9a\ntest    eax, eax                                                       ; +0x50, 0x140409ba0\njz      loc_140409C3A                                                  ; +0x52, 0x140409ba2\nmov     [rsp+28h+arg_0], rbp                                           ; +0x58, 0x140409ba8\nmov     rcx, rsi                                                       ; +0x5d, 0x140409bad\nxor     ebp, ebp                                                       ; +0x60, 0x140409bb0\nmov     [rsp+28h+arg_8], rdi                                           ; +0x62, 0x140409bb2\nmov     edi, ebp                                                       ; +0x67, 0x140409bb7\nmov     qword ptr [rbx+3B8h], 0FFFFFFFFFFFFFFFFh                       ; +0x69, 0x140409bb9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x140409bc4\ntest    eax, eax                                                       ; +0x7a, 0x140409bca\njz      short loc_140409C30                                            ; +0x7c, 0x140409bcc\nxchg    ax, ax                                                         ; +0x7e, 0x140409bce\nmov     edx, edi                                                       ; +0x80, 0x140409bd0\nmov     rcx, rsi                                                       ; +0x82, 0x140409bd2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x85, 0x140409bd5\nmov     edx, [rbx+3B8h]                                                ; +0x8b, 0x140409bdb\nmov     ecx, [rax+5C8h]                                                ; +0x91, 0x140409be1\ncmp     edx, 0FFFFFFFFh                                                ; +0x97, 0x140409be7\njnz     short loc_140409BF4                                            ; +0x9a, 0x140409bea\nmov     [rbx+3B8h], ecx                                                ; +0x9c, 0x140409bec\njmp     short loc_140409BFE                                            ; +0xa2, 0x140409bf2\ncmp     edx, ecx                                                       ; +0xa4, 0x140409bf4\njz      short loc_140409BFE                                            ; +0xa6, 0x140409bf6\nmov     [rbx+3B8h], ebp                                                ; +0xa8, 0x140409bf8\nmov     ecx, [rbx+3BCh]                                                ; +0xae, 0x140409bfe\nmov     eax, [rax+684h]                                                ; +0xb4, 0x140409c04\ncmp     ecx, 0FFFFFFFFh                                                ; +0xba, 0x140409c0a\njnz     short loc_140409C17                                            ; +0xbd, 0x140409c0d\nmov     [rbx+3BCh], eax                                                ; +0xbf, 0x140409c0f\njmp     short loc_140409C21                                            ; +0xc5, 0x140409c15\ncmp     ecx, eax                                                       ; +0xc7, 0x140409c17\njz      short loc_140409C21                                            ; +0xc9, 0x140409c19\nmov     [rbx+3BCh], ebp                                                ; +0xcb, 0x140409c1b\nmov     rcx, rsi                                                       ; +0xd1, 0x140409c21\ninc     edi                                                            ; +0xd4, 0x140409c24\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd6, 0x140409c26\ncmp     edi, eax                                                       ; +0xdc, 0x140409c2c\njb      short loc_140409BD0                                            ; +0xde, 0x140409c2e\nmov     rbp, [rsp+28h+arg_0]                                           ; +0xe0, 0x140409c30\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xe5, 0x140409c35\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xea, 0x140409c3a\nadd     rsp, 20h                                                       ; +0xef, 0x140409c3f\npop     rsi                                                            ; +0xf3, 0x140409c43\nretn                                                                   ; +0xf4, 0x140409c44", "xrefs": ["<???> @ 0x1405da650", "<???> @ 0x14069f0c8", "<???> @ 0x14069f0d8", "<???> @ 0x1406d8a14"], "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"}