	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ps_hints_apply                 ## -- Begin function ps_hints_apply
	.p2align	4, 0x90
_ps_hints_apply:                        ## @ps_hints_apply
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rsi)
	je	LBB0_2
## %bb.3:
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%edi, %edx
	leaq	-112(%rbp), %rdi
	movq	%r12, %rcx
	callq	_psh_glyph_init
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movq	-104(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rsi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_FT_MulFix
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FT_PIX_ROUND
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r15
	cmpq	%rax, %r14
	je	LBB0_9
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_FT_MulDiv
	movq	%rax, %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%r14, %r15
	jge	LBB0_8
## %bb.7:
	movabsq	$6640827866535438581, %rdx      ## imm = 0x5C28F5C28F5C28F5
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rax
	imulq	%rdx
	movq	%rdx, %rsi
	subq	%rdi, %rsi
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$5, %rsi
	addq	%rax, %rsi
	addq	%rdi, %rsi
LBB0_8:
	movq	-104(%rbp), %rdi
	movq	%rcx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_psh_globals_set_scale
LBB0_9:
	movq	_FT_RENDER_MODE_MONO@GOTPCREL(%rip), %r14
	cmpq	%rbx, (%r14)
	sete	%al
	movq	_FT_RENDER_MODE_LCD@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, -112(%rbp)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_FT_BOOL
	cmpq	%rbx, (%r14)
	sete	%cl
	movq	_FT_RENDER_MODE_LCD_V@GOTPCREL(%rip), %rdx
	cmpq	%rbx, (%rdx)
	movq	%rax, -72(%rbp)
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_FT_BOOL
	movq	%rax, -80(%rbp)
	movq	_FT_RENDER_MODE_LIGHT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_FT_BOOL
	movq	%rax, -88(%rbp)
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psh_glyph_load_points
	movq	%rbx, %rdi
	callq	_psh_glyph_compute_extrema
	movq	-104(%rbp), %rsi
	movq	-96(%rbp), %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_psh_hint_table_align_hints
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psh_glyph_find_strong_points
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psh_glyph_interpolate_strong_points
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psh_glyph_interpolate_normal_points
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psh_glyph_interpolate_other_points
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psh_glyph_save_points
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	-104(%rbp), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_psh_globals_set_scale
LBB0_11:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psh_glyph_load_points
	movq	%rbx, %rdi
	callq	_psh_glyph_compute_extrema
	movq	-104(%rbp), %rsi
	movq	-96(%rbp), %rdi
	addq	$4, %rdi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_psh_hint_table_align_hints
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psh_glyph_find_strong_points
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_psh_glyph_find_blue_points
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psh_glyph_interpolate_strong_points
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psh_glyph_interpolate_normal_points
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psh_glyph_interpolate_other_points
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psh_glyph_save_points
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	-104(%rbp), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_psh_globals_set_scale
LBB0_13:
	leaq	-112(%rbp), %rdi
	callq	_psh_glyph_done
	jmp	LBB0_14
LBB0_2:
	movq	_FT_Err_Ok@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_14:
	movq	%r13, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FT_Err_Ok,8,3                  ## @FT_Err_Ok
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FT_RENDER_MODE_MONO,8,3        ## @FT_RENDER_MODE_MONO
	.comm	_FT_RENDER_MODE_LCD,8,3         ## @FT_RENDER_MODE_LCD
	.comm	_FT_RENDER_MODE_LCD_V,8,3       ## @FT_RENDER_MODE_LCD_V
	.comm	_FT_RENDER_MODE_LIGHT,8,3       ## @FT_RENDER_MODE_LIGHT
	.comm	_ps_debug_glyph,8,3             ## @ps_debug_glyph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ps_hints_apply                 ; -- Begin function ps_hints_apply
	.p2align	2
_ps_hints_apply:                        ; @ps_hints_apply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x1]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x23, x3
	mov	x22, x2
	mov	x2, x0
	mov	x0, sp
	mov	x3, x22
	bl	_psh_glyph_init
	mov	x19, x0
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldp	x20, x21, [x8]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	ldr	x8, [x22]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FT_MulFix
	mov	x24, x0
	bl	_FT_PIX_ROUND
	cmp	x0, #0
	ccmp	x24, x0, #4, ne
	b.eq	LBB0_5
