{"type": "func", "start": 4301320320, "end": 4301320488, "name": "EditorUI::getSnapAngle", "pseudocode": "// \n// EditorUI::getSnapAngle from 0x10060f080 to 0x10060f128 (168 bytes)\n// \n// 2 xrefs:\n// > EditorUI::transformObjectCall_1 @ 0x10060ee6d\n// > EditorUI::transformObjectCall_1 @ 0x10060eea8\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 12:34:34 +0000\n// \n\nfloat __fastcall EditorUI::getSnapAngle(__int64 a1, __int64 a2, __int64 a3)\n{\n  unsigned int v4; // r15d\n  __int64 v5; // rax\n  float result; // xmm0_4\n\n  if ( !a3 || !(unsigned int)sub_1007FEF90(a3) )\n  {\n    if ( a2 )\n      return LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1440), a2);\n    return -1.0;\n  }\n  if ( !(unsigned int)sub_1007FEF90(a3) )\n    return -1.0;\n  v4 = 0;\n  while ( 1 )\n  {\n    v5 = sub_1007FEFE0(a3, v4);\n    result = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1440), v5);\n    if ( result != -1.0 )\n      break;\n    if ( ++v4 >= (unsigned int)sub_1007FEF90(a3) )\n      return -1.0;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::getSnapAngle from 0x10060f080 to 0x10060f128 (168 bytes)\n; \n; 2 xrefs:\n; > EditorUI::transformObjectCall_1 @ 0x10060ee6d\n; > EditorUI::transformObjectCall_1 @ 0x10060eea8\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 12:34:34 +0000\n; \npush    rbp                                                            ; +0x0, 0x10060f080\nmov     rbp, rsp                                                       ; +0x1, 0x10060f081\npush    r15                                                            ; +0x4, 0x10060f084\npush    r14                                                            ; +0x6, 0x10060f086\npush    rbx                                                            ; +0x8, 0x10060f088\npush    rax                                                            ; +0x9, 0x10060f089\nmov     r15, rsi                                                       ; +0xa, 0x10060f08a\nmov     rbx, rdi                                                       ; +0xd, 0x10060f08d\ntest    rdx, rdx                                                       ; +0x10, 0x10060f090\njz      short loc_10060F0F7                                            ; +0x13, 0x10060f093\nmov     r14, rdx                                                       ; +0x15, 0x10060f095\nmov     rdi, rdx                                                       ; +0x18, 0x10060f098\ncall    sub_1007FEF90                                                  ; +0x1b, 0x10060f09b\ntest    eax, eax                                                       ; +0x20, 0x10060f0a0\njz      short loc_10060F0F7                                            ; +0x22, 0x10060f0a2\nmov     rdi, r14                                                       ; +0x24, 0x10060f0a4\ncall    sub_1007FEF90                                                  ; +0x27, 0x10060f0a7\ntest    eax, eax                                                       ; +0x2c, 0x10060f0ac\njz      short loc_10060F115                                            ; +0x2e, 0x10060f0ae\nxor     r15d, r15d                                                     ; +0x30, 0x10060f0b0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x33, 0x10060f0b3\nmov     rdi, r14                                                       ; +0x40, 0x10060f0c0\nmov     esi, r15d                                                      ; +0x43, 0x10060f0c3\ncall    sub_1007FEFE0                                                  ; +0x46, 0x10060f0c6\nmov     rdi, [rbx+5A0h]                                                ; +0x4b, 0x10060f0cb\nmov     rsi, rax                                                       ; +0x52, 0x10060f0d2\ncall    LevelEditorLayer__rotationForSlopeNearObject                   ; +0x55, 0x10060f0d5\nucomiss xmm0, cs:dword_100A035E0                                       ; +0x5a, 0x10060f0da\njnz     short loc_10060F11D                                            ; +0x61, 0x10060f0e1\njp      short loc_10060F11D                                            ; +0x63, 0x10060f0e3\ninc     r15d                                                           ; +0x65, 0x10060f0e5\nmov     rdi, r14                                                       ; +0x68, 0x10060f0e8\ncall    sub_1007FEF90                                                  ; +0x6b, 0x10060f0eb\ncmp     r15d, eax                                                      ; +0x70, 0x10060f0f0\njb      short loc_10060F0C0                                            ; +0x73, 0x10060f0f3\njmp     short loc_10060F115                                            ; +0x75, 0x10060f0f5\ntest    r15, r15                                                       ; +0x77, 0x10060f0f7\njz      short loc_10060F115                                            ; +0x7a, 0x10060f0fa\nmov     rdi, [rbx+5A0h]                                                ; +0x7c, 0x10060f0fc\nmov     rsi, r15                                                       ; +0x83, 0x10060f103\nadd     rsp, 8                                                         ; +0x86, 0x10060f106\npop     rbx                                                            ; +0x8a, 0x10060f10a\npop     r14                                                            ; +0x8b, 0x10060f10b\npop     r15                                                            ; +0x8d, 0x10060f10d\npop     rbp                                                            ; +0x8f, 0x10060f10f\njmp     LevelEditorLayer__rotationForSlopeNearObject                   ; +0x90, 0x10060f110\nmovss   xmm0, cs:dword_100A035E0                                       ; +0x95, 0x10060f115\nadd     rsp, 8                                                         ; +0x9d, 0x10060f11d\npop     rbx                                                            ; +0xa1, 0x10060f121\npop     r14                                                            ; +0xa2, 0x10060f122\npop     r15                                                            ; +0xa4, 0x10060f124\npop     rbp                                                            ; +0xa6, 0x10060f126\nretn                                                                   ; +0xa7, 0x10060f127", "xrefs": ["EditorUI::transformObjectCall_1 @ 0x10060ee6d", "EditorUI::transformObjectCall_1 @ 0x10060eea8"], "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"}