{"type": "func", "start": 5370397984, "end": 5370398108, "name": "GameObject::getObjectDirection", "pseudocode": "// \n// GameObject::getObjectDirection from 0x14019c520 to 0x14019c59c (124 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc1ed\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc1fa\n// > LevelTools::sortChannelOrderObjects @ 0x14032d740\n// > <???> @ 0x1406cbd78\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\nint GameObject::getObjectDirection(GameObject *a1)\n{\n  int result; // eax\n\n  GameObject::determineSlopeDirection(a1);\n  switch ( a1->m_slopeDirection )\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 0x14019c520 to 0x14019c59c (124 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc1ed\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc1fa\n; > LevelTools::sortChannelOrderObjects @ 0x14032d740\n; > <???> @ 0x1406cbd78\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\npush    rbx                                                            ; +0x0, 0x14019c520\nsub     rsp, 20h                                                       ; +0x2, 0x14019c522\nmov     rbx, rcx                                                       ; +0x6, 0x14019c526\ncall    GameObject__determineSlopeDirection                            ; +0x9, 0x14019c529\nmovsxd  rax, dword ptr [rbx+444h]                                      ; +0xe, 0x14019c52e\ncmp     eax, 7; switch 8 cases                                         ; +0x15, 0x14019c535\nja      short def_14019C54B; jumptable 000000014019C54B default case, cases 0,1 ; +0x18, 0x14019c538\nlea     rdx, cs:140000000h                                             ; +0x1a, 0x14019c53a\nmov     ecx, ds:(jpt_14019C54B - 140000000h)[rdx+rax*4]                ; +0x21, 0x14019c541\nadd     rcx, rdx                                                       ; +0x28, 0x14019c548\njmp     rcx; switch jump                                               ; +0x2b, 0x14019c54b\nmov     eax, 3; jumptable 000000014019C54B cases 2,3                   ; +0x2d, 0x14019c54d\nadd     rsp, 20h                                                       ; +0x32, 0x14019c552\npop     rbx                                                            ; +0x36, 0x14019c556\nretn                                                                   ; +0x37, 0x14019c557\nmov     eax, 1; jumptable 000000014019C54B cases 5,6                   ; +0x38, 0x14019c558\nadd     rsp, 20h                                                       ; +0x3d, 0x14019c55d\npop     rbx                                                            ; +0x41, 0x14019c561\nretn                                                                   ; +0x42, 0x14019c562\nmov     eax, 2; jumptable 000000014019C54B cases 4,7                   ; +0x43, 0x14019c563\nadd     rsp, 20h                                                       ; +0x48, 0x14019c568\npop     rbx                                                            ; +0x4c, 0x14019c56c\nretn                                                                   ; +0x4d, 0x14019c56d\nmov     eax, 4; jumptable 000000014019C54B default case, cases 0,1     ; +0x4e, 0x14019c56e\nadd     rsp, 20h                                                       ; +0x53, 0x14019c573\npop     rbx                                                            ; +0x57, 0x14019c577\nretn                                                                   ; +0x58, 0x14019c578\nalign 4                                                                ; +0x59, 0x14019c579\ndd offset def_14019C54B - 140000000h; jump table for switch statement  ; +0x5c, 0x14019c57c", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1402dc1ed", "LevelEditorLayer::updateGameObjects @ 0x1402dc1fa", "LevelTools::sortChannelOrderObjects @ 0x14032d740", "<???> @ 0x1406cbd78"], "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"}