{"type": "func", "start": 4298081536, "end": 4298081752, "name": "GameObject::setRotation", "pseudocode": "// \n// GameObject::setRotation from 0x1002f8500 to 0x1002f85d8 (216 bytes)\n// \n// 48 xrefs:\n// > PlayerObject::setRotation @ 0x1002cb494\n// > ParticleGameObject::setRotation @ 0x100427bb4\n// > RingObject::setRotation @ 0x100428a20\n// > TeleportPortalObject::setRotation @ 0x10042e0bc\n// > TeleportPortalObject::setRotation2 @ 0x10042e0f4\n// > <???> @ 0x1009284b0\n// > <???> @ 0x100928ca8\n// > <???> @ 0x1009294c8\n// > <???> @ 0x10094d488\n// > <???> @ 0x10094dcd0\n// > <???> @ 0x10094e4d8\n// > <???> @ 0x10094ece0\n// > <???> @ 0x10094f4e8\n// > <???> @ 0x10094fcf0\n// > <???> @ 0x1009504f8\n// > <???> @ 0x100950d00\n// > <???> @ 0x100951d18\n// > <???> @ 0x100952590\n// > <???> @ 0x100952db0\n// > <???> @ 0x1009535d0\n// > <???> @ 0x100953df0\n// > <???> @ 0x100954610\n// > <???> @ 0x100954e30\n// > <???> @ 0x100955650\n// > <???> @ 0x100955e70\n// > <???> @ 0x100957f50\n// > <???> @ 0x100958788\n// > <???> @ 0x100958fc0\n// > <???> @ 0x1009597f8\n// > <???> @ 0x10095a030\n// > <???> @ 0x10095a850\n// > <???> @ 0x10095b070\n// > <???> @ 0x10095b890\n// > <???> @ 0x10095c0b0\n// > <???> @ 0x10095c8d0\n// > <???> @ 0x10095d0f0\n// > <???> @ 0x10095d910\n// > <???> @ 0x10095e130\n// > <???> @ 0x10095e950\n// > <???> @ 0x10095f170\n// > <???> @ 0x10095f990\n// > <???> @ 0x1009601b0\n// > <???> @ 0x1009609d0\n// > <???> @ 0x1009611f0\n// > <???> @ 0x100961a10\n// > <???> @ 0x100962230\n// > <???> @ 0x100962a50\n// > <???> @ 0x10096de50\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:00 +0000\n// \n\nshort float __fastcall GameObject::setRotation(__int64 a1, __n128 a2)\n{\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __n128 v7; // [xsp+0h] [xbp-20h]\n\n  if ( *(float *)(a1 + 56) != a2.n128_f32[0] || *(float *)(a1 + 60) != a2.n128_f32[0] )\n  {\n    *(_WORD *)(a1 + 864) = 257;\n    *(_BYTE *)(a1 + 840) = 1;\n    v7 = a2;\n    CCSpritePlus::setRotation(a1, a2.n128_f32[0]);\n    v3 = *(_QWORD *)(a1 + 752);\n    if ( v3 )\n      (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v3 + 360LL))(v3, v7);\n    v4 = *(_QWORD *)(a1 + 888);\n    if ( v4 && (*(_BYTE *)(a1 + 866) & 1) == 0 )\n      (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v4 + 360LL))(v4, v7);\n    v5 = *(_QWORD *)(a1 + 776);\n    a2.n128_u64[0] = v7.n128_u64[0];\n    if ( v5 && (*(_BYTE *)(a1 + 1064) & 1) == 0 )\n    {\n      (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v5 + 360LL))(v5, v7);\n      a2.n128_u64[0] = v7.n128_u64[0];\n    }\n    a2.n128_u16[0] = vmaxv_u16((uint16x4_t)vmovn_s32(\n                                             vceqq_f32(\n                                               (float32x4_t)vdupq_lane_s32((int32x2_t)a2.n128_u64[0], 0),\n                                               (float32x4_t)xmmword_10076B800)));\n    *(_BYTE *)(a1 + 904) = a2.n128_u8[0] & 1;\n  }\n  return *(short float *)a2.n128_u16;\n}", "assembly": "; \n; GameObject::setRotation from 0x1002f8500 to 0x1002f85d8 (216 bytes)\n; \n; 48 xrefs:\n; > PlayerObject::setRotation @ 0x1002cb494\n; > ParticleGameObject::setRotation @ 0x100427bb4\n; > RingObject::setRotation @ 0x100428a20\n; > TeleportPortalObject::setRotation @ 0x10042e0bc\n; > TeleportPortalObject::setRotation2 @ 0x10042e0f4\n; > <???> @ 0x1009284b0\n; > <???> @ 0x100928ca8\n; > <???> @ 0x1009294c8\n; > <???> @ 0x10094d488\n; > <???> @ 0x10094dcd0\n; > <???> @ 0x10094e4d8\n; > <???> @ 0x10094ece0\n; > <???> @ 0x10094f4e8\n; > <???> @ 0x10094fcf0\n; > <???> @ 0x1009504f8\n; > <???> @ 0x100950d00\n; > <???> @ 0x100951d18\n; > <???> @ 0x100952590\n; > <???> @ 0x100952db0\n; > <???> @ 0x1009535d0\n; > <???> @ 0x100953df0\n; > <???> @ 0x100954610\n; > <???> @ 0x100954e30\n; > <???> @ 0x100955650\n; > <???> @ 0x100955e70\n; > <???> @ 0x100957f50\n; > <???> @ 0x100958788\n; > <???> @ 0x100958fc0\n; > <???> @ 0x1009597f8\n; > <???> @ 0x10095a030\n; > <???> @ 0x10095a850\n; > <???> @ 0x10095b070\n; > <???> @ 0x10095b890\n; > <???> @ 0x10095c0b0\n; > <???> @ 0x10095c8d0\n; > <???> @ 0x10095d0f0\n; > <???> @ 0x10095d910\n; > <???> @ 0x10095e130\n; > <???> @ 0x10095e950\n; > <???> @ 0x10095f170\n; > <???> @ 0x10095f990\n; > <???> @ 0x1009601b0\n; > <???> @ 0x1009609d0\n; > <???> @ 0x1009611f0\n; > <???> @ 0x100961a10\n; > <???> @ 0x100962230\n; > <???> @ 0x100962a50\n; > <???> @ 0x10096de50\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:00 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1002f8500\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002f8504\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002f8508\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002f850c\nMOV             X19, X0                                                ; +0x10, 0x1002f8510\nLDR             S1, [X0,#0x38]                                         ; +0x14, 0x1002f8514\nFCMP            S1, S0                                                 ; +0x18, 0x1002f8518\nB.NE            loc_1002F852C                                          ; +0x1c, 0x1002f851c\nLDR             S1, [X19,#0x3C]                                        ; +0x20, 0x1002f8520\nFCMP            S1, S0                                                 ; +0x24, 0x1002f8524\nB.EQ            loc_1002F85C8                                          ; +0x28, 0x1002f8528\nMOV             W8, #0x101                                             ; +0x2c, 0x1002f852c\nSTRH            W8, [X19,#0x360]                                       ; +0x30, 0x1002f8530\nMOV             W8, #1                                                 ; +0x34, 0x1002f8534\nSTRB            W8, [X19,#0x348]                                       ; +0x38, 0x1002f8538\nMOV             X0, X19                                                ; +0x3c, 0x1002f853c\nSTR             Q0, [SP,#0x20+var_20]                                  ; +0x40, 0x1002f8540\nBL              CCSpritePlus__setRotation                              ; +0x44, 0x1002f8544\nLDR             X0, [X19,#0x2F0]                                       ; +0x48, 0x1002f8548\nCBZ             X0, loc_1002F8560                                      ; +0x4c, 0x1002f854c\nLDR             X8, [X0]                                               ; +0x50, 0x1002f8550\nLDR             X8, [X8,#0x168]                                        ; +0x54, 0x1002f8554\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0x58, 0x1002f8558\nBLR             X8                                                     ; +0x5c, 0x1002f855c\nLDR             X0, [X19,#0x378]                                       ; +0x60, 0x1002f8560\nCBZ             X0, loc_1002F8580                                      ; +0x64, 0x1002f8564\nLDRB            W8, [X19,#0x362]                                       ; +0x68, 0x1002f8568\nTBNZ            W8, #0, loc_1002F8580                                  ; +0x6c, 0x1002f856c\nLDR             X8, [X0]                                               ; +0x70, 0x1002f8570\nLDR             X8, [X8,#0x168]                                        ; +0x74, 0x1002f8574\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0x78, 0x1002f8578\nBLR             X8                                                     ; +0x7c, 0x1002f857c\nLDR             X0, [X19,#0x308]                                       ; +0x80, 0x1002f8580\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0x84, 0x1002f8584\nCBZ             X0, loc_1002F85A4                                      ; +0x88, 0x1002f8588\nLDRB            W8, [X19,#0x428]                                       ; +0x8c, 0x1002f858c\nTBNZ            W8, #0, loc_1002F85A4                                  ; +0x90, 0x1002f8590\nLDR             X8, [X0]                                               ; +0x94, 0x1002f8594\nLDR             X8, [X8,#0x168]                                        ; +0x98, 0x1002f8598\nBLR             X8                                                     ; +0x9c, 0x1002f859c\nLDR             Q0, [SP,#0x20+var_20]                                  ; +0xa0, 0x1002f85a0\nDUP             V0.4S, V0.S[0]                                         ; +0xa4, 0x1002f85a4\nADRP            X8, #xmmword_10076B800@PAGE                            ; +0xa8, 0x1002f85a8\nLDR             Q1, [X8,#xmmword_10076B800@PAGEOFF]                    ; +0xac, 0x1002f85ac\nFCMEQ           V0.4S, V0.4S, V1.4S                                    ; +0xb0, 0x1002f85b0\nXTN             V0.4H, V0.4S                                           ; +0xb4, 0x1002f85b4\nUMAXV           H0, V0.4H                                              ; +0xb8, 0x1002f85b8\nFMOV            W8, S0                                                 ; +0xbc, 0x1002f85bc\nAND             W8, W8, #1                                             ; +0xc0, 0x1002f85c0\nSTRB            W8, [X19,#0x388]                                       ; +0xc4, 0x1002f85c4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc8, 0x1002f85c8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xcc, 0x1002f85cc\nADD             SP, SP, #0x30 ; '0'                                    ; +0xd0, 0x1002f85d0\nRET                                                                    ; +0xd4, 0x1002f85d4", "xrefs": ["PlayerObject::setRotation @ 0x1002cb494", "ParticleGameObject::setRotation @ 0x100427bb4", "RingObject::setRotation @ 0x100428a20", "TeleportPortalObject::setRotation @ 0x10042e0bc", "TeleportPortalObject::setRotation2 @ 0x10042e0f4", "<???> @ 0x1009284b0", "<???> @ 0x100928ca8", "<???> @ 0x1009294c8", "<???> @ 0x10094d488", "<???> @ 0x10094dcd0", "<???> @ 0x10094e4d8", "<???> @ 0x10094ece0", "<???> @ 0x10094f4e8", "<???> @ 0x10094fcf0", "<???> @ 0x1009504f8", "<???> @ 0x100950d00", "<???> @ 0x100951d18", "<???> @ 0x100952590", "<???> @ 0x100952db0", "<???> @ 0x1009535d0", "<???> @ 0x100953df0", "<???> @ 0x100954610", "<???> @ 0x100954e30", "<???> @ 0x100955650", "<???> @ 0x100955e70", "<???> @ 0x100957f50", "<???> @ 0x100958788", "<???> @ 0x100958fc0", "<???> @ 0x1009597f8", "<???> @ 0x10095a030", "<???> @ 0x10095a850", "<???> @ 0x10095b070", "<???> @ 0x10095b890", "<???> @ 0x10095c0b0", "<???> @ 0x10095c8d0", "<???> @ 0x10095d0f0", "<???> @ 0x10095d910", "<???> @ 0x10095e130", "<???> @ 0x10095e950", "<???> @ 0x10095f170", "<???> @ 0x10095f990", "<???> @ 0x1009601b0", "<???> @ 0x1009609d0", "<???> @ 0x1009611f0", "<???> @ 0x100961a10", "<???> @ 0x100962230", "<???> @ 0x100962a50", "<???> @ 0x10096de50"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}