	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_direction_from_orientation_position ## -- Begin function direction_from_orientation_position
	.p2align	4, 0x90
_direction_from_orientation_position:   ## @direction_from_orientation_position
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HORIZ@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	movq	_D_UP@GOTPCREL(%rip), %rax
	cmoveq	_D_LEFT@GOTPCREL(%rip), %rax
	movq	_D_DOWN@GOTPCREL(%rip), %rcx
	cmoveq	_D_RIGHT@GOTPCREL(%rip), %rcx
	movq	_BEFORE@GOTPCREL(%rip), %rdx
	cmpq	%rsi, (%rdx)
	cmoveq	%rax, %rcx
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HORIZ,8,3                      ## @HORIZ
	.comm	_BEFORE,8,3                     ## @BEFORE
	.comm	_D_LEFT,4,2                     ## @D_LEFT
	.comm	_D_RIGHT,4,2                    ## @D_RIGHT
	.comm	_D_UP,4,2                       ## @D_UP
	.comm	_D_DOWN,4,2                     ## @D_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_direction_from_orientation_position ; -- Begin function direction_from_orientation_position
	.p2align	2
_direction_from_orientation_position:   ; @direction_from_orientation_position
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HORIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HORIZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _BEFORE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BEFORE@GOTPAGEOFF]
Lloh5:
	adrp	x10, _D_LEFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _D_LEFT@GOTPAGEOFF]
Lloh7:
	adrp	x11, _D_UP@GOTPAGE
Lloh8:
	ldr	x11, [x11, _D_UP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x12, _D_RIGHT@GOTPAGE
Lloh11:
	ldr	x12, [x12, _D_RIGHT@GOTPAGEOFF]
Lloh12:
	adrp	x13, _D_DOWN@GOTPAGE
Lloh13:
	ldr	x13, [x13, _D_DOWN@GOTPAGEOFF]
	cmp	x8, x0
	csel	x8, x10, x11, eq
	csel	x10, x12, x13, eq
	cmp	x9, x1
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HORIZ,8,3                      ; @HORIZ
	.comm	_BEFORE,8,3                     ; @BEFORE
	.comm	_D_LEFT,4,2                     ; @D_LEFT
	.comm	_D_RIGHT,4,2                    ; @D_RIGHT
	.comm	_D_UP,4,2                       ; @D_UP
	.comm	_D_DOWN,4,2                     ; @D_DOWN
.subsections_via_symbols
