{"type": "func", "start": 5371455040, "end": 5371455188, "name": "GameObject::updateIsOriented", "pseudocode": "// \n// GameObject::updateIsOriented from 0x14029e640 to 0x14029e6d4 (148 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::onPlaytest @ 0x1403fec40\n// > PlayLayer::addObject @ 0x14050c6dc\n// > <???> @ 0x14091d8e8\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:29:14 +0000\n// \n\n__int64 __fastcall GameObject::updateIsOriented(__int64 *a1)\n{\n  __int64 result; // rax\n  int v3; // ecx\n  float v4; // xmm0_4\n  __int64 v5; // rax\n\n  result = *((unsigned int *)a1 + 232);\n  *((_BYTE *)a1 + 744) = 0;\n  if ( (_DWORD)result != 7 )\n  {\n    if ( (unsigned int)result > 0x19 || (v3 = 35651585, !_bittest(&v3, result)) || *((_BYTE *)a1 + 1222) )\n    {\n      v4 = (*(float (__fastcall **)(__int64 *))(*a1 + 360))(a1);\n      result = (unsigned int)(90 * ((int)v4 / 90));\n      if ( (int)v4 != (_DWORD)result && *((float *)a1 + 227) <= 0.0 )\n      {\n        v5 = *a1;\n        *((_BYTE *)a1 + 744) = 1;\n        (*(void (__fastcall **)(__int64 *))(v5 + 1416))(a1);\n        return (*(__int64 (__fastcall **)(__int64 *))(*a1 + 1184))(a1);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameObject::updateIsOriented from 0x14029e640 to 0x14029e6d4 (148 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::onPlaytest @ 0x1403fec40\n; > PlayLayer::addObject @ 0x14050c6dc\n; > <???> @ 0x14091d8e8\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:29:14 +0000\n; \npush    rbx                                                            ; +0x0, 0x14029e640\nsub     rsp, 20h                                                       ; +0x2, 0x14029e642\nmov     eax, [rcx+3A0h]                                                ; +0x6, 0x14029e646\nmov     rbx, rcx                                                       ; +0xc, 0x14029e64c\nmov     byte ptr [rcx+2E8h], 0                                         ; +0xf, 0x14029e64f\ncmp     eax, 7                                                         ; +0x16, 0x14029e656\njz      short loc_14029E6CE                                            ; +0x19, 0x14029e659\ncmp     eax, 19h                                                       ; +0x1b, 0x14029e65b\nja      short loc_14029E673                                            ; +0x1e, 0x14029e65e\nmov     ecx, 2200001h                                                  ; +0x20, 0x14029e660\nbt      ecx, eax                                                       ; +0x25, 0x14029e665\njnb     short loc_14029E673                                            ; +0x28, 0x14029e668\ncmp     byte ptr [rbx+4C6h], 0                                         ; +0x2a, 0x14029e66a\njz      short loc_14029E6CE                                            ; +0x31, 0x14029e671\nmov     rax, [rbx]                                                     ; +0x33, 0x14029e673\nmov     rcx, rbx                                                       ; +0x36, 0x14029e676\ncall    qword ptr [rax+168h]                                           ; +0x39, 0x14029e679\ncvttss2si ecx, xmm0                                                    ; +0x3f, 0x14029e67f\nmov     eax, 0B60B60B7h                                                ; +0x43, 0x14029e683\nimul    ecx                                                            ; +0x48, 0x14029e688\nadd     edx, ecx                                                       ; +0x4a, 0x14029e68a\nsar     edx, 6                                                         ; +0x4c, 0x14029e68c\nmov     eax, edx                                                       ; +0x4f, 0x14029e68f\nshr     eax, 1Fh                                                       ; +0x51, 0x14029e691\nadd     edx, eax                                                       ; +0x54, 0x14029e694\nimul    eax, edx, 5Ah ; 'Z'                                            ; +0x56, 0x14029e696\ncmp     ecx, eax                                                       ; +0x59, 0x14029e699\njz      short loc_14029E6CE                                            ; +0x5b, 0x14029e69b\nxorps   xmm0, xmm0                                                     ; +0x5d, 0x14029e69d\ncomiss  xmm0, dword ptr [rbx+38Ch]                                     ; +0x60, 0x14029e6a0\njb      short loc_14029E6CE                                            ; +0x67, 0x14029e6a7\nmov     rax, [rbx]                                                     ; +0x69, 0x14029e6a9\nmov     rcx, rbx                                                       ; +0x6c, 0x14029e6ac\nmov     byte ptr [rbx+2E8h], 1                                         ; +0x6f, 0x14029e6af\ncall    qword ptr [rax+588h]                                           ; +0x76, 0x14029e6b6\nmov     rax, [rbx]                                                     ; +0x7c, 0x14029e6bc\nmov     rcx, rbx                                                       ; +0x7f, 0x14029e6bf\nadd     rsp, 20h                                                       ; +0x82, 0x14029e6c2\npop     rbx                                                            ; +0x86, 0x14029e6c6\njmp     qword ptr [rax+4A0h]                                           ; +0x87, 0x14029e6c7\nadd     rsp, 20h                                                       ; +0x8e, 0x14029e6ce\npop     rbx                                                            ; +0x92, 0x14029e6d2\nretn                                                                   ; +0x93, 0x14029e6d3", "xrefs": ["LevelEditorLayer::onPlaytest @ 0x1403fec40", "PlayLayer::addObject @ 0x14050c6dc", "<???> @ 0x14091d8e8"], "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"}