	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_rounded_direction
_get_rounded_direction:                 ## @get_rounded_direction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	movl	%esi, %eax
	negl	%eax
	testl	%edi, %edi
	cmovnsl	%esi, %eax
	movl	%edi, %ecx
	negl	%ecx
	cmovsl	%edi, %ecx
	shll	$16, %eax
	imull	$27146, %ecx, %edx              ## imm = 0x6A0A
	imull	$158218, %ecx, %ecx             ## imm = 0x26A0A
	movl	%ecx, %edi
	negl	%edi
	movl	%edx, %esi
	negl	%esi
	cmpl	%edi, %eax
	jle	LBB0_4
## %bb.2:
	cmpl	%esi, %eax
	jge	LBB0_4
## %bb.3:
	movq	_DIRECTION_45UP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	cmpl	%esi, %eax
	jle	LBB0_7
## %bb.5:
	cmpl	%edx, %eax
	jge	LBB0_7
## %bb.6:
	movq	_DIRECTION_HORIZONTAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	cmpl	%edx, %eax
	jle	LBB0_10
## %bb.8:
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.9:
	movq	_DIRECTION_45DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_DIRECTION_VERTICAL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIRECTION_45UP,4,2             ## @DIRECTION_45UP
	.comm	_DIRECTION_HORIZONTAL,4,2       ## @DIRECTION_HORIZONTAL
	.comm	_DIRECTION_45DOWN,4,2           ## @DIRECTION_45DOWN
	.comm	_DIRECTION_VERTICAL,4,2         ## @DIRECTION_VERTICAL
	.no_dead_strip	_get_rounded_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_rounded_direction
_get_rounded_direction:                 ; @get_rounded_direction
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_6
; %bb.1:
	cmp	w0, #0
	cneg	w9, w1, lt
	cneg	w8, w0, mi
	lsl	w9, w9, #16
	mov	w11, #27146
	mov	w10, #27146
	movk	w10, #2, lsl #16
	mneg	w13, w8, w10
	mneg	w12, w8, w11
	cmp	w9, w13
	ccmp	w9, w12, #0, gt
	b.lt	LBB0_7
; %bb.2:
	mul	w11, w8, w11
	cmp	w9, w12
	ccmp	w9, w11, #0, gt
	b.lt	LBB0_8
; %bb.3:
	cmp	w9, w11
	b.le	LBB0_6
; %bb.4:
	mul	w8, w8, w10
	cmp	w9, w8
	b.ge	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _DIRECTION_45DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIRECTION_45DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh3:
	adrp	x8, _DIRECTION_VERTICAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIRECTION_VERTICAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_7:
Lloh6:
	adrp	x8, _DIRECTION_45UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRECTION_45UP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_8:
Lloh9:
	adrp	x8, _DIRECTION_HORIZONTAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DIRECTION_HORIZONTAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DIRECTION_45UP,4,2             ; @DIRECTION_45UP
	.comm	_DIRECTION_HORIZONTAL,4,2       ; @DIRECTION_HORIZONTAL
	.comm	_DIRECTION_45DOWN,4,2           ; @DIRECTION_45DOWN
	.comm	_DIRECTION_VERTICAL,4,2         ; @DIRECTION_VERTICAL
	.no_dead_strip	_get_rounded_direction
.subsections_via_symbols
