{"type": "func", "start": 4300980000, "end": 4300980199, "name": "GameObject::setRotation", "pseudocode": "// \n// GameObject::setRotation from 0x1005bbf20 to 0x1005bbfe7 (199 bytes)\n// \n// 47 xrefs:\n// > ParticleGameObject::setRotation @ 0x1001b2709\n// > RingObject::setRotation @ 0x1001b4405\n// > TeleportPortalObject::setRotation @ 0x1001bdfc0\n// > TeleportPortalObject::setRotation2 @ 0x1001bdff5\n// > PlayerObject::setRotation @ 0x10041d4e5\n// > <???> @ 0x1008c41c0\n// > <???> @ 0x1008c49f8\n// > <???> @ 0x1008c51f0\n// > <???> @ 0x1008c59e8\n// > <???> @ 0x1008c61e0\n// > <???> @ 0x1008c69d8\n// > <???> @ 0x1008c71d0\n// > <???> @ 0x1008c79c8\n// > <???> @ 0x1008c89c0\n// > <???> @ 0x1008c9238\n// > <???> @ 0x1008c9a48\n// > <???> @ 0x1008ca258\n// > <???> @ 0x1008caa68\n// > <???> @ 0x1008cb278\n// > <???> @ 0x1008cba88\n// > <???> @ 0x1008cc298\n// > <???> @ 0x1008ccaa8\n// > <???> @ 0x1008ceb48\n// > <???> @ 0x1008cf370\n// > <???> @ 0x1008cfb98\n// > <???> @ 0x1008d03c0\n// > <???> @ 0x1008d0be8\n// > <???> @ 0x1008d13f8\n// > <???> @ 0x1008d1c08\n// > <???> @ 0x1008d2418\n// > <???> @ 0x1008d2c28\n// > <???> @ 0x1008d3438\n// > <???> @ 0x1008d3c48\n// > <???> @ 0x1008d4458\n// > <???> @ 0x1008d4c68\n// > <???> @ 0x1008d5478\n// > <???> @ 0x1008d5c88\n// > <???> @ 0x1008d6498\n// > <???> @ 0x1008d6ca8\n// > <???> @ 0x1008d74b8\n// > <???> @ 0x1008d7cc8\n// > <???> @ 0x1008d84d8\n// > <???> @ 0x1008d8ce8\n// > <???> @ 0x100923490\n// > <???> @ 0x100971540\n// > <???> @ 0x100971d28\n// > <???> @ 0x100972538\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// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GameObject::setRotation(GameObject *a1, float a2)\n{\n  cocos2d::CCSprite *m_glowSprite; // rdi\n  cocos2d::CCSprite *m_colorSprite; // rdi\n  cocos2d::CCParticleSystemQuad *m_particle; // rdi\n\n  if ( a1->m_fRotationX != a2 || a1->m_fRotationY != a2 )\n  {\n    *(_WORD *)&a1->m_isObjectRectDirty = 257;\n    a1->m_isDirty = 1;\n    CCSpritePlus::setRotation(a1, a2);\n    m_glowSprite = a1->m_glowSprite;\n    if ( m_glowSprite )\n      ((void (__fastcall *)(cocos2d::CCSprite *, double))m_glowSprite->setRotation)(m_glowSprite, *(double *)&a2);\n    m_colorSprite = a1->m_colorSprite;\n    if ( m_colorSprite && !a1->m_colorSpriteLocked )\n      ((void (__fastcall *)(cocos2d::CCSprite *, double))m_colorSprite->setRotation)(m_colorSprite, *(double *)&a2);\n    m_particle = a1->m_particle;\n    if ( m_particle )\n    {\n      if ( !a1->m_particleLocked )\n        ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double))m_particle->setRotation)(\n          m_particle,\n          *(double *)&a2);\n    }\n    a1->m_isRotationAligned = _mm_movemask_ps(\n                                _mm_cmpeq_ps(\n                                  _mm_shuffle_ps(*(__m128 *)&a2, *(__m128 *)&a2, 0),\n                                  (__m128)xmmword_10081F3E0)) != 0;\n  }\n}", "assembly": "; \n; GameObject::setRotation from 0x1005bbf20 to 0x1005bbfe7 (199 bytes)\n; \n; 47 xrefs:\n; > ParticleGameObject::setRotation @ 0x1001b2709\n; > RingObject::setRotation @ 0x1001b4405\n; > TeleportPortalObject::setRotation @ 0x1001bdfc0\n; > TeleportPortalObject::setRotation2 @ 0x1001bdff5\n; > PlayerObject::setRotation @ 0x10041d4e5\n; > <???> @ 0x1008c41c0\n; > <???> @ 0x1008c49f8\n; > <???> @ 0x1008c51f0\n; > <???> @ 0x1008c59e8\n; > <???> @ 0x1008c61e0\n; > <???> @ 0x1008c69d8\n; > <???> @ 0x1008c71d0\n; > <???> @ 0x1008c79c8\n; > <???> @ 0x1008c89c0\n; > <???> @ 0x1008c9238\n; > <???> @ 0x1008c9a48\n; > <???> @ 0x1008ca258\n; > <???> @ 0x1008caa68\n; > <???> @ 0x1008cb278\n; > <???> @ 0x1008cba88\n; > <???> @ 0x1008cc298\n; > <???> @ 0x1008ccaa8\n; > <???> @ 0x1008ceb48\n; > <???> @ 0x1008cf370\n; > <???> @ 0x1008cfb98\n; > <???> @ 0x1008d03c0\n; > <???> @ 0x1008d0be8\n; > <???> @ 0x1008d13f8\n; > <???> @ 0x1008d1c08\n; > <???> @ 0x1008d2418\n; > <???> @ 0x1008d2c28\n; > <???> @ 0x1008d3438\n; > <???> @ 0x1008d3c48\n; > <???> @ 0x1008d4458\n; > <???> @ 0x1008d4c68\n; > <???> @ 0x1008d5478\n; > <???> @ 0x1008d5c88\n; > <???> @ 0x1008d6498\n; > <???> @ 0x1008d6ca8\n; > <???> @ 0x1008d74b8\n; > <???> @ 0x1008d7cc8\n; > <???> @ 0x1008d84d8\n; > <???> @ 0x1008d8ce8\n; > <???> @ 0x100923490\n; > <???> @ 0x100971540\n; > <???> @ 0x100971d28\n; > <???> @ 0x100972538\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    rbp                                                            ; +0x0, 0x1005bbf20\nmov     rbp, rsp                                                       ; +0x1, 0x1005bbf21\npush    rbx                                                            ; +0x4, 0x1005bbf24\nsub     rsp, 18h                                                       ; +0x5, 0x1005bbf25\nmov     rbx, rdi                                                       ; +0x9, 0x1005bbf29\nmovss   xmm1, dword ptr [rdi+38h]                                      ; +0xc, 0x1005bbf2c\nucomiss xmm1, xmm0                                                     ; +0x11, 0x1005bbf31\njnz     short loc_1005BBF4B                                            ; +0x14, 0x1005bbf34\njp      short loc_1005BBF4B                                            ; +0x16, 0x1005bbf36\nmovss   xmm1, dword ptr [rbx+3Ch]                                      ; +0x18, 0x1005bbf38\nucomiss xmm1, xmm0                                                     ; +0x1d, 0x1005bbf3d\njnz     short loc_1005BBF4B                                            ; +0x20, 0x1005bbf40\njp      short loc_1005BBF4B                                            ; +0x22, 0x1005bbf42\nadd     rsp, 18h                                                       ; +0x24, 0x1005bbf44\npop     rbx                                                            ; +0x28, 0x1005bbf48\npop     rbp                                                            ; +0x29, 0x1005bbf49\nretn                                                                   ; +0x2a, 0x1005bbf4a\nmov     word ptr [rbx+360h], 101h                                      ; +0x2b, 0x1005bbf4b\nmov     byte ptr [rbx+348h], 1                                         ; +0x34, 0x1005bbf54\nmov     rdi, rbx                                                       ; +0x3b, 0x1005bbf5b\nmovaps  [rbp+var_20], xmm0                                             ; +0x3e, 0x1005bbf5e\ncall    CCSpritePlus__setRotation                                      ; +0x42, 0x1005bbf62\nmov     rdi, [rbx+2F0h]                                                ; +0x47, 0x1005bbf67\ntest    rdi, rdi                                                       ; +0x4e, 0x1005bbf6e\njz      short loc_1005BBF80                                            ; +0x51, 0x1005bbf71\nmov     rax, [rdi]                                                     ; +0x53, 0x1005bbf73\nmovaps  xmm0, [rbp+var_20]                                             ; +0x56, 0x1005bbf76\ncall    qword ptr [rax+158h]                                           ; +0x5a, 0x1005bbf7a\nmov     rdi, [rbx+378h]                                                ; +0x60, 0x1005bbf80\ntest    rdi, rdi                                                       ; +0x67, 0x1005bbf87\njz      short loc_1005BBFA2                                            ; +0x6a, 0x1005bbf8a\ncmp     byte ptr [rbx+362h], 0                                         ; +0x6c, 0x1005bbf8c\njnz     short loc_1005BBFA2                                            ; +0x73, 0x1005bbf93\nmov     rax, [rdi]                                                     ; +0x75, 0x1005bbf95\nmovaps  xmm0, [rbp+var_20]                                             ; +0x78, 0x1005bbf98\ncall    qword ptr [rax+158h]                                           ; +0x7c, 0x1005bbf9c\nmov     rdi, [rbx+308h]                                                ; +0x82, 0x1005bbfa2\ntest    rdi, rdi                                                       ; +0x89, 0x1005bbfa9\nmovaps  xmm0, [rbp+var_20]                                             ; +0x8c, 0x1005bbfac\njz      short loc_1005BBFC8                                            ; +0x90, 0x1005bbfb0\ncmp     byte ptr [rbx+428h], 0                                         ; +0x92, 0x1005bbfb2\njnz     short loc_1005BBFC8                                            ; +0x99, 0x1005bbfb9\nmov     rax, [rdi]                                                     ; +0x9b, 0x1005bbfbb\ncall    qword ptr [rax+158h]                                           ; +0x9e, 0x1005bbfbe\nmovaps  xmm0, [rbp+var_20]                                             ; +0xa4, 0x1005bbfc4\nshufps  xmm0, xmm0, 0                                                  ; +0xa8, 0x1005bbfc8\ncmpeqps xmm0, cs:xmmword_10081F3E0                                     ; +0xac, 0x1005bbfcc\nmovmskps eax, xmm0                                                     ; +0xb4, 0x1005bbfd4\ntest    eax, eax                                                       ; +0xb7, 0x1005bbfd7\nsetnz   byte ptr [rbx+388h]                                            ; +0xb9, 0x1005bbfd9\nadd     rsp, 18h                                                       ; +0xc0, 0x1005bbfe0\npop     rbx                                                            ; +0xc4, 0x1005bbfe4\npop     rbp                                                            ; +0xc5, 0x1005bbfe5\nretn                                                                   ; +0xc6, 0x1005bbfe6", "xrefs": ["ParticleGameObject::setRotation @ 0x1001b2709", "RingObject::setRotation @ 0x1001b4405", "TeleportPortalObject::setRotation @ 0x1001bdfc0", "TeleportPortalObject::setRotation2 @ 0x1001bdff5", "PlayerObject::setRotation @ 0x10041d4e5", "<???> @ 0x1008c41c0", "<???> @ 0x1008c49f8", "<???> @ 0x1008c51f0", "<???> @ 0x1008c59e8", "<???> @ 0x1008c61e0", "<???> @ 0x1008c69d8", "<???> @ 0x1008c71d0", "<???> @ 0x1008c79c8", "<???> @ 0x1008c89c0", "<???> @ 0x1008c9238", "<???> @ 0x1008c9a48", "<???> @ 0x1008ca258", "<???> @ 0x1008caa68", "<???> @ 0x1008cb278", "<???> @ 0x1008cba88", "<???> @ 0x1008cc298", "<???> @ 0x1008ccaa8", "<???> @ 0x1008ceb48", "<???> @ 0x1008cf370", "<???> @ 0x1008cfb98", "<???> @ 0x1008d03c0", "<???> @ 0x1008d0be8", "<???> @ 0x1008d13f8", "<???> @ 0x1008d1c08", "<???> @ 0x1008d2418", "<???> @ 0x1008d2c28", "<???> @ 0x1008d3438", "<???> @ 0x1008d3c48", "<???> @ 0x1008d4458", "<???> @ 0x1008d4c68", "<???> @ 0x1008d5478", "<???> @ 0x1008d5c88", "<???> @ 0x1008d6498", "<???> @ 0x1008d6ca8", "<???> @ 0x1008d74b8", "<???> @ 0x1008d7cc8", "<???> @ 0x1008d84d8", "<???> @ 0x1008d8ce8", "<???> @ 0x100923490", "<???> @ 0x100971540", "<???> @ 0x100971d28", "<???> @ 0x100972538"], "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"}