{"type": "func", "start": 4297437948, "end": 4297438164, "name": "GameObject::setRotation", "pseudocode": "// \n// GameObject::setRotation from 0x10025b2fc to 0x10025b3d4 (216 bytes)\n// \n// 47 xrefs:\n// > PlayerObject::setRotation @ 0x10022e72c\n// > ParticleGameObject::setRotation @ 0x100381928\n// > RingObject::setRotation @ 0x100382794\n// > TeleportPortalObject::setRotation @ 0x100387b80\n// > TeleportPortalObject::setRotation2 @ 0x100387bb8\n// > <???> @ 0x1007cf9e0\n// > <???> @ 0x1007d01c8\n// > <???> @ 0x1007d09d8\n// > <???> @ 0x1007f5248\n// > <???> @ 0x1007f5a80\n// > <???> @ 0x1007f6278\n// > <???> @ 0x1007f6a70\n// > <???> @ 0x1007f7268\n// > <???> @ 0x1007f7a60\n// > <???> @ 0x1007f8258\n// > <???> @ 0x1007f8a50\n// > <???> @ 0x1007f9a48\n// > <???> @ 0x1007fa2b0\n// > <???> @ 0x1007faac0\n// > <???> @ 0x1007fb2d0\n// > <???> @ 0x1007fbae0\n// > <???> @ 0x1007fc2f0\n// > <???> @ 0x1007fcb00\n// > <???> @ 0x1007fd310\n// > <???> @ 0x1007fdb20\n// > <???> @ 0x1007ffbc0\n// > <???> @ 0x1008003e8\n// > <???> @ 0x100800c10\n// > <???> @ 0x100801438\n// > <???> @ 0x100801c60\n// > <???> @ 0x100802470\n// > <???> @ 0x100802c80\n// > <???> @ 0x100803490\n// > <???> @ 0x100803ca0\n// > <???> @ 0x1008044b0\n// > <???> @ 0x100804cc0\n// > <???> @ 0x1008054d0\n// > <???> @ 0x100805ce0\n// > <???> @ 0x1008064f0\n// > <???> @ 0x100806d00\n// > <???> @ 0x100807510\n// > <???> @ 0x100807d20\n// > <???> @ 0x100808530\n// > <???> @ 0x100808d40\n// > <???> @ 0x100809550\n// > <???> @ 0x100809d60\n// > <???> @ 0x100816080\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; // x0\n  cocos2d::CCSprite *m_colorSprite; // x0\n  cocos2d::CCParticleSystemQuad *m_particle; // x0\n  int32x2_t v6; // d0\n  __n128 v7; // [xsp+0h] [xbp-20h]\n\n  if ( a1->m_fRotationX != a2 || a1->m_fRotationY != a2 )\n  {\n    *(_WORD *)&a1->m_isObjectRectDirty = 257;\n    a1->m_isDirty = 1;\n    v7 = *(__n128 *)&a2;\n    CCSpritePlus::setRotation(a1, a2);\n    m_glowSprite = a1->m_glowSprite;\n    if ( m_glowSprite )\n      ((void (__fastcall *)(cocos2d::CCSprite *, __n128))m_glowSprite->setRotation)(m_glowSprite, v7);\n    m_colorSprite = a1->m_colorSprite;\n    if ( m_colorSprite && !a1->m_colorSpriteLocked )\n      ((void (__fastcall *)(cocos2d::CCSprite *, __n128))m_colorSprite->setRotation)(m_colorSprite, v7);\n    m_particle = a1->m_particle;\n    v6 = (int32x2_t)v7.n128_u64[0];\n    if ( m_particle )\n    {\n      if ( !a1->m_particleLocked )\n      {\n        ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __n128))m_particle->setRotation)(m_particle, v7);\n        v6 = (int32x2_t)v7.n128_u64[0];\n      }\n    }\n    a1->m_isRotationAligned = vmaxv_u16((uint16x4_t)vmovn_s32(\n                                                      vceqq_f32(\n                                                        (float32x4_t)vdupq_lane_s32(v6, 0),\n                                                        (float32x4_t)xmmword_100642870)))\n                            & 1;\n  }\n}", "assembly": "; \n; GameObject::setRotation from 0x10025b2fc to 0x10025b3d4 (216 bytes)\n; \n; 47 xrefs:\n; > PlayerObject::setRotation @ 0x10022e72c\n; > ParticleGameObject::setRotation @ 0x100381928\n; > RingObject::setRotation @ 0x100382794\n; > TeleportPortalObject::setRotation @ 0x100387b80\n; > TeleportPortalObject::setRotation2 @ 0x100387bb8\n; > <???> @ 0x1007cf9e0\n; > <???> @ 0x1007d01c8\n; > <???> @ 0x1007d09d8\n; > <???> @ 0x1007f5248\n; > <???> @ 0x1007f5a80\n; > <???> @ 0x1007f6278\n; > <???> @ 0x1007f6a70\n; > <???> @ 0x1007f7268\n; > <???> @ 0x1007f7a60\n; > <???> @ 0x1007f8258\n; > <???> @ 0x1007f8a50\n; > <???> @ 0x1007f9a48\n; > <???> @ 0x1007fa2b0\n; > <???> @ 0x1007faac0\n; > <???> @ 0x1007fb2d0\n; > <???> @ 0x1007fbae0\n; > <???> @ 0x1007fc2f0\n; > <???> @ 0x1007fcb00\n; > <???> @ 0x1007fd310\n; > <???> @ 0x1007fdb20\n; > <???> @ 0x1007ffbc0\n; > <???> @ 0x1008003e8\n; > <???> @ 0x100800c10\n; > <???> @ 0x100801438\n; > <???> @ 0x100801c60\n; > <???> @ 0x100802470\n; > <???> @ 0x100802c80\n; > <???> @ 0x100803490\n; > <???> @ 0x100803ca0\n; > <???> @ 0x1008044b0\n; > <???> @ 0x100804cc0\n; > <???> @ 0x1008054d0\n; > <???> @ 0x100805ce0\n; > <???> @ 0x1008064f0\n; > <???> @ 0x100806d00\n; > <???> @ 0x100807510\n; > <???> @ 0x100807d20\n; > <???> @ 0x100808530\n; > <???> @ 0x100808d40\n; > <???> @ 0x100809550\n; > <???> @ 0x100809d60\n; > <???> @ 0x100816080\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10025b2fc\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10025b300\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10025b304\nADD             X29, SP, #0x20                                         ; +0xc, 0x10025b308\nMOV             X19, X0                                                ; +0x10, 0x10025b30c\nLDR             S1, [X0,#0x38]                                         ; +0x14, 0x10025b310\nFCMP            S1, S0                                                 ; +0x18, 0x10025b314\nB.NE            loc_10025B328                                          ; +0x1c, 0x10025b318\nLDR             S1, [X19,#0x3C]                                        ; +0x20, 0x10025b31c\nFCMP            S1, S0                                                 ; +0x24, 0x10025b320\nB.EQ            loc_10025B3C4                                          ; +0x28, 0x10025b324\nMOV             W8, #0x101                                             ; +0x2c, 0x10025b328\nSTRH            W8, [X19,#0x360]                                       ; +0x30, 0x10025b32c\nMOV             W8, #1                                                 ; +0x34, 0x10025b330\nSTRB            W8, [X19,#0x348]                                       ; +0x38, 0x10025b334\nMOV             X0, X19                                                ; +0x3c, 0x10025b338\nSTR             Q0, [SP,#0x20+var_20]                                  ; +0x40, 0x10025b33c\nBL              CCSpritePlus__setRotation                              ; +0x44, 0x10025b340\nLDR             X0, [X19,#0x2F0]                                       ; +0x48, 0x10025b344\nCBZ             X0, loc_10025B35C                                      ; +0x4c, 0x10025b348\nLDR             X8, [X0]                                               ; +0x50, 0x10025b34c\nLDR             X8, [X8,#0x158]                                        ; +0x54, 0x10025b350\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0x58, 0x10025b354\nBLR             X8                                                     ; +0x5c, 0x10025b358\nLDR             X0, [X19,#0x378]                                       ; +0x60, 0x10025b35c\nCBZ             X0, loc_10025B37C                                      ; +0x64, 0x10025b360\nLDRB            W8, [X19,#0x362]                                       ; +0x68, 0x10025b364\nTBNZ            W8, #0, loc_10025B37C                                  ; +0x6c, 0x10025b368\nLDR             X8, [X0]                                               ; +0x70, 0x10025b36c\nLDR             X8, [X8,#0x158]                                        ; +0x74, 0x10025b370\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0x78, 0x10025b374\nBLR             X8                                                     ; +0x7c, 0x10025b378\nLDR             X0, [X19,#0x308]                                       ; +0x80, 0x10025b37c\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0x84, 0x10025b380\nCBZ             X0, loc_10025B3A0                                      ; +0x88, 0x10025b384\nLDRB            W8, [X19,#0x428]                                       ; +0x8c, 0x10025b388\nTBNZ            W8, #0, loc_10025B3A0                                  ; +0x90, 0x10025b38c\nLDR             X8, [X0]                                               ; +0x94, 0x10025b390\nLDR             X8, [X8,#0x158]                                        ; +0x98, 0x10025b394\nBLR             X8                                                     ; +0x9c, 0x10025b398\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0xa0, 0x10025b39c\nDUP             V0.4S, V0.S[0]                                         ; +0xa4, 0x10025b3a0\nADRP            X8, #xmmword_100642870@PAGE                            ; +0xa8, 0x10025b3a4\nLDR             Q1, [X8,#xmmword_100642870@PAGEOFF]                    ; +0xac, 0x10025b3a8\nFCMEQ           V0.4S, V0.4S, V1.4S                                    ; +0xb0, 0x10025b3ac\nXTN             V0.4H, V0.4S                                           ; +0xb4, 0x10025b3b0\nUMAXV           H0, V0.4H                                              ; +0xb8, 0x10025b3b4\nFMOV            W8, S0                                                 ; +0xbc, 0x10025b3b8\nAND             W8, W8, #1                                             ; +0xc0, 0x10025b3bc\nSTRB            W8, [X19,#0x388]                                       ; +0xc4, 0x10025b3c0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc8, 0x10025b3c4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xcc, 0x10025b3c8\nADD             SP, SP, #0x30 ; '0'                                    ; +0xd0, 0x10025b3cc\nRET                                                                    ; +0xd4, 0x10025b3d0", "xrefs": ["PlayerObject::setRotation @ 0x10022e72c", "ParticleGameObject::setRotation @ 0x100381928", "RingObject::setRotation @ 0x100382794", "TeleportPortalObject::setRotation @ 0x100387b80", "TeleportPortalObject::setRotation2 @ 0x100387bb8", "<???> @ 0x1007cf9e0", "<???> @ 0x1007d01c8", "<???> @ 0x1007d09d8", "<???> @ 0x1007f5248", "<???> @ 0x1007f5a80", "<???> @ 0x1007f6278", "<???> @ 0x1007f6a70", "<???> @ 0x1007f7268", "<???> @ 0x1007f7a60", "<???> @ 0x1007f8258", "<???> @ 0x1007f8a50", "<???> @ 0x1007f9a48", "<???> @ 0x1007fa2b0", "<???> @ 0x1007faac0", "<???> @ 0x1007fb2d0", "<???> @ 0x1007fbae0", "<???> @ 0x1007fc2f0", "<???> @ 0x1007fcb00", "<???> @ 0x1007fd310", "<???> @ 0x1007fdb20", "<???> @ 0x1007ffbc0", "<???> @ 0x1008003e8", "<???> @ 0x100800c10", "<???> @ 0x100801438", "<???> @ 0x100801c60", "<???> @ 0x100802470", "<???> @ 0x100802c80", "<???> @ 0x100803490", "<???> @ 0x100803ca0", "<???> @ 0x1008044b0", "<???> @ 0x100804cc0", "<???> @ 0x1008054d0", "<???> @ 0x100805ce0", "<???> @ 0x1008064f0", "<???> @ 0x100806d00", "<???> @ 0x100807510", "<???> @ 0x100807d20", "<???> @ 0x100808530", "<???> @ 0x100808d40", "<???> @ 0x100809550", "<???> @ 0x100809d60", "<???> @ 0x100816080"], "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"}