{"type": "func", "start": 5373560864, "end": 5373561276, "name": "ParticleGameObject::updateParticle", "pseudocode": "// \n// ParticleGameObject::updateParticle from 0x1404a0820 to 0x1404a09bc (412 bytes)\n// \n// 5 xrefs:\n// > CreateParticlePopup::onPasteSettings @ 0x140431dac\n// > CreateParticlePopup::onPasteSettings @ 0x140431e38\n// > CreateParticlePopup::onClose @ 0x1404351ad\n// > CreateParticlePopup::onClose @ 0x14043523c\n// > <???> @ 0x1406dc548\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\n// Hidden C++ exception states: #wind=1\nvoid ParticleGameObject::updateParticle(ParticleGameObject *a1)\n{\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n  cocos2d::CCParticleSystemQuad *v3; // rdi\n  bool v4; // al\n  cocos2d::tCCPositionType v5; // eax\n  double v6; // xmm0_8\n  double v7; // xmm0_8\n  float v8; // xmm6_4\n  cocos2d::CCParticleSystemQuad *v9; // rdi\n  float v10; // xmm0_4\n  cocos2d::ParticleStruct v11; // [rsp+20h] [rbp-158h] BYREF\n\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    cocos2d::CCParticleSystem::stopSystem(m_particle);\n    v3 = a1->m_particle;\n    if ( a1->m_particleData.m_data.m_size )\n    {\n      sub_140063B90((__int64)&v11);\n      GameToolbox::particleStringToStruct((__int64 *)&a1->m_particleData.m_data.m_bigStorage, (__int64)&v11);\n      GameToolbox::particleFromStruct(&v11, v3, 0);\n      sub_14003A830((__int64)&v11.sFrame);\n    }\n    v4 = a1->m_particle->getDuration(a1->m_particle) >= 0.0 || a1->m_animateOnTrigger;\n    a1->m_hasCustomAnimation = v4;\n    v5 = a1->m_particle->getPositionType(a1->m_particle);\n    a1->m_isParticleSpriteLocked = v5 != kCCPositionTypeGrouped;\n    a1->m_particleLocked = v5 != kCCPositionTypeGrouped;\n    if ( v5 != kCCPositionTypeGrouped )\n    {\n      v6 = ((double (__fastcall *)(ParticleGameObject *))a1->getRotation)(a1);\n      ParticleGameObject::updateParticleAngle(a1, *(float *)&v6, a1->m_particle);\n    }\n    if ( a1->m_isParticleSpriteLocked )\n    {\n      v7 = ((double (__fastcall *)(ParticleGameObject *))a1->getScaleX)(a1);\n      v8 = *(float *)&v7;\n      v9 = a1->m_particle;\n      if ( v9 )\n      {\n        v10 = a1->getRotation(a1);\n        ParticleGameObject::updateParticleAngle(a1, v10, v9);\n        cocos2d::CCParticleSystem::loadScaledDefaults(a1->m_particle, fabs(v8));\n      }\n    }\n    if ( a1->m_particle && (a1->m_particleUseObjectColor || a1->m_hasUniformObjectColor) )\n      GameObject::updateObjectEditorColor(a1);\n  }\n}", "assembly": "; \n; ParticleGameObject::updateParticle from 0x1404a0820 to 0x1404a09bc (412 bytes)\n; \n; 5 xrefs:\n; > CreateParticlePopup::onPasteSettings @ 0x140431dac\n; > CreateParticlePopup::onPasteSettings @ 0x140431e38\n; > CreateParticlePopup::onClose @ 0x1404351ad\n; > CreateParticlePopup::onClose @ 0x14043523c\n; > <???> @ 0x1406dc548\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_8], rbx                                               ; +0x0, 0x1404a0820\npush    rdi                                                            ; +0x5, 0x1404a0825\nsub     rsp, 170h                                                      ; +0x6, 0x1404a0826\nmovaps  [rsp+178h+var_18], xmm6                                        ; +0xd, 0x1404a082d\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x1404a0835\nxor     rax, rsp                                                       ; +0x1c, 0x1404a083c\nmov     [rsp+178h+var_28], rax                                         ; +0x1f, 0x1404a083f\nmov     rbx, rcx                                                       ; +0x27, 0x1404a0847\nmov     rcx, [rcx+308h]                                                ; +0x2a, 0x1404a084a\ntest    rcx, rcx                                                       ; +0x31, 0x1404a0851\njz      loc_1404A0993                                                  ; +0x34, 0x1404a0854\ncall    cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x3a, 0x1404a085a\nmov     rdi, [rbx+308h]                                                ; +0x40, 0x1404a0860\ncmp     qword ptr [rbx+5C8h], 0                                        ; +0x47, 0x1404a0867\njz      short loc_1404A08AB                                            ; +0x4f, 0x1404a086f\nlea     rcx, [rsp+178h+var_158]                                        ; +0x51, 0x1404a0871\ncall    sub_140063B90                                                  ; +0x56, 0x1404a0876\nnop                                                                    ; +0x5b, 0x1404a087b\nlea     rdx, [rsp+178h+var_158]                                        ; +0x5c, 0x1404a087c\nlea     rcx, [rbx+5B8h]                                                ; +0x61, 0x1404a0881\ncall    GameToolbox__particleStringToStruct                            ; +0x68, 0x1404a0888\nxor     r8d, r8d                                                       ; +0x6d, 0x1404a088d\nmov     rdx, rdi                                                       ; +0x70, 0x1404a0890\nlea     rcx, [rsp+178h+var_158]                                        ; +0x73, 0x1404a0893\ncall    GameToolbox__particleFromStruct                                ; +0x78, 0x1404a0898\nnop                                                                    ; +0x7d, 0x1404a089d\nlea     rcx, [rsp+178h+var_50]                                         ; +0x7e, 0x1404a089e\ncall    sub_14003A830                                                  ; +0x86, 0x1404a08a6\nmov     rcx, [rbx+308h]                                                ; +0x8b, 0x1404a08ab\nmov     rax, [rcx]                                                     ; +0x92, 0x1404a08b2\ncall    qword ptr [rax+380h]                                           ; +0x95, 0x1404a08b5\nxorps   xmm1, xmm1                                                     ; +0x9b, 0x1404a08bb\ncomiss  xmm0, xmm1                                                     ; +0x9e, 0x1404a08be\njnb     short loc_1404A08D0                                            ; +0xa1, 0x1404a08c1\ncmp     byte ptr [rbx+599h], 0                                         ; +0xa3, 0x1404a08c3\njnz     short loc_1404A08D0                                            ; +0xaa, 0x1404a08ca\nxor     al, al                                                         ; +0xac, 0x1404a08cc\njmp     short loc_1404A08D2                                            ; +0xae, 0x1404a08ce\nmov     al, 1                                                          ; +0xb0, 0x1404a08d0\nmov     [rbx+57Ah], al                                                 ; +0xb2, 0x1404a08d2\nmov     rcx, [rbx+308h]                                                ; +0xb8, 0x1404a08d8\nmov     rax, [rcx]                                                     ; +0xbf, 0x1404a08df\ncall    qword ptr [rax+5E0h]                                           ; +0xc2, 0x1404a08e2\ncmp     eax, 2                                                         ; +0xc8, 0x1404a08e8\nsetnz   cl                                                             ; +0xcb, 0x1404a08eb\nmov     [rbx+33Ch], cl                                                 ; +0xce, 0x1404a08ee\nmov     [rbx+430h], cl                                                 ; +0xd4, 0x1404a08f4\njz      short loc_1404A091A                                            ; +0xda, 0x1404a08fa\nmov     rax, [rbx]                                                     ; +0xdc, 0x1404a08fc\nmov     rcx, rbx                                                       ; +0xdf, 0x1404a08ff\ncall    qword ptr [rax+158h]                                           ; +0xe2, 0x1404a0902\nmovaps  xmm1, xmm0                                                     ; +0xe8, 0x1404a0908\nmov     r8, [rbx+308h]                                                 ; +0xeb, 0x1404a090b\nmov     rcx, rbx                                                       ; +0xf2, 0x1404a0912\ncall    ParticleGameObject__updateParticleAngle                        ; +0xf5, 0x1404a0915\ncmp     byte ptr [rbx+33Ch], 0                                         ; +0xfa, 0x1404a091a\njz      short loc_1404A096F                                            ; +0x101, 0x1404a0921\nmov     rax, [rbx]                                                     ; +0x103, 0x1404a0923\nmov     rcx, rbx                                                       ; +0x106, 0x1404a0926\ncall    qword ptr [rax+80h]                                            ; +0x109, 0x1404a0929\nmovaps  xmm6, xmm0                                                     ; +0x10f, 0x1404a092f\nmov     rdi, [rbx+308h]                                                ; +0x112, 0x1404a0932\ntest    rdi, rdi                                                       ; +0x119, 0x1404a0939\njz      short loc_1404A096F                                            ; +0x11c, 0x1404a093c\nmov     rax, [rbx]                                                     ; +0x11e, 0x1404a093e\nmov     rcx, rbx                                                       ; +0x121, 0x1404a0941\ncall    qword ptr [rax+158h]                                           ; +0x124, 0x1404a0944\nmovaps  xmm1, xmm0                                                     ; +0x12a, 0x1404a094a\nmov     r8, rdi                                                        ; +0x12d, 0x1404a094d\nmov     rcx, rbx                                                       ; +0x130, 0x1404a0950\ncall    ParticleGameObject__updateParticleAngle                        ; +0x133, 0x1404a0953\nandps   xmm6, cs:xmmword_1406243C0                                     ; +0x138, 0x1404a0958\nmovaps  xmm1, xmm6                                                     ; +0x13f, 0x1404a095f\nmov     rcx, [rbx+308h]                                                ; +0x142, 0x1404a0962\ncall    cs:?loadScaledDefaults@CCParticleSystem@cocos2d@@QEAAXM@Z; cocos2d::CCParticleSystem::loadScaledDefaults(float) ; +0x149, 0x1404a0969\ncmp     qword ptr [rbx+308h], 0                                        ; +0x14f, 0x1404a096f\njz      short loc_1404A0993                                            ; +0x157, 0x1404a0977\ncmp     byte ptr [rbx+331h], 0                                         ; +0x159, 0x1404a0979\njnz     short loc_1404A098B                                            ; +0x160, 0x1404a0980\ncmp     byte ptr [rbx+708h], 0                                         ; +0x162, 0x1404a0982\njz      short loc_1404A0993                                            ; +0x169, 0x1404a0989\nmov     rcx, rbx                                                       ; +0x16b, 0x1404a098b\ncall    GameObject__updateObjectEditorColor                            ; +0x16e, 0x1404a098e\nmov     rcx, [rsp+178h+var_28]                                         ; +0x173, 0x1404a0993\nxor     rcx, rsp; StackCookie                                          ; +0x17b, 0x1404a099b\ncall    __security_check_cookie                                        ; +0x17e, 0x1404a099e\nmov     rbx, [rsp+178h+arg_8]                                          ; +0x183, 0x1404a09a3\nmovaps  xmm6, [rsp+178h+var_18]                                        ; +0x18b, 0x1404a09ab\nadd     rsp, 170h                                                      ; +0x193, 0x1404a09b3\npop     rdi                                                            ; +0x19a, 0x1404a09ba\nretn                                                                   ; +0x19b, 0x1404a09bb", "xrefs": ["CreateParticlePopup::onPasteSettings @ 0x140431dac", "CreateParticlePopup::onPasteSettings @ 0x140431e38", "CreateParticlePopup::onClose @ 0x1404351ad", "CreateParticlePopup::onClose @ 0x14043523c", "<???> @ 0x1406dc548"], "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"}