	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function stbtt__rasterize_sorted_edges
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x437f0000                      ## float 255
LCPI0_2:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stbtt__rasterize_sorted_edges:         ## @stbtt__rasterize_sorted_edges
	.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	$632, %rsp                      ## imm = 0x278
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, -636(%rbp)                ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, -600(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -592(%rbp)
	movq	$0, -624(%rbp)
	movl	(%rdi), %edx
	cmpl	$65, %edx
	jl	LBB0_2
## %bb.1:
	leal	4(,%rdx,8), %edi
	callq	_malloc
	movq	%rax, -616(%rbp)                ## 8-byte Spill
	movl	(%r13), %edx
	jmp	LBB0_3
LBB0_2:
	leaq	-576(%rbp), %rax
	movq	%rax, -616(%rbp)                ## 8-byte Spill
LBB0_3:
	movl	4(%r13), %eax
	leal	(%rax,%rbx), %ecx
	cvtsi2ss	%ecx, %xmm0
	addss	LCPI0_0(%rip), %xmm0
	movslq	%r14d, %rcx
	movq	-600(%rbp), %rsi                ## 8-byte Reload
	movss	%xmm0, (%rsi,%rcx,4)
	movq	%rbx, %rcx
	testl	%eax, %eax
	movq	-616(%rbp), %rbx                ## 8-byte Reload
	jle	LBB0_27
## %bb.4:
	movslq	%edx, %rax
	leaq	(%rbx,%rax,4), %r14
	leaq	4(%r14), %rax
	movq	%rax, -656(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-592(%rbp), %r12
	xorl	%eax, %eax
	movq	%r13, -648(%rbp)                ## 8-byte Spill
	movq	%r14, -632(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-664(%rbp), %rcx                ## 8-byte Reload
	incl	%ecx
	movl	-604(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	cmpl	4(%r13), %eax
	jge	LBB0_27
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movl	%eax, -604(%rbp)                ## 4-byte Spill
	movq	%rcx, -664(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
	movss	%xmm0, -580(%rbp)               ## 4-byte Spill
	addss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, -584(%rbp)               ## 4-byte Spill
	shll	$2, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	(%r13), %eax
	leal	4(,%rax,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	testq	%r15, %r15
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-624(%rbp), %rbx
	movq	-600(%rbp), %rcx                ## 8-byte Reload
	movss	-580(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-584(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	32(%r15), %rdi
	callq	_retro_assert
	movq	$0, 32(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_stbtt__hheap_free
	movss	-584(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-580(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	-600(%rbp), %rcx                ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_7
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	ucomiss	(%r15), %xmm0
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	addq	$8, %r15
	movq	%r15, %rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-624(%rbp), %r15
	ucomiss	(%rcx), %xmm1
	jae	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, -624(%rbp)
	testq	%r15, %r15
	movq	-616(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$1, %cl
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	movq	-600(%rbp), %rcx                ## 8-byte Reload
	movss	-580(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-584(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	(%rcx), %xmm1
	jb	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-636(%rbp), %r13d               ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %r14
	movq	%rcx, %rbx
	movq	%r12, %rdi
	movq	%rcx, %rsi
	movl	%r13d, %edx
	movss	-580(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	16(%rbp), %rcx
	callq	_stbtt__new_active
	movq	%rax, %r15
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	ucomiss	-580(%rbp), %xmm0               ## 4-byte Folded Reload
	setae	%dil
	callq	_assert
	movss	-580(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, 8(%r15)
	leaq	4(%rbx), %rcx
	movss	-584(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	4(%rbx), %xmm1
	jae	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -600(%rbp)                ## 8-byte Spill
	movq	%r15, -624(%rbp)
	movq	-648(%rbp), %r13                ## 8-byte Reload
	movq	-616(%rbp), %rbx                ## 8-byte Reload
	movq	-632(%rbp), %r14                ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	-656(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_stbtt__fill_active_edges_new
	xorl	%ecx, %ecx
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, -584(%rbp)                ## 4-byte Spill
	xorps	%xmm1, %xmm1
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	movl	-604(%rbp), %r12d               ## 4-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-632(%rbp), %rax                ## 8-byte Reload
	addss	(%rax,%rbx,4), %xmm1
	movss	%xmm1, -580(%rbp)               ## 4-byte Spill
	movss	(%r14,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	callq	_fabs
	movl	$255, %ecx
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	%xmm1, %xmm0
	movss	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	-580(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvttss2si	%xmm0, %eax
	cmpl	$255, %eax
	cmovgel	%ecx, %eax
	movslq	16(%r13), %rcx
	movslq	%r12d, %rdx
	imulq	%rcx, %rdx
	addq	8(%r13), %rdx
	movb	%al, (%rbx,%rdx)
	incq	%rbx
	movslq	(%r13), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rbx
	movq	-632(%rbp), %r14                ## 8-byte Reload
	leaq	-592(%rbp), %r12
	movl	-584(%rbp), %ecx                ## 4-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
	testb	%cl, %cl
	jne	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rax), %ecx
	addl	%ecx, 24(%rax)
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_26
LBB0_27:
	leaq	-592(%rbp), %rdi
	movq	16(%rbp), %rsi
	callq	_stbtt__hheap_cleanup
	leaq	-576(%rbp), %rax
	cmpq	%rax, %rbx
	je	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	callq	_free
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	addq	$632, %rsp                      ## imm = 0x278
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stbtt__rasterize_sorted_edges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stbtt__rasterize_sorted_edges
_stbtt__rasterize_sorted_edges:         ; @stbtt__rasterize_sorted_edges
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	sub	sp, sp, #576
	mov	x19, x6
	mov	x21, x4
	mov	x25, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]
	str	wzr, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w8, [x0]
	cmp	w8, #65
	b.lt	LBB0_2
; %bb.1:
	mov	w0, #4
	bfi	w0, w8, #3, #29
	mov	x20, x5
	bl	_malloc
	mov	x5, x20
	mov	x24, x0
	ldr	w8, [x23]
	b	LBB0_3
LBB0_2:
	add	x24, sp, #44
LBB0_3:
	ldr	w9, [x23, #4]
	add	w10, w9, w5
	scvtf	s0, w10
	fmov	s9, #1.00000000
	fadd	s0, s0, s9
	str	s0, [x22, w25, sxtw #2]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.4:
	mov	x27, #0
	mov	w28, #0
	mov	x9, x8
	sxtw	x9, w9
	add	x10, x24, w8, sxtw #2
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	add	x10, x10, #4
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	add	x26, x24, x9, lsl #2
	mov	w25, #1132396544
	fmov	s10, #0.50000000
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w5, w5, #1
	add	w28, w28, #1
	ldr	w9, [x23, #4]
	cmp	w28, w9
	b.ge	LBB0_25
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	scvtf	s8, w5
	lsl	w2, w8, #2
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldr	w8, [x23]
	lsl	w8, w8, #2
	add	w2, w8, #4
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	w1, #0
	bl	_memset
	cbz	x27, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, sp, #32
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x27, #8]
	str	x8, [x20]
	ldr	x0, [x27, #32]
	bl	_retro_assert
	str	xzr, [x27, #32]
	add	x0, sp, #40
	mov	x1, x27
	bl	_stbtt__hheap_free
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x27, [x20]
	cbz	x27, LBB0_12
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x27
	ldr	s0, [x8], #8
	fcmp	s0, s8
	b.ls	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x20, x8
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [sp, #32]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	fadd	s11, s8, s9
	ldr	s0, [x22]
	fcmp	s0, s11
	b.ls	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x27, [sp, #32]
	cbnz	x27, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, #1
	b	LBB0_19
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x27
	add	x0, sp, #40
	mov	x1, x22
	mov	x2, x21
	fmov	s0, s8
	mov	x3, x19
	bl	_stbtt__new_active
	mov	x27, x0
	ldr	s0, [x0]
	fcmp	s0, s8
	cset	w0, ge
	bl	_assert
	str	x20, [x27, #8]
	ldr	s0, [x22, #4]!
	fcmp	s0, s11
	b.ls	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x27, [sp, #32]
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x23]
	mov	x0, x24
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x27
	fmov	s0, s8
	bl	_stbtt__fill_active_edges_new
	mov	w10, #0
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w10, [sp, #24]                  ; 4-byte Folded Spill
	mov	x20, #0
	movi	d8, #0000000000000000
LBB0_21:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x20, #2
	ldr	s0, [x26, x8]
	fadd	s8, s8, s0
	ldr	s0, [x24, x8]
	fadd	s0, s0, s8
	bl	_fabs
	mov	w9, #255
	scvtf	s0, x0
	fmov	s1, w25
	fmadd	s0, s0, s1, s10
	fcvtzs	w8, s0
	cmp	w8, #255
	csel	w8, w8, w9, lt
	ldr	x9, [x23, #8]
	ldrsw	x10, [x23, #16]
	sxtw	x11, w28
	madd	x9, x11, x10, x9
	strb	w8, [x9, x20]
	add	x20, x20, #1
	ldrsw	x8, [x23]
	cmp	x20, x8
	b.lt	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x27
	ldr	w5, [sp, #28]                   ; 4-byte Folded Reload
	tbnz	w10, #0, LBB0_5
LBB0_24:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9, #16]
	ldr	w11, [x9, #24]
	add	w10, w11, w10
	str	w10, [x9, #24]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_24
	b	LBB0_5
LBB0_25:
	add	x0, sp, #40
	mov	x1, x19
	bl	_stbtt__hheap_cleanup
	add	x8, sp, #44
	cmp	x24, x8
	b.eq	LBB0_27
; %bb.26:
	mov	x0, x24
	bl	_free
LBB0_27:
	ldur	x8, [x29, #-128]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	add	sp, sp, #576
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stbtt__rasterize_sorted_edges
.subsections_via_symbols
