{"type": "func", "start": 5372071168, "end": 5372071315, "name": "GJBaseGameLayer::rotateObject", "pseudocode": "// \n// GJBaseGameLayer::rotateObject from 0x140334d00 to 0x140334d93 (147 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::rotateObjects @ 0x1403351b5\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f3b\n// > <???> @ 0x14091f874\n// \n// This function is hookable on this platform (idp: pc, 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:30:34 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::rotateObject(__int64 a1, __int64 *a2, float a3)\n{\n  float v4; // xmm0_4\n  __int64 result; // rax\n  bool v6; // zf\n  __int64 v7; // rax\n\n  if ( a3 != 0.0 )\n  {\n    if ( *((_BYTE *)a2 + 876) )\n    {\n      v4 = a3 + *((float *)a2 + 170);\n      *((float *)a2 + 172) = a3 + *((float *)a2 + 172);\n      *((float *)a2 + 170) = v4;\n      result = GameObject::addRotation((float *)a2);\n      if ( *((_DWORD *)a2 + 232) != 7 )\n      {\n        v6 = *((_BYTE *)a2 + 744) == 0;\n        *((_WORD *)a2 + 436) = 257;\n        if ( v6 )\n        {\n          v7 = *a2;\n          *((_BYTE *)a2 + 744) = 1;\n          (*(void (__fastcall **)(__int64 *))(v7 + 1416))(a2);\n          return (*(__int64 (__fastcall **)(__int64 *))(*a2 + 1184))(a2);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::rotateObject from 0x140334d00 to 0x140334d93 (147 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::rotateObjects @ 0x1403351b5\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f3b\n; > <???> @ 0x14091f874\n; \n; This function is hookable on this platform (idp: pc, 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:30:34 +0000\n; \npush    rbx                                                            ; +0x0, 0x140334d00\nsub     rsp, 20h                                                       ; +0x2, 0x140334d02\nxorps   xmm0, xmm0                                                     ; +0x6, 0x140334d06\nmov     rbx, rdx                                                       ; +0x9, 0x140334d09\nucomiss xmm2, xmm0                                                     ; +0xc, 0x140334d0c\njp      short loc_140334D13                                            ; +0xf, 0x140334d0f\njz      short loc_140334D8D                                            ; +0x11, 0x140334d11\ncmp     byte ptr [rdx+36Ch], 0                                         ; +0x13, 0x140334d13\njz      short loc_140334D8D                                            ; +0x1a, 0x140334d1a\nmovaps  xmm1, xmm2                                                     ; +0x1c, 0x140334d1c\nmovaps  xmm0, xmm2                                                     ; +0x1f, 0x140334d1f\naddss   xmm1, dword ptr [rdx+2B0h]                                     ; +0x22, 0x140334d22\naddss   xmm0, dword ptr [rdx+2A8h]                                     ; +0x2a, 0x140334d2a\nmov     rcx, rbx                                                       ; +0x32, 0x140334d32\nmovss   dword ptr [rdx+2B0h], xmm1                                     ; +0x35, 0x140334d35\nmovaps  xmm1, xmm2                                                     ; +0x3d, 0x140334d3d\nmovss   dword ptr [rdx+2A8h], xmm0                                     ; +0x40, 0x140334d40\ncall    GameObject__addRotation                                        ; +0x48, 0x140334d48\ncmp     dword ptr [rbx+3A0h], 7                                        ; +0x4d, 0x140334d4d\njz      short loc_140334D8D                                            ; +0x54, 0x140334d54\ncmp     byte ptr [rbx+2E8h], 0                                         ; +0x56, 0x140334d56\nmov     word ptr [rbx+368h], 101h                                      ; +0x5d, 0x140334d5d\njnz     short loc_140334D8D                                            ; +0x66, 0x140334d66\nmov     rax, [rbx]                                                     ; +0x68, 0x140334d68\nmov     rcx, rbx                                                       ; +0x6b, 0x140334d6b\nmov     byte ptr [rbx+2E8h], 1                                         ; +0x6e, 0x140334d6e\ncall    qword ptr [rax+588h]                                           ; +0x75, 0x140334d75\nmov     rax, [rbx]                                                     ; +0x7b, 0x140334d7b\nmov     rcx, rbx                                                       ; +0x7e, 0x140334d7e\nadd     rsp, 20h                                                       ; +0x81, 0x140334d81\npop     rbx                                                            ; +0x85, 0x140334d85\njmp     qword ptr [rax+4A0h]                                           ; +0x86, 0x140334d86\nadd     rsp, 20h                                                       ; +0x8d, 0x140334d8d\npop     rbx                                                            ; +0x91, 0x140334d91\nretn                                                                   ; +0x92, 0x140334d92", "xrefs": ["GJBaseGameLayer::rotateObjects @ 0x1403351b5", "GJBaseGameLayer::processAdvancedFollowAction @ 0x140338f3b", "<???> @ 0x14091f874"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}