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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_position_from_direction        ; -- Begin function position_from_direction
	.p2align	2
_position_from_direction:               ; @position_from_direction
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _D_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _D_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _D_UP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x0
Lloh6:
	adrp	x9, _BEFORE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BEFORE@GOTPAGEOFF]
	ccmp	x8, x0, #4, ne
Lloh8:
	adrp	x8, _AFTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AFTER@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_LEFT,8,3                     ; @D_LEFT
	.comm	_D_UP,8,3                       ; @D_UP
	.comm	_BEFORE,4,2                     ; @BEFORE
	.comm	_AFTER,4,2                      ; @AFTER
.subsections_via_symbols
