{"type": "func", "start": 5373105424, "end": 5373105563, "name": "CreateParticlePopup::onAnimateActiveOnly", "pseudocode": "// \n// CreateParticlePopup::onAnimateActiveOnly from 0x140431510 to 0x14043159b (139 bytes)\n// \n// 4 xrefs:\n// > CreateParticlePopup::init @ 0x14042fe89\n// > <???> @ 0x1406a1300\n// > <???> @ 0x1406a1310\n// > <???> @ 0x1406d9aac\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 CreateParticlePopup::onAnimateActiveOnly(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  ParticleGameObject *m_targetObject; // rax\n  cocos2d::CCArray *m_targetObjects; // rcx\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n\n  v3 = !a1->m_onlyAnimateActive;\n  a1->m_onlyAnimateActive = v3;\n  m_targetObject = a1->m_targetObject;\n  if ( m_targetObject )\n  {\n    m_targetObject->m_animateOnlyWhenActive = v3;\n  }\n  else\n  {\n    m_targetObjects = a1->m_targetObjects;\n    if ( m_targetObjects )\n    {\n      v6 = 0;\n      if ( cocos2d::CCArray::count(m_targetObjects) )\n      {\n        do\n        {\n          v7 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v6++);\n          LOBYTE(v7[26].__vftable) = a1->m_onlyAnimateActive;\n        }\n        while ( v6 < cocos2d::CCArray::count(a1->m_targetObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; CreateParticlePopup::onAnimateActiveOnly from 0x140431510 to 0x14043159b (139 bytes)\n; \n; 4 xrefs:\n; > CreateParticlePopup::init @ 0x14042fe89\n; > <???> @ 0x1406a1300\n; > <???> @ 0x1406a1310\n; > <???> @ 0x1406d9aac\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    rbx                                                            ; +0x0, 0x140431510\nsub     rsp, 20h                                                       ; +0x2, 0x140431512\ncmp     byte ptr [rcx+3AAh], 0                                         ; +0x6, 0x140431516\nmov     rbx, rcx                                                       ; +0xd, 0x14043151d\nsetz    al                                                             ; +0x10, 0x140431520\nmovzx   ecx, al                                                        ; +0x13, 0x140431523\nmov     [rbx+3AAh], al                                                 ; +0x16, 0x140431526\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x14043152c\ntest    rax, rax                                                       ; +0x23, 0x140431533\njz      short loc_140431544                                            ; +0x26, 0x140431536\nmov     [rax+5B0h], cl                                                 ; +0x28, 0x140431538\nadd     rsp, 20h                                                       ; +0x2e, 0x14043153e\npop     rbx                                                            ; +0x32, 0x140431542\nretn                                                                   ; +0x33, 0x140431543\nmov     rcx, [rbx+298h]                                                ; +0x34, 0x140431544\ntest    rcx, rcx                                                       ; +0x3b, 0x14043154b\njz      short loc_140431595                                            ; +0x3e, 0x14043154e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x40, 0x140431550\nxor     edi, edi                                                       ; +0x45, 0x140431555\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x140431557\ntest    eax, eax                                                       ; +0x4d, 0x14043155d\njz      short loc_140431590                                            ; +0x4f, 0x14043155f\nmov     rcx, [rbx+298h]                                                ; +0x51, 0x140431561\nmov     edx, edi                                                       ; +0x58, 0x140431568\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x14043156a\nmovzx   ecx, byte ptr [rbx+3AAh]                                       ; +0x60, 0x140431570\ninc     edi                                                            ; +0x67, 0x140431577\nmov     [rax+5B0h], cl                                                 ; +0x69, 0x140431579\nmov     rcx, [rbx+298h]                                                ; +0x6f, 0x14043157f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x76, 0x140431586\ncmp     edi, eax                                                       ; +0x7c, 0x14043158c\njb      short loc_140431561                                            ; +0x7e, 0x14043158e\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x80, 0x140431590\nadd     rsp, 20h                                                       ; +0x85, 0x140431595\npop     rbx                                                            ; +0x89, 0x140431599\nretn                                                                   ; +0x8a, 0x14043159a", "xrefs": ["CreateParticlePopup::init @ 0x14042fe89", "<???> @ 0x1406a1300", "<???> @ 0x1406a1310", "<???> @ 0x1406d9aac"], "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"}