	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psh_compute_dir
_psh_compute_dir:                       ## @psh_compute_dir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	_PSH_DIR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_FT_ABS
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_FT_ABS
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%ebx, %ecx
	jge	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	jns	LBB0_2
## %bb.3:
	movq	_PSH_DIR_LEFT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	shll	$2, %ebx
	leal	(%rbx,%rbx,2), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_9
## %bb.5:
	testl	%r14d, %r14d
	jns	LBB0_6
## %bb.7:
	movq	_PSH_DIR_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_PSH_DIR_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_PSH_DIR_UP@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSH_DIR_NONE,4,2               ## @PSH_DIR_NONE
	.comm	_PSH_DIR_RIGHT,4,2              ## @PSH_DIR_RIGHT
	.comm	_PSH_DIR_LEFT,4,2               ## @PSH_DIR_LEFT
	.comm	_PSH_DIR_UP,4,2                 ## @PSH_DIR_UP
	.comm	_PSH_DIR_DOWN,4,2               ## @PSH_DIR_DOWN
	.no_dead_strip	_psh_compute_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psh_compute_dir
_psh_compute_dir:                       ; @psh_compute_dir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PSH_DIR_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSH_DIR_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_FT_ABS
	mov	x22, x0
	mov	x0, x20
	bl	_FT_ABS
	add	w8, w0, w0, lsl #1
	lsl	w8, w8, #2
	cmp	w8, w22
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PSH_DIR_RIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSH_DIR_RIGHT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PSH_DIR_LEFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PSH_DIR_LEFT@GOTPAGEOFF]
	cmp	w21, #0
	b	LBB0_4
LBB0_2:
	add	w8, w22, w22, lsl #1
	lsl	w8, w8, #2
	cmp	w8, w0
	b.ge	LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _PSH_DIR_UP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSH_DIR_UP@GOTPAGEOFF]
Lloh9:
	adrp	x9, _PSH_DIR_DOWN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PSH_DIR_DOWN@GOTPAGEOFF]
	cmp	w20, #0
LBB0_4:
	csel	x8, x9, x8, lt
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PSH_DIR_NONE,4,2               ; @PSH_DIR_NONE
	.comm	_PSH_DIR_RIGHT,4,2              ; @PSH_DIR_RIGHT
	.comm	_PSH_DIR_LEFT,4,2               ; @PSH_DIR_LEFT
	.comm	_PSH_DIR_UP,4,2                 ; @PSH_DIR_UP
	.comm	_PSH_DIR_DOWN,4,2               ; @PSH_DIR_DOWN
	.no_dead_strip	_psh_compute_dir
.subsections_via_symbols