; %bb.4:
	mov	x25, x0
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_FT_MulDiv
	mov	x2, x0
	mov	x8, #10485
	movk	x8, #36700, lsl #16
	movk	x8, #62914, lsl #32
	movk	x8, #23592, lsl #48
	smulh	x8, x20, x8
	sub	x8, x8, x20
	asr	x9, x8, #5
	add	x8, x9, x8, lsr #63
	add	x8, x8, x20
	cmp	x25, x24
	csel	x1, x20, x8, ge
	ldr	x0, [sp, #8]
	mov	w3, #0
	mov	w4, #0
	bl	_psh_globals_set_scale
LBB0_5:
	movi.2s	v0, #1
	str	d0, [sp]
Lloh6:
	adrp	x24, _FT_RENDER_MODE_MONO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _FT_RENDER_MODE_MONO@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x23
Lloh8:
	adrp	x8, _FT_RENDER_MODE_LCD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FT_RENDER_MODE_LCD@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ccmp	x8, x23, #4, ne
	cset	w0, eq
	bl	_FT_BOOL
	str	x0, [sp, #40]
	ldr	x8, [x24]
	cmp	x8, x23
Lloh11:
	adrp	x8, _FT_RENDER_MODE_LCD_V@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FT_RENDER_MODE_LCD_V@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ccmp	x8, x23, #4, ne
	cset	w0, eq
	bl	_FT_BOOL
	str	x0, [sp, #32]
Lloh14:
	adrp	x8, _FT_RENDER_MODE_LIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FT_RENDER_MODE_LIGHT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x23
	cset	w0, ne
	bl	_FT_BOOL
	str	x0, [sp, #24]
	mov	x0, sp
	mov	w1, #0
	bl	_psh_glyph_load_points
	mov	x0, sp
	bl	_psh_glyph_compute_extrema
	ldp	x1, x0, [sp, #8]
	mov	x3, sp
	mov	w2, #0
	bl	_psh_hint_table_align_hints
	mov	x0, sp
	mov	w1, #0
	bl	_psh_glyph_find_strong_points
	mov	x0, sp
	mov	w1, #0
	bl	_psh_glyph_interpolate_strong_points
	mov	x0, sp
	mov	w1, #0
	bl	_psh_glyph_interpolate_normal_points
	mov	x0, sp
	mov	w1, #0
	bl	_psh_glyph_interpolate_other_points
	mov	x0, sp
	mov	w1, #0
	bl	_psh_glyph_save_points
	cbz	x26, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	bl	_psh_globals_set_scale
LBB0_7:
	mov	x0, sp
	mov	w1, #1
	bl	_psh_glyph_load_points
	mov	x0, sp
	bl	_psh_glyph_compute_extrema
	ldp	x1, x8, [sp, #8]
	add	x0, x8, #4
	mov	x3, sp
	mov	w2, #1
	bl	_psh_hint_table_align_hints
	mov	x0, sp
	mov	w1, #1
	bl	_psh_glyph_find_strong_points
	mov	x1, sp
	mov	x0, x22
	bl	_psh_glyph_find_blue_points
	mov	x0, sp
	mov	w1, #1
	bl	_psh_glyph_interpolate_strong_points
	mov	x0, sp
	mov	w1, #1
	bl	_psh_glyph_interpolate_normal_points
	mov	x0, sp
	mov	w1, #1
	bl	_psh_glyph_interpolate_other_points
	mov	x0, sp
	mov	w1, #1
	bl	_psh_glyph_save_points
	cbz	x26, LBB0_9
; %bb.8:
	ldr	x0, [sp, #8]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	bl	_psh_globals_set_scale
LBB0_9:
	mov	x0, sp
	bl	_psh_glyph_done
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _FT_Err_Ok@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FT_Err_Ok@GOTPAGEOFF]
Lloh19:
	ldr	x19, [x8]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FT_Err_Ok,8,3                  ; @FT_Err_Ok
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FT_RENDER_MODE_MONO,8,3        ; @FT_RENDER_MODE_MONO
	.comm	_FT_RENDER_MODE_LCD,8,3         ; @FT_RENDER_MODE_LCD
	.comm	_FT_RENDER_MODE_LCD_V,8,3       ; @FT_RENDER_MODE_LCD_V
	.comm	_FT_RENDER_MODE_LIGHT,8,3       ; @FT_RENDER_MODE_LIGHT
	.comm	_ps_debug_glyph,8,3             ; @ps_debug_glyph
.subsections_via_symbols
