{"type": "func", "start": 5374765776, "end": 5374765914, "name": "CreateParticlePopup::onAnimateOnTrigger", "pseudocode": "// \n// CreateParticlePopup::onAnimateOnTrigger from 0x1405c6ad0 to 0x1405c6b5a (138 bytes)\n// \n// 4 xrefs:\n// > CreateParticlePopup::init @ 0x1405c5101\n// > <???> @ 0x1408e0850\n// > <???> @ 0x1408e0860\n// > <???> @ 0x14092e1f0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:34:51 +0000\n// \n\nchar __fastcall CreateParticlePopup::onAnimateOnTrigger(__int64 a1)\n{\n  unsigned int v2; // eax\n  __int64 v3; // rcx\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  LOBYTE(v2) = *(_BYTE *)(a1 + 1001) == 0;\n  *(_BYTE *)(a1 + 1001) = v2;\n  v3 = *(_QWORD *)(a1 + 680);\n  if ( v3 )\n  {\n    *(_BYTE *)(v3 + 1433) = v2;\n  }\n  else\n  {\n    v4 = *(cocos2d::CCArray **)(a1 + 688);\n    if ( v4 )\n    {\n      v5 = 0;\n      v2 = cocos2d::CCArray::count(v4);\n      if ( v2 )\n      {\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v5++);\n          *((_BYTE *)v6 + 1433) = *(_BYTE *)(a1 + 1001);\n          v2 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));\n        }\n        while ( v5 < v2 );\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; CreateParticlePopup::onAnimateOnTrigger from 0x1405c6ad0 to 0x1405c6b5a (138 bytes)\n; \n; 4 xrefs:\n; > CreateParticlePopup::init @ 0x1405c5101\n; > <???> @ 0x1408e0850\n; > <???> @ 0x1408e0860\n; > <???> @ 0x14092e1f0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:34:51 +0000\n; \npush    rbx                                                            ; +0x0, 0x1405c6ad0\nsub     rsp, 20h                                                       ; +0x2, 0x1405c6ad2\ncmp     byte ptr [rcx+3E9h], 0                                         ; +0x6, 0x1405c6ad6\nmov     rbx, rcx                                                       ; +0xd, 0x1405c6add\nsetz    al                                                             ; +0x10, 0x1405c6ae0\nmov     [rcx+3E9h], al                                                 ; +0x13, 0x1405c6ae3\nmov     rcx, [rcx+2A8h]                                                ; +0x19, 0x1405c6ae9\ntest    rcx, rcx                                                       ; +0x20, 0x1405c6af0\njz      short loc_1405C6B01                                            ; +0x23, 0x1405c6af3\nmov     [rcx+599h], al                                                 ; +0x25, 0x1405c6af5\nadd     rsp, 20h                                                       ; +0x2b, 0x1405c6afb\npop     rbx                                                            ; +0x2f, 0x1405c6aff\nretn                                                                   ; +0x30, 0x1405c6b00\nmov     rcx, [rbx+2B0h]                                                ; +0x31, 0x1405c6b01\ntest    rcx, rcx                                                       ; +0x38, 0x1405c6b08\njz      short loc_1405C6B54                                            ; +0x3b, 0x1405c6b0b\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3d, 0x1405c6b0d\nxor     edi, edi                                                       ; +0x42, 0x1405c6b12\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x44, 0x1405c6b14\ntest    eax, eax                                                       ; +0x4a, 0x1405c6b1a\njz      short loc_1405C6B4F                                            ; +0x4c, 0x1405c6b1c\nxchg    ax, ax                                                         ; +0x4e, 0x1405c6b1e\nmov     rcx, [rbx+2B0h]                                                ; +0x50, 0x1405c6b20\nmov     edx, edi                                                       ; +0x57, 0x1405c6b27\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x1405c6b29\nmovzx   ecx, byte ptr [rbx+3E9h]                                       ; +0x5f, 0x1405c6b2f\ninc     edi                                                            ; +0x66, 0x1405c6b36\nmov     [rax+599h], cl                                                 ; +0x68, 0x1405c6b38\nmov     rcx, [rbx+2B0h]                                                ; +0x6e, 0x1405c6b3e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x1405c6b45\ncmp     edi, eax                                                       ; +0x7b, 0x1405c6b4b\njb      short loc_1405C6B20                                            ; +0x7d, 0x1405c6b4d\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x1405c6b4f\nadd     rsp, 20h                                                       ; +0x84, 0x1405c6b54\npop     rbx                                                            ; +0x88, 0x1405c6b58\nretn                                                                   ; +0x89, 0x1405c6b59", "xrefs": ["CreateParticlePopup::init @ 0x1405c5101", "<???> @ 0x1408e0850", "<???> @ 0x1408e0860", "<???> @ 0x14092e1f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}