{"type": "func", "start": 5373562544, "end": 5373562840, "name": "ParticleGameObject::updateParticleAngle", "pseudocode": "// \n// ParticleGameObject::updateParticleAngle from 0x1404a0eb0 to 0x1404a0fd8 (296 bytes)\n// \n// 12 xrefs:\n// > ParticleGameObject::applyParticleSettings @ 0x1404a0303\n// > ParticleGameObject::updateParticle @ 0x1404a0915\n// > ParticleGameObject::updateParticle @ 0x1404a0953\n// > ParticleGameObject::setRotation @ 0x1404a0c05\n// > ParticleGameObject::setRotationX @ 0x1404a0d6d\n// > ParticleGameObject::setRotationY @ 0x1404a0e9c\n// > ParticleGameObject::setScaleX @ 0x1404a1025\n// > ParticleGameObject::setScaleY @ 0x1404a10a5\n// > ParticleGameObject::setScale @ 0x1404a1125\n// > <???> @ 0x1406a7a78\n// > <???> @ 0x1406a7a88\n// > <???> @ 0x1406dc5f0\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::updateParticleAngle(ParticleGameObject *a1, float a2, cocos2d::CCParticleSystemQuad *a3)\n{\n  float v5; // xmm7_4\n  float v6; // xmm0_4\n  cocos2d::CCParticleSystemQuad_vtbl *v7; // rbx\n  struct cocos2d::CCPoint v8[2]; // [rsp+20h] [rbp-38h] BYREF\n  float X; // [rsp+70h] [rbp+18h] BYREF\n  float Y; // [rsp+74h] [rbp+1Ch]\n  struct cocos2d::CCPoint v11; // [rsp+78h] [rbp+20h] BYREF\n\n  if ( a3 )\n  {\n    if ( a1->m_isParticleSpriteLocked && (a1->isFlipX(a1) || a1->isFlipY(a1)) )\n    {\n      v5 = a3->m_fDefaultAngle * 0.017453292;\n      sinf(v5);\n      v6 = cosf(v5);\n      cocos2d::CCPoint::CCPoint(v6, v6);\n      cocos2d::CCNode::convertToWorldSpace(a1, v8);\n      cocos2d::CCNode::convertToWorldSpace(a1, &v11);\n      cocos2d::CCPoint::operator-(v8, &X, &v11);\n      v7 = a3->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      atan2f(Y, X);\n      ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v7->setAngle)(a3);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a3->setAngle)(a3);\n    }\n  }\n}", "assembly": "; \n; ParticleGameObject::updateParticleAngle from 0x1404a0eb0 to 0x1404a0fd8 (296 bytes)\n; \n; 12 xrefs:\n; > ParticleGameObject::applyParticleSettings @ 0x1404a0303\n; > ParticleGameObject::updateParticle @ 0x1404a0915\n; > ParticleGameObject::updateParticle @ 0x1404a0953\n; > ParticleGameObject::setRotation @ 0x1404a0c05\n; > ParticleGameObject::setRotationX @ 0x1404a0d6d\n; > ParticleGameObject::setRotationY @ 0x1404a0e9c\n; > ParticleGameObject::setScaleX @ 0x1404a1025\n; > ParticleGameObject::setScaleY @ 0x1404a10a5\n; > ParticleGameObject::setScale @ 0x1404a1125\n; > <???> @ 0x1406a7a78\n; > <???> @ 0x1406a7a88\n; > <???> @ 0x1406dc5f0\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\ntest    r8, r8                                                         ; +0x0, 0x1404a0eb0\njz      locret_1404A0FD7                                               ; +0x3, 0x1404a0eb3\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x1404a0eb9\npush    rdi                                                            ; +0xe, 0x1404a0ebe\nsub     rsp, 50h                                                       ; +0xf, 0x1404a0ebf\ncmp     byte ptr [rcx+33Ch], 0                                         ; +0x13, 0x1404a0ec3\nmov     rdi, r8                                                        ; +0x1a, 0x1404a0eca\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x1d, 0x1404a0ecd\nmov     rbx, rcx                                                       ; +0x22, 0x1404a0ed2\nmovaps  xmm6, xmm1                                                     ; +0x25, 0x1404a0ed5\njz      loc_1404A0FB0                                                  ; +0x28, 0x1404a0ed8\nmov     rax, [rcx]                                                     ; +0x2e, 0x1404a0ede\ncall    qword ptr [rax+4E8h]                                           ; +0x31, 0x1404a0ee1\ntest    al, al                                                         ; +0x37, 0x1404a0ee7\njnz     short loc_1404A0EFF                                            ; +0x39, 0x1404a0ee9\nmov     rax, [rbx]                                                     ; +0x3b, 0x1404a0eeb\nmov     rcx, rbx                                                       ; +0x3e, 0x1404a0eee\ncall    qword ptr [rax+4F0h]                                           ; +0x41, 0x1404a0ef1\ntest    al, al                                                         ; +0x47, 0x1404a0ef7\njz      loc_1404A0FB0                                                  ; +0x49, 0x1404a0ef9\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x4f, 0x1404a0eff\nmovss   xmm7, dword ptr [rdi+300h]                                     ; +0x54, 0x1404a0f04\nmulss   xmm7, cs:dword_1406229BC                                       ; +0x5c, 0x1404a0f0c\nmovaps  xmm0, xmm7; X                                                  ; +0x64, 0x1404a0f14\ncall    sinf                                                           ; +0x67, 0x1404a0f17\nmovaps  xmm6, xmm0                                                     ; +0x6c, 0x1404a0f1c\nmovaps  xmm0, xmm7; X                                                  ; +0x6f, 0x1404a0f1f\ncall    cosf                                                           ; +0x72, 0x1404a0f22\nmovaps  xmm1, xmm0                                                     ; +0x77, 0x1404a0f27\nlea     rcx, [rsp+58h+X]                                               ; +0x7a, 0x1404a0f2a\nmovaps  xmm2, xmm6                                                     ; +0x7f, 0x1404a0f2f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x82, 0x1404a0f32\nlea     rdx, [rsp+58h+var_38]                                          ; +0x88, 0x1404a0f38\nmov     rcx, rbx                                                       ; +0x8d, 0x1404a0f3d\nmov     r8, rax                                                        ; +0x90, 0x1404a0f40\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x93, 0x1404a0f43\nlea     r8, stru_1406C2D40                                             ; +0x99, 0x1404a0f49\nmov     rcx, rbx                                                       ; +0xa0, 0x1404a0f50\nlea     rdx, [rsp+58h+arg_18]                                          ; +0xa3, 0x1404a0f53\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xa8, 0x1404a0f58\nlea     r8, [rsp+58h+arg_18]                                           ; +0xae, 0x1404a0f5e\nlea     rdx, [rsp+58h+X]                                               ; +0xb3, 0x1404a0f63\nlea     rcx, [rsp+58h+var_38]                                          ; +0xb8, 0x1404a0f68\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xbd, 0x1404a0f6d\nmovss   xmm1, [rsp+58h+X]; X                                           ; +0xc3, 0x1404a0f73\nmovss   xmm0, [rsp+58h+Y]; Y                                           ; +0xc9, 0x1404a0f79\nmov     rbx, [rdi]                                                     ; +0xcf, 0x1404a0f7f\ncall    atan2f                                                         ; +0xd2, 0x1404a0f82\nmulss   xmm0, cs:dword_140623200                                       ; +0xd7, 0x1404a0f87\nmov     rcx, rdi                                                       ; +0xdf, 0x1404a0f8f\nmovaps  xmm1, xmm0                                                     ; +0xe2, 0x1404a0f92\ncall    qword ptr [rbx+3D8h]                                           ; +0xe5, 0x1404a0f95\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xeb, 0x1404a0f9b\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xf0, 0x1404a0fa0\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xf5, 0x1404a0fa5\nadd     rsp, 50h                                                       ; +0xfa, 0x1404a0faa\npop     rdi                                                            ; +0xfe, 0x1404a0fae\nretn                                                                   ; +0xff, 0x1404a0faf\nmovss   xmm1, dword ptr [rdi+300h]                                     ; +0x100, 0x1404a0fb0\nmov     rcx, rdi                                                       ; +0x108, 0x1404a0fb8\nmov     rax, [rdi]                                                     ; +0x10b, 0x1404a0fbb\nsubss   xmm1, xmm6                                                     ; +0x10e, 0x1404a0fbe\ncall    qword ptr [rax+3D8h]                                           ; +0x112, 0x1404a0fc2\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x118, 0x1404a0fc8\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x11d, 0x1404a0fcd\nadd     rsp, 50h                                                       ; +0x122, 0x1404a0fd2\npop     rdi                                                            ; +0x126, 0x1404a0fd6\nretn                                                                   ; +0x127, 0x1404a0fd7", "xrefs": ["ParticleGameObject::applyParticleSettings @ 0x1404a0303", "ParticleGameObject::updateParticle @ 0x1404a0915", "ParticleGameObject::updateParticle @ 0x1404a0953", "ParticleGameObject::setRotation @ 0x1404a0c05", "ParticleGameObject::setRotationX @ 0x1404a0d6d", "ParticleGameObject::setRotationY @ 0x1404a0e9c", "ParticleGameObject::setScaleX @ 0x1404a1025", "ParticleGameObject::setScaleY @ 0x1404a10a5", "ParticleGameObject::setScale @ 0x1404a1125", "<???> @ 0x1406a7a78", "<???> @ 0x1406a7a88", "<???> @ 0x1406dc5f0"], "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"}