	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function which_direction
_which_direction:                       ## @which_direction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_LEFT_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RIGHT_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DIR_UP@GOTPCREL(%rip), %rdx
	cmpl	%edi, %ecx
	jne	LBB0_2
## %bb.1:
	cmpl	%esi, %ebx
	je	LBB0_20
LBB0_2:
	cmpl	%esi, %ecx
	jne	LBB0_4
## %bb.3:
	cmpl	%edi, %ebx
	je	LBB0_20
LBB0_4:
	movq	_BOTTOM_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_TOP_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	cmpl	%edi, %r8d
	jne	LBB0_6
## %bb.5:
	cmpl	%esi, %r9d
	jne	LBB0_20
LBB0_6:
	cmpl	%esi, %r8d
	jne	LBB0_8
## %bb.7:
	cmpl	%edi, %r9d
	jne	LBB0_20
LBB0_8:
	movq	_DIR_DOWN@GOTPCREL(%rip), %rdx
	cmpl	%edi, %r9d
	jne	LBB0_10
## %bb.9:
	cmpl	%esi, %r8d
	jne	LBB0_20
LBB0_10:
	cmpl	%esi, %r9d
	jne	LBB0_12
## %bb.11:
	cmpl	%edi, %r8d
	jne	LBB0_20
LBB0_12:
	cmpl	%edi, %ebx
	sete	%r10b
	cmpl	%esi, %ebx
	sete	%dl
	cmpl	%edi, %ecx
	setne	%al
	orb	%dl, %al
	cmpl	%esi, %ecx
	setne	%r11b
	movq	_DIR_LEFT@GOTPCREL(%rip), %rdx
	cmpb	$1, %al
	jne	LBB0_20
## %bb.13:
	orb	%r10b, %r11b
	je	LBB0_20
## %bb.14:
	movl	%r8d, %eax
	xorl	%edi, %eax
	xorl	%esi, %r8d
	movl	%r9d, %edx
	xorl	%edi, %edx
	xorl	%esi, %r9d
	cmpl	%esi, %ecx
	sete	%r10b
	orl	%eax, %r9d
	sete	%r11b
	cmpl	%edi, %ebx
	setne	%r9b
	orl	%r8d, %edx
	movq	_DIR_RIGHT@GOTPCREL(%rip), %rdx
	je	LBB0_20
## %bb.15:
	testb	%r11b, %r11b
	jne	LBB0_20
## %bb.16:
	orb	%r10b, %r9b
	je	LBB0_20
## %bb.17:
	movq	_NO_DIR@GOTPCREL(%rip), %r8
	movq	%r8, %rdx
	cmpl	%edi, %ecx
	je	LBB0_19
## %bb.18:
	movq	_DIR_RIGHT@GOTPCREL(%rip), %rdx
LBB0_19:
	cmpl	%esi, %ebx
	cmovneq	%r8, %rdx
LBB0_20:
	movl	(%rdx), %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEFT_EDGE,4,2                  ## @LEFT_EDGE
	.comm	_RIGHT_EDGE,4,2                 ## @RIGHT_EDGE
	.comm	_BOTTOM_EDGE,4,2                ## @BOTTOM_EDGE
	.comm	_TOP_EDGE,4,2                   ## @TOP_EDGE
	.comm	_DIR_UP,4,2                     ## @DIR_UP
	.comm	_DIR_DOWN,4,2                   ## @DIR_DOWN
	.comm	_DIR_LEFT,4,2                   ## @DIR_LEFT
	.comm	_DIR_RIGHT,4,2                  ## @DIR_RIGHT
	.comm	_NO_DIR,4,2                     ## @NO_DIR
	.no_dead_strip	_which_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function which_direction
_which_direction:                       ; @which_direction
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _LEFT_EDGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEFT_EDGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RIGHT_EDGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RIGHT_EDGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w1, #0, eq
	b.eq	LBB0_8
; %bb.1:
	cmp	w8, w1
	ccmp	w9, w0, #0, eq
	b.eq	LBB0_8
; %bb.2:
Lloh6:
	adrp	x10, _BOTTOM_EDGE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BOTTOM_EDGE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _TOP_EDGE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TOP_EDGE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w10, w0
	ccmp	w11, w1, #4, eq
	b.ne	LBB0_8
; %bb.3:
	cmp	w10, w1
	ccmp	w11, w0, #4, eq
	b.ne	LBB0_8
; %bb.4:
	cmp	w11, w0
	ccmp	w10, w1, #4, eq
	b.ne	LBB0_9
; %bb.5:
	cmp	w11, w1
	ccmp	w10, w0, #4, eq
	b.ne	LBB0_9
; %bb.6:
	cmp	w8, w1
	ccmp	w9, w0, #4, eq
	cset	w12, eq
	cmp	w9, w1
	ccmp	w8, w0, #0, ne
	ccmp	w12, #0, #4, ne
	b.ne	LBB0_10
; %bb.7:
Lloh12:
	adrp	x10, _DIR_LEFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DIR_LEFT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x10]
	ret
LBB0_8:
Lloh15:
	adrp	x10, _DIR_UP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DIR_UP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x10]
	ret
LBB0_9:
Lloh18:
	adrp	x10, _DIR_DOWN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DIR_DOWN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x10]
	ret
LBB0_10:
	cmp	w11, w1
	ccmp	w10, w0, #0, eq
	cset	w12, eq
	cmp	w9, w0
	ccmp	w8, w1, #4, eq
	cset	w13, eq
	cmp	w10, w1
	ccmp	w11, w0, #0, eq
Lloh21:
	adrp	x10, _DIR_RIGHT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DIR_RIGHT@GOTPAGEOFF]
	b.eq	LBB0_14
; %bb.11:
	cbnz	w12, LBB0_14
; %bb.12:
	cbz	w13, LBB0_14
; %bb.13:
	cmp	w8, w0
	ccmp	w9, w1, #0, ne
Lloh23:
	adrp	x8, _NO_DIR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NO_DIR@GOTPAGEOFF]
	csel	x10, x8, x10, ne
LBB0_14:
	ldr	w0, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LEFT_EDGE,4,2                  ; @LEFT_EDGE
	.comm	_RIGHT_EDGE,4,2                 ; @RIGHT_EDGE
	.comm	_BOTTOM_EDGE,4,2                ; @BOTTOM_EDGE
	.comm	_TOP_EDGE,4,2                   ; @TOP_EDGE
	.comm	_DIR_UP,4,2                     ; @DIR_UP
	.comm	_DIR_DOWN,4,2                   ; @DIR_DOWN
	.comm	_DIR_LEFT,4,2                   ; @DIR_LEFT
	.comm	_DIR_RIGHT,4,2                  ; @DIR_RIGHT
	.comm	_NO_DIR,4,2                     ; @NO_DIR
	.no_dead_strip	_which_direction
.subsections_via_symbols
