	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gray_raster_render
_gray_raster_render:                    ## @gray_raster_render
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	_FT_RASTER_FLAG_AA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_4
## %bb.5:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	movq	(%rdi), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_34
## %bb.8:
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.9:
	movq	16(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.10:
	cmpl	$0, 24(%rdi)
	je	LBB0_6
## %bb.11:
	decl	%ecx
	movq	(%rdx,%rcx,8), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.12:
	movq	40(%rbx), %r12
	movdqu	(%rdi), %xmm0
	movups	16(%rdi), %xmm1
	movq	_ras@GOTPCREL(%rip), %r15
	movups	%xmm1, 80(%r15)
	movdqu	%xmm0, 64(%r15)
	movq	_FT_RASTER_FLAG_DIRECT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_15
## %bb.13:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.14:
	movq	%rax, 40(%r15)
	movq	24(%rbx), %rcx
LBB0_20:
	movq	%rcx, 32(%r15)
	leaq	-64(%rbp), %rsi
	callq	_FT_Outline_Get_CBox
	movl	-64(%rbp), %eax
	cmpl	$-16777216, %eax                ## imm = 0xFF000000
	jl	LBB0_24
## %bb.21:
	movl	-60(%rbp), %ecx
	cmpl	$16777216, %ecx                 ## imm = 0x1000000
	jg	LBB0_24
## %bb.22:
	movl	-56(%rbp), %edx
	cmpl	$-16777216, %edx                ## imm = 0xFF000000
	jl	LBB0_24
## %bb.23:
	movl	-52(%rbp), %esi
	cmpl	$16777217, %esi                 ## imm = 0x1000001
	jge	LBB0_24
## %bb.25:
	addl	$63, %ecx
	movd	%eax, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pinsrd	$2, %edx, %xmm0
	addl	$63, %esi
	pinsrd	$3, %esi, %xmm0
	psrad	$6, %xmm0
	movdqa	%xmm0, -64(%rbp)
	movl	(%rbx), %eax
	testl	%eax, (%r13)
	je	LBB0_26
## %bb.27:
	movq	_FT_RASTER_FLAG_CLIP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.29:
	movslq	4(%rbx), %rsi
	movl	8(%rbx), %r12d
	movl	16(%rbx), %r13d
	movslq	12(%rbx), %rbx
	jmp	LBB0_30
LBB0_4:
	movq	_Invalid_Mode@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_Invalid_Outline@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	testq	%r12, %r12
	je	LBB0_1
## %bb.16:
	cmpq	$0, 16(%r12)
	je	LBB0_34
## %bb.17:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_34
## %bb.18:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.19:
	movq	8(%r12), %rdx
	decl	%ecx
	movl	%edx, %esi
	imull	%ecx, %esi
	xorl	%ecx, %ecx
	testq	%rdx, %rdx
	cmovsq	%rcx, %rsi
	addq	%rax, %rsi
	movq	%rsi, 56(%r15)
	movq	%rdx, 48(%r15)
	movq	$0, 40(%r15)
	jmp	LBB0_20
LBB0_1:
	movq	_Invalid_Argument@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FT_THROW                       ## TAILCALL
LBB0_24:
	movq	_Invalid_Outline@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FT_THROW
	jmp	LBB0_33
LBB0_26:
	movl	(%r12), %r13d
	movl	16(%r12), %r12d
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_30
LBB0_28:
	movq	$-32768, %rbx                   ## imm = 0x8000
	movl	$32767, %r13d                   ## imm = 0x7FFF
	movl	$32767, %r12d                   ## imm = 0x7FFF
	movq	$-32768, %rsi                   ## imm = 0x8000
LBB0_30:
	movd	%xmm0, %eax
	movslq	%eax, %rdi
	callq	_FT_MAX
	movq	%rax, (%r15)
	movslq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_FT_MAX
	movq	%rax, 8(%r15)
	movslq	-60(%rbp), %rdi
	movslq	%r12d, %rsi
	callq	_FT_MIN
	movq	%rax, 16(%r15)
	movslq	-52(%rbp), %rdi
	movslq	%r13d, %rsi
	callq	_FT_MIN
	movq	%rax, 24(%r15)
	movq	16(%r15), %rcx
	cmpq	(%r15), %rcx
	jle	LBB0_34
## %bb.31:
	cmpq	%rax, 8(%r15)
	jge	LBB0_34
## %bb.32:
	movq	_RAS_VAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gray_convert_glyph
LBB0_33:
	movl	%eax, %r14d
LBB0_34:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Invalid_Argument,4,2           ## @Invalid_Argument
	.comm	_FT_RASTER_FLAG_AA,4,2          ## @FT_RASTER_FLAG_AA
	.comm	_Invalid_Mode,4,2               ## @Invalid_Mode
	.comm	_Invalid_Outline,4,2            ## @Invalid_Outline
	.comm	_ras,96,3                       ## @ras
	.comm	_FT_RASTER_FLAG_DIRECT,4,2      ## @FT_RASTER_FLAG_DIRECT
	.comm	_FT_RASTER_FLAG_CLIP,4,2        ## @FT_RASTER_FLAG_CLIP
	.comm	_RAS_VAR,4,2                    ## @RAS_VAR
	.no_dead_strip	_gray_raster_render
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gray_raster_render
_gray_raster_render:                    ; @gray_raster_render
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	w0, LBB0_25
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _FT_RASTER_FLAG_AA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FT_RASTER_FLAG_AA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.2:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_19
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_27
; %bb.4:
	ldr	w9, [x0, #8]
	subs	w9, w9, #1
	b.lt	LBB0_27
; %bb.5:
	ldr	x10, [x0, #16]
	cbz	x10, LBB0_19
; %bb.6:
	ldr	w11, [x0, #24]
	cbz	w11, LBB0_19
; %bb.7:
	ldr	x9, [x10, w9, uxtw #3]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.8:
	ldr	x22, [x19, #40]
	ldp	q0, q1, [x0]
Lloh3:
	adrp	x21, _ras@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ras@GOTPAGEOFF]
	stp	q0, q1, [x21, #64]
	ldr	w8, [x19]
Lloh5:
	adrp	x20, _FT_RASTER_FLAG_DIRECT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _FT_RASTER_FLAG_DIRECT@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_27
; %bb.10:
	str	x8, [x21, #40]
	ldr	x8, [x19, #24]
LBB0_11:
	str	x8, [x21, #32]
	mov	x1, sp
	bl	_FT_Outline_Get_CBox
	ldr	w8, [sp]
	mov	w9, #-16777216
	cmp	w8, w9
	b.lt	LBB0_29
; %bb.12:
	ldr	w9, [sp, #4]
	mov	w10, #16777216
	cmp	w9, w10
	b.gt	LBB0_29
; %bb.13:
	ldr	w10, [sp, #8]
	mov	w11, #-16777216
	cmp	w10, w11
	b.lt	LBB0_29
; %bb.14:
	ldr	w11, [sp, #12]
	mov	w12, #1
	movk	w12, #256, lsl #16
	cmp	w11, w12
	b.ge	LBB0_29
; %bb.15:
	asr	w8, w8, #6
	asr	w10, w10, #6
	add	w9, w9, #63
	asr	w9, w9, #6
	stp	w8, w9, [sp]
	add	w9, w11, #63
	asr	w9, w9, #6
	stp	w10, w9, [sp, #8]
	ldr	w9, [x19]
	ldr	w10, [x20]
	tst	w10, w9
	b.eq	LBB0_30
; %bb.16:
Lloh7:
	adrp	x10, _FT_RASTER_FLAG_CLIP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FT_RASTER_FLAG_CLIP@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_31
; %bb.17:
	ldp	w1, w23, [x19, #4]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	ldp	w20, w19, [x19, #12]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
	b	LBB0_32
LBB0_18:
Lloh10:
	adrp	x8, _Invalid_Mode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Invalid_Mode@GOTPAGEOFF]
	b	LBB0_26
LBB0_19:
Lloh12:
	adrp	x8, _Invalid_Outline@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Invalid_Outline@GOTPAGEOFF]
	b	LBB0_26
LBB0_20:
	cbz	x22, LBB0_25
; %bb.21:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_27
; %bb.22:
	ldr	w10, [x22]
	cbz	w10, LBB0_27
; %bb.23:
	ldr	x9, [x22, #24]
	cbz	x9, LBB0_25
; %bb.24:
	mov	x8, #0
	ldr	x11, [x22, #8]
	sub	w10, w10, #1
	mul	w10, w10, w11
	cmp	x11, #0
	csel	x10, xzr, x10, lt
	add	x9, x10, x9
	stp	x11, x9, [x21, #48]
	str	xzr, [x21, #40]
	b	LBB0_11
LBB0_25:
Lloh14:
	adrp	x8, _Invalid_Argument@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Invalid_Argument@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_FT_THROW
LBB0_27:
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_29:
Lloh16:
	adrp	x8, _Invalid_Outline@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Invalid_Outline@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_FT_THROW
	b	LBB0_28
LBB0_30:
	mov	x20, #0
	mov	x1, #0
	ldr	w23, [x22, #16]
	ldr	w19, [x22]
	b	LBB0_32
LBB0_31:
	mov	x20, #-32768
	mov	w19, #32767
	mov	x23, x19
	mov	x1, #-32768
LBB0_32:
	sxtw	x0, w8
	bl	_FT_MAX
	str	x0, [x21]
	ldrsw	x0, [sp, #8]
	mov	x1, x20
	bl	_FT_MAX
	str	x0, [x21, #8]
	ldrsw	x0, [sp, #4]
	sxtw	x1, w23
	bl	_FT_MIN
	str	x0, [x21, #16]
	ldrsw	x0, [sp, #12]
	sxtw	x1, w19
	bl	_FT_MIN
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21, #24]
	ldr	x9, [x21, #16]
	ldr	x10, [x21]
	cmp	x9, x10
	b.le	LBB0_28
; %bb.33:
	ldr	x9, [x21, #8]
	cmp	x9, x8
	b.ge	LBB0_28
; %bb.34:
Lloh19:
	adrp	x8, _RAS_VAR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RAS_VAR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_gray_convert_glyph
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_Invalid_Argument,4,2           ; @Invalid_Argument
	.comm	_FT_RASTER_FLAG_AA,4,2          ; @FT_RASTER_FLAG_AA
	.comm	_Invalid_Mode,4,2               ; @Invalid_Mode
	.comm	_Invalid_Outline,4,2            ; @Invalid_Outline
	.comm	_ras,96,3                       ; @ras
	.comm	_FT_RASTER_FLAG_DIRECT,4,2      ; @FT_RASTER_FLAG_DIRECT
	.comm	_FT_RASTER_FLAG_CLIP,4,2        ; @FT_RASTER_FLAG_CLIP
	.comm	_RAS_VAR,4,2                    ; @RAS_VAR
	.no_dead_strip	_gray_raster_render
.subsections_via_symbols
