{"type": "func", "start": 5373561872, "end": 5373562232, "name": "ParticleGameObject::setRotationX", "pseudocode": "// \n// ParticleGameObject::setRotationX from 0x1404a0c10 to 0x1404a0d78 (360 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14060d560\n// > <???> @ 0x1406a79d8\n// > <???> @ 0x1406a7a0c\n// > <???> @ 0x1406dc56c\n// > <???> @ 0x1406dc578\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 ParticleGameObject::setRotationX(ParticleGameObject *a1, float a2)\n{\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v4; // rax\n  cocos2d::CCSprite *m_glowSprite; // rcx\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n  float m_fRotationX; // xmm0_4\n  float v9; // xmm0_4\n\n  if ( a1->m_fRotationX != a2 )\n  {\n    *(_WORD *)&a1->m_isObjectRectDirty = 257;\n    a1->m_isDirty = 1;\n    cocos2d::CCSprite::setRotationX(a1, a2);\n    if ( a1->m_hasFollower )\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )\n      {\n        v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);\n        ((void (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[4].setTag)(v4);\n      }\n    }\n    m_glowSprite = a1->m_glowSprite;\n    if ( m_glowSprite )\n      ((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setRotationX)(m_glowSprite);\n    m_colorSprite = a1->m_colorSprite;\n    if ( m_colorSprite && !a1->m_colorSpriteLocked )\n      ((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setRotationX)(m_colorSprite);\n    m_particle = a1->m_particle;\n    if ( m_particle && !a1->m_particleLocked )\n      ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRotationX)(m_particle);\n    m_fRotationX = a1->m_fRotationX;\n    a1->m_isRotationAligned = m_fRotationX == 90.0\n                           || m_fRotationX == -90.0\n                           || m_fRotationX == 270.0\n                           || m_fRotationX == -270.0;\n  }\n  if ( a1->m_particleLocked )\n  {\n    v9 = a1->getRotation(a1);\n    ParticleGameObject::updateParticleAngle(a1, v9, a1->m_particle);\n  }\n}", "assembly": "; \n; ParticleGameObject::setRotationX from 0x1404a0c10 to 0x1404a0d78 (360 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14060d560\n; > <???> @ 0x1406a79d8\n; > <???> @ 0x1406a7a0c\n; > <???> @ 0x1406dc56c\n; > <???> @ 0x1406dc578\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, 0x1404a0c10\nsub     rsp, 30h                                                       ; +0x2, 0x1404a0c12\nmovss   xmm0, dword ptr [rcx+38h]                                      ; +0x6, 0x1404a0c16\nmov     rbx, rcx                                                       ; +0xb, 0x1404a0c1b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xe, 0x1404a0c1e\nmovaps  xmm6, xmm1                                                     ; +0x13, 0x1404a0c23\nucomiss xmm0, xmm6                                                     ; +0x16, 0x1404a0c26\njp      short loc_1404A0C31                                            ; +0x19, 0x1404a0c29\njz      loc_1404A0D41                                                  ; +0x1b, 0x1404a0c2b\nmov     word ptr [rcx+368h], 101h                                      ; +0x21, 0x1404a0c31\nmov     byte ptr [rcx+350h], 1                                         ; +0x2a, 0x1404a0c3a\ncall    cs:__imp_?setRotationX@CCSprite@cocos2d@@UEAAXM@Z; cocos2d::CCSprite::setRotationX(float) ; +0x31, 0x1404a0c41\ncmp     byte ptr [rbx+268h], 0                                         ; +0x37, 0x1404a0c47\njz      short loc_1404A0CA6                                            ; +0x3e, 0x1404a0c4e\nmov     rcx, [rbx+258h]                                                ; +0x40, 0x1404a0c50\nmov     [rsp+38h+arg_0], rdi                                           ; +0x47, 0x1404a0c57\nxor     edi, edi                                                       ; +0x4c, 0x1404a0c5c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4e, 0x1404a0c5e\ntest    eax, eax                                                       ; +0x54, 0x1404a0c64\njz      short loc_1404A0CA1                                            ; +0x56, 0x1404a0c66\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x58, 0x1404a0c68\nmov     rcx, [rbx+258h]                                                ; +0x60, 0x1404a0c70\nmov     edx, edi                                                       ; +0x67, 0x1404a0c77\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1404a0c79\nmovaps  xmm1, xmm6                                                     ; +0x6f, 0x1404a0c7f\nmov     rcx, rax                                                       ; +0x72, 0x1404a0c82\nmov     rdx, [rax]                                                     ; +0x75, 0x1404a0c85\ncall    qword ptr [rdx+160h]                                           ; +0x78, 0x1404a0c88\nmov     rcx, [rbx+258h]                                                ; +0x7e, 0x1404a0c8e\ninc     edi                                                            ; +0x85, 0x1404a0c95\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x87, 0x1404a0c97\ncmp     edi, eax                                                       ; +0x8d, 0x1404a0c9d\njb      short loc_1404A0C70                                            ; +0x8f, 0x1404a0c9f\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x91, 0x1404a0ca1\nmov     rcx, [rbx+2F0h]                                                ; +0x96, 0x1404a0ca6\ntest    rcx, rcx                                                       ; +0x9d, 0x1404a0cad\njz      short loc_1404A0CBE                                            ; +0xa0, 0x1404a0cb0\nmov     rax, [rcx]                                                     ; +0xa2, 0x1404a0cb2\nmovaps  xmm1, xmm6                                                     ; +0xa5, 0x1404a0cb5\ncall    qword ptr [rax+160h]                                           ; +0xa8, 0x1404a0cb8\nmov     rcx, [rbx+380h]                                                ; +0xae, 0x1404a0cbe\ntest    rcx, rcx                                                       ; +0xb5, 0x1404a0cc5\njz      short loc_1404A0CDF                                            ; +0xb8, 0x1404a0cc8\ncmp     byte ptr [rbx+36Ah], 0                                         ; +0xba, 0x1404a0cca\njnz     short loc_1404A0CDF                                            ; +0xc1, 0x1404a0cd1\nmov     rax, [rcx]                                                     ; +0xc3, 0x1404a0cd3\nmovaps  xmm1, xmm6                                                     ; +0xc6, 0x1404a0cd6\ncall    qword ptr [rax+160h]                                           ; +0xc9, 0x1404a0cd9\nmov     rcx, [rbx+308h]                                                ; +0xcf, 0x1404a0cdf\ntest    rcx, rcx                                                       ; +0xd6, 0x1404a0ce6\njz      short loc_1404A0D00                                            ; +0xd9, 0x1404a0ce9\ncmp     byte ptr [rbx+430h], 0                                         ; +0xdb, 0x1404a0ceb\njnz     short loc_1404A0D00                                            ; +0xe2, 0x1404a0cf2\nmov     rax, [rcx]                                                     ; +0xe4, 0x1404a0cf4\nmovaps  xmm1, xmm6                                                     ; +0xe7, 0x1404a0cf7\ncall    qword ptr [rax+160h]                                           ; +0xea, 0x1404a0cfa\nmovss   xmm0, dword ptr [rbx+38h]                                      ; +0xf0, 0x1404a0d00\nucomiss xmm0, cs:dword_140623294                                       ; +0xf5, 0x1404a0d05\njp      short loc_1404A0D10                                            ; +0xfc, 0x1404a0d0c\njz      short loc_1404A0D31                                            ; +0xfe, 0x1404a0d0e\nucomiss xmm0, cs:dword_1406239C0                                       ; +0x100, 0x1404a0d10\njp      short loc_1404A0D1B                                            ; +0x107, 0x1404a0d17\njz      short loc_1404A0D31                                            ; +0x109, 0x1404a0d19\nucomiss xmm0, cs:dword_140623424                                       ; +0x10b, 0x1404a0d1b\njp      short loc_1404A0D26                                            ; +0x112, 0x1404a0d22\njz      short loc_1404A0D31                                            ; +0x114, 0x1404a0d24\nucomiss xmm0, cs:dword_140623AD0                                       ; +0x116, 0x1404a0d26\njp      short loc_1404A0D3A                                            ; +0x11d, 0x1404a0d2d\njnz     short loc_1404A0D3A                                            ; +0x11f, 0x1404a0d2f\nmov     byte ptr [rbx+390h], 1                                         ; +0x121, 0x1404a0d31\njmp     short loc_1404A0D41                                            ; +0x128, 0x1404a0d38\nmov     byte ptr [rbx+390h], 0                                         ; +0x12a, 0x1404a0d3a\ncmp     byte ptr [rbx+430h], 0                                         ; +0x131, 0x1404a0d41\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x138, 0x1404a0d48\njz      short loc_1404A0D72                                            ; +0x13d, 0x1404a0d4d\nmov     rax, [rbx]                                                     ; +0x13f, 0x1404a0d4f\nmov     rcx, rbx                                                       ; +0x142, 0x1404a0d52\ncall    qword ptr [rax+158h]                                           ; +0x145, 0x1404a0d55\nmov     r8, [rbx+308h]                                                 ; +0x14b, 0x1404a0d5b\nmov     rcx, rbx                                                       ; +0x152, 0x1404a0d62\nmovaps  xmm1, xmm0                                                     ; +0x155, 0x1404a0d65\nadd     rsp, 30h                                                       ; +0x158, 0x1404a0d68\npop     rbx                                                            ; +0x15c, 0x1404a0d6c\njmp     ParticleGameObject__updateParticleAngle                        ; +0x15d, 0x1404a0d6d\nadd     rsp, 30h                                                       ; +0x162, 0x1404a0d72\npop     rbx                                                            ; +0x166, 0x1404a0d76\nretn                                                                   ; +0x167, 0x1404a0d77", "xrefs": ["<???> @ 0x14060d560", "<???> @ 0x1406a79d8", "<???> @ 0x1406a7a0c", "<???> @ 0x1406dc56c", "<???> @ 0x1406dc578"], "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"}