{"type": "func", "start": 5372944480, "end": 5372944633, "name": "SetupAnimationPopup::updateAnimationID", "pseudocode": "// \n// SetupAnimationPopup::updateAnimationID from 0x14040a060 to 0x14040a0f9 (153 bytes)\n// \n// 3 xrefs:\n// > SetupAnimationPopup::onAnimationIDArrow @ 0x140409c7a\n// > SetupAnimationPopup::textChanged @ 0x140409e6d\n// > <???> @ 0x1406d8a98\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::updateAnimationID(SetupAnimationPopup *a1)\n{\n  int m_animationID; // eax\n  unsigned int v3; // ebx\n  int v4; // ecx\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  struct cocos2d::CCObject *v7; // rax\n\n  m_animationID = a1->m_animationID;\n  v3 = 0;\n  v4 = 0;\n  if ( m_animationID >= 0 )\n    v4 = m_animationID;\n  if ( v4 > 999 )\n    v4 = 999;\n  m_gameObject = a1->m_gameObject;\n  a1->m_animationID = v4;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_animationID = v4;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )\n    {\n      do\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v3++);\n        v7[29].m_nZOrder = a1->m_animationID;\n      }\n      while ( v3 < cocos2d::CCArray::count(a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; SetupAnimationPopup::updateAnimationID from 0x14040a060 to 0x14040a0f9 (153 bytes)\n; \n; 3 xrefs:\n; > SetupAnimationPopup::onAnimationIDArrow @ 0x140409c7a\n; > SetupAnimationPopup::textChanged @ 0x140409e6d\n; > <???> @ 0x1406d8a98\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_0], rbx                                               ; +0x0, 0x14040a060\npush    rdi                                                            ; +0x5, 0x14040a065\nsub     rsp, 20h                                                       ; +0x6, 0x14040a066\nmov     eax, [rcx+3BCh]                                                ; +0xa, 0x14040a06a\nmov     rdi, rcx                                                       ; +0x10, 0x14040a070\nxor     ebx, ebx                                                       ; +0x13, 0x14040a073\ntest    eax, eax                                                       ; +0x15, 0x14040a075\nmov     ecx, ebx                                                       ; +0x17, 0x14040a077\ncmovns  ecx, eax                                                       ; +0x19, 0x14040a079\nmov     eax, 3E7h                                                      ; +0x1c, 0x14040a07c\ncmp     ecx, eax                                                       ; +0x21, 0x14040a081\ncmovg   ecx, eax                                                       ; +0x23, 0x14040a083\nmov     rax, [rdi+290h]                                                ; +0x26, 0x14040a086\nmov     [rdi+3BCh], ecx                                                ; +0x2d, 0x14040a08d\ntest    rax, rax                                                       ; +0x33, 0x14040a093\njz      short loc_14040A0A9                                            ; +0x36, 0x14040a096\nmov     [rax+684h], ecx                                                ; +0x38, 0x14040a098\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x14040a09e\nadd     rsp, 20h                                                       ; +0x43, 0x14040a0a3\npop     rdi                                                            ; +0x47, 0x14040a0a7\nretn                                                                   ; +0x48, 0x14040a0a8\nmov     rcx, [rdi+298h]                                                ; +0x49, 0x14040a0a9\ntest    rcx, rcx                                                       ; +0x50, 0x14040a0b0\njz      short loc_14040A0EE                                            ; +0x53, 0x14040a0b3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x14040a0b5\ntest    eax, eax                                                       ; +0x5b, 0x14040a0bb\njz      short loc_14040A0EE                                            ; +0x5d, 0x14040a0bd\nnop                                                                    ; +0x5f, 0x14040a0bf\nmov     rcx, [rdi+298h]                                                ; +0x60, 0x14040a0c0\nmov     edx, ebx                                                       ; +0x67, 0x14040a0c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x14040a0c9\nmov     ecx, [rdi+3BCh]                                                ; +0x6f, 0x14040a0cf\ninc     ebx                                                            ; +0x75, 0x14040a0d5\nmov     [rax+684h], ecx                                                ; +0x77, 0x14040a0d7\nmov     rcx, [rdi+298h]                                                ; +0x7d, 0x14040a0dd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x84, 0x14040a0e4\ncmp     ebx, eax                                                       ; +0x8a, 0x14040a0ea\njb      short loc_14040A0C0                                            ; +0x8c, 0x14040a0ec\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x14040a0ee\nadd     rsp, 20h                                                       ; +0x93, 0x14040a0f3\npop     rdi                                                            ; +0x97, 0x14040a0f7\nretn                                                                   ; +0x98, 0x14040a0f8", "xrefs": ["SetupAnimationPopup::onAnimationIDArrow @ 0x140409c7a", "SetupAnimationPopup::textChanged @ 0x140409e6d", "<???> @ 0x1406d8a98"], "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"}