{"type": "func", "start": 5371434336, "end": 5371434460, "name": "GameObject::getObjectDirection", "pseudocode": "// \n// GameObject::getObjectDirection from 0x140299560 to 0x1402995dc (124 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1403faa43\n// > LevelEditorLayer::updateGameObjects @ 0x1403faa50\n// > LevelTools::sortChannelOrderObjects @ 0x140468290\n// > <???> @ 0x14091d6fc\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:11 +0000\n// \n\n__int64 __fastcall GameObject::getObjectDirection(__int64 a1)\n{\n  __int64 result; // rax\n\n  GameObject::determineSlopeDirection(a1);\n  switch ( *(_DWORD *)(a1 + 1092) )\n  {\n    case 2:\n    case 3:\n      result = 3;\n      break;\n    case 4:\n    case 7:\n      result = 2;\n      break;\n    case 5:\n    case 6:\n      result = 1;\n      break;\n    default:\n      result = 4;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameObject::getObjectDirection from 0x140299560 to 0x1402995dc (124 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1403faa43\n; > LevelEditorLayer::updateGameObjects @ 0x1403faa50\n; > LevelTools::sortChannelOrderObjects @ 0x140468290\n; > <???> @ 0x14091d6fc\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:11 +0000\n; \npush    rbx                                                            ; +0x0, 0x140299560\nsub     rsp, 20h                                                       ; +0x2, 0x140299562\nmov     rbx, rcx                                                       ; +0x6, 0x140299566\ncall    GameObject__determineSlopeDirection                            ; +0x9, 0x140299569\nmovsxd  rax, dword ptr [rbx+444h]                                      ; +0xe, 0x14029956e\ncmp     eax, 7; switch 8 cases                                         ; +0x15, 0x140299575\nja      short def_14029958B; jumptable 000000014029958B default case, cases 0,1 ; +0x18, 0x140299578\nlea     rdx, cs:140000000h                                             ; +0x1a, 0x14029957a\nmov     ecx, ds:(jpt_14029958B - 140000000h)[rdx+rax*4]                ; +0x21, 0x140299581\nadd     rcx, rdx                                                       ; +0x28, 0x140299588\njmp     rcx; switch jump                                               ; +0x2b, 0x14029958b\nmov     eax, 3; jumptable 000000014029958B cases 2,3                   ; +0x2d, 0x14029958d\nadd     rsp, 20h                                                       ; +0x32, 0x140299592\npop     rbx                                                            ; +0x36, 0x140299596\nretn                                                                   ; +0x37, 0x140299597\nmov     eax, 1; jumptable 000000014029958B cases 5,6                   ; +0x38, 0x140299598\nadd     rsp, 20h                                                       ; +0x3d, 0x14029959d\npop     rbx                                                            ; +0x41, 0x1402995a1\nretn                                                                   ; +0x42, 0x1402995a2\nmov     eax, 2; jumptable 000000014029958B cases 4,7                   ; +0x43, 0x1402995a3\nadd     rsp, 20h                                                       ; +0x48, 0x1402995a8\npop     rbx                                                            ; +0x4c, 0x1402995ac\nretn                                                                   ; +0x4d, 0x1402995ad\nmov     eax, 4; jumptable 000000014029958B default case, cases 0,1     ; +0x4e, 0x1402995ae\nadd     rsp, 20h                                                       ; +0x53, 0x1402995b3\npop     rbx                                                            ; +0x57, 0x1402995b7\nretn                                                                   ; +0x58, 0x1402995b8\nalign 4                                                                ; +0x59, 0x1402995b9\ndd offset def_14029958B - 140000000h; jump table for switch statement  ; +0x5c, 0x1402995bc", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1403faa43", "LevelEditorLayer::updateGameObjects @ 0x1403faa50", "LevelTools::sortChannelOrderObjects @ 0x140468290", "<???> @ 0x14091d6fc"], "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"}