	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_color_buffer_with_masking
_clear_color_buffer_with_masking:       ## @clear_color_buffer_with_masking
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 56(%rdi)
	movq	48(%rdi), %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rdx
	movq	8(%rax), %rbx
	movq	16(%rax), %rcx
	movq	%rbx, %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	subq	%rbx, %rcx
	incq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %r13
	subq	%rdx, %r13
	incq	%r13
	jmp	LBB0_3
LBB0_2:
	movq	32(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
LBB0_3:
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %r15
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	cmpq	$0, 16(%r15)
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	je	LBB0_9
## %bb.4:
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_24
## %bb.5:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	imull	(%rax), %ecx
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	imull	4(%rax), %edx
	movl	%edx, -112(%rbp)                ## 4-byte Spill
	movl	8(%r15), %ecx
	imull	8(%rax), %ecx
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	12(%r15), %ecx
	imull	12(%rax), %ecx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-128(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	decq	-64(%rbp)                       ## 8-byte Folded Spill
	je	LBB0_24
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	-120(%rbp), %esi                ## 4-byte Reload
	movq	%r13, %rdx
	callq	_MEMSET
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	-112(%rbp), %esi                ## 4-byte Reload
	movq	%r13, %rdx
	callq	_MEMSET
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-104(%rbp), %esi                ## 4-byte Reload
	movq	%r13, %rdx
	callq	_MEMSET
	movq	%r14, %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_MEMSET
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rax
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_gl_mask_color_span
	addq	$8, %rsp
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r14, %r9
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	pushq	$0
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	*16(%r15)
	addq	$32, %rsp
	movq	_ALPHABUF_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	xorl	%r9d, %r9d
	callq	_gl_write_alpha_span
	jmp	LBB0_8
LBB0_9:
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_MEMSET
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_24
## %bb.10:
	leaq	-8(%r13), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	shrq	$3, %rax
	incq	%rax
	movq	%r13, %rcx
	andq	$-8, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%eax, %ecx
	andl	$7, %ecx
	andq	$-8, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	addq	$16, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	shlq	$5, %rsi
	xorl	%eax, %eax
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-128(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_gl_mask_index_span
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	-136(%rbp), %r9                 ## 8-byte Reload
	callq	*8(%r15)
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	incq	%r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_24
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	jle	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %eax
	cmpq	$8, %r13
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	cmpq	$56, -112(%rbp)                 ## 8-byte Folded Reload
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, (%rbx,%rcx,4)
	movdqa	%xmm0, 16(%rbx,%rcx,4)
	movdqa	%xmm0, 32(%rbx,%rcx,4)
	movdqa	%xmm0, 48(%rbx,%rcx,4)
	movdqa	%xmm0, 64(%rbx,%rcx,4)
	movdqa	%xmm0, 80(%rbx,%rcx,4)
	movdqa	%xmm0, 96(%rbx,%rcx,4)
	movdqa	%xmm0, 112(%rbx,%rcx,4)
	movdqa	%xmm0, 128(%rbx,%rcx,4)
	movdqa	%xmm0, 144(%rbx,%rcx,4)
	movdqa	%xmm0, 160(%rbx,%rcx,4)
	movdqa	%xmm0, 176(%rbx,%rcx,4)
	movdqa	%xmm0, 192(%rbx,%rcx,4)
	movdqa	%xmm0, 208(%rbx,%rcx,4)
	movdqa	%xmm0, 224(%rbx,%rcx,4)
	movdqa	%xmm0, 240(%rbx,%rcx,4)
	addq	$64, %rcx
	addq	$-8, %rdx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm0, -16(%rcx,%rdx)
	movdqa	%xmm0, (%rcx,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rcx
	cmpq	%rdx, %r13
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rbx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r13
	jne	LBB0_22
	jmp	LBB0_23
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_ALPHABUF_BIT,4,2               ## @ALPHABUF_BIT
	.no_dead_strip	_clear_color_buffer_with_masking
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_color_buffer_with_masking
_clear_color_buffer_with_masking:       ; @clear_color_buffer_with_masking
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x8, x9, [x0, #48]
	cbz	x9, LBB0_2
; %bb.1:
	ldp	x20, x21, [x8]
	ldp	x9, x8, [x8, #16]
	sub	x9, x9, x21
	add	x27, x9, #1
	sub	x8, x8, x20
	add	x22, x8, #1
	b	LBB0_3
LBB0_2:
	mov	x21, #0
	mov	x20, #0
	ldp	x27, x22, [x8, #32]
LBB0_3:
	ldr	x12, [x19, #40]
	ldr	x14, [x12, #16]
Lloh3:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x23, x9, x13
	mov	sp, x23
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x13
	mov	sp, x24
	cbz	x14, LBB0_9
; %bb.4:
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x13
	mov	sp, x25
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x26, x8, x13
	mov	sp, x26
	cmp	x27, #1
	b.lt	LBB0_20
; %bb.5:
	ldr	x8, [x19, #24]
	ldp	w9, w10, [x8]
	ldp	w11, w13, [x12]
	mul	w9, w11, w9
	stur	w9, [x29, #-92]                 ; 4-byte Folded Spill
	mul	w9, w13, w10
	stur	w9, [x29, #-96]                 ; 4-byte Folded Spill
	ldp	w9, w8, [x8, #8]
	ldp	w10, w11, [x12, #8]
	mul	w9, w10, w9
	stur	w9, [x29, #-100]                ; 4-byte Folded Spill
	mul	w28, w11, w8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	subs	x27, x27, #1
	b.eq	LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	ldur	w1, [x29, #-92]                 ; 4-byte Folded Reload
	mov	x2, x22
	bl	_MEMSET
	mov	x0, x24
	ldur	w1, [x29, #-96]                 ; 4-byte Folded Reload
	mov	x2, x22
	bl	_MEMSET
	mov	x0, x25
	ldur	w1, [x29, #-100]                ; 4-byte Folded Reload
	mov	x2, x22
	bl	_MEMSET
	mov	x0, x26
	mov	x1, x28
	mov	x2, x22
	bl	_MEMSET
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_gl_mask_color_span
	ldr	x8, [x19, #16]
	str	xzr, [sp, #-16]!
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	blr	x8
	add	sp, sp, #16
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _ALPHABUF_BIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ALPHABUF_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x26
	mov	x5, #0
	bl	_gl_write_alpha_span
	b	LBB0_6
LBB0_9:
	mov	x0, x24
	mov	w1, #1
	mov	x2, x22
	bl	_MEMSET
	cmp	x27, #1
	b.lt	LBB0_20
; %bb.10:
	mov	x25, #0
	and	x26, x22, #0xfffffffffffffff0
	add	x28, x23, #32
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	bl	_gl_mask_index_span
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	mov	x5, x24
	blr	x8
	add	x25, x25, #1
	add	x21, x21, #1
	cmp	x25, x27
	b.eq	LBB0_20
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	cmp	x22, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19, #32]
	cmp	x22, #16
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x10, #0
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	dup.4s	v0, w8
	mov	x9, x26
	mov	x10, x28
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x10, #-32]
	stp	q0, q0, [x10], #64
	subs	x9, x9, #16
	b.ne	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x10, x26
	cmp	x22, x26
	b.eq	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x9, x22, x10
	add	x10, x23, x10, lsl #2
LBB0_19:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w8, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_19
	b	LBB0_11
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_ALPHABUF_BIT,4,2               ; @ALPHABUF_BIT
	.no_dead_strip	_clear_color_buffer_with_masking
.subsections_via_symbols
