	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_write_mono_alpha_span       ## -- Begin function gl_write_mono_alpha_span
	.p2align	4, 0x90
_gl_write_mono_alpha_span:              ## @gl_write_mono_alpha_span
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r15
	movl	%edx, %edi
	movq	%rsi, %r14
	movl	%ecx, %esi
	callq	_ALPHA_ADDR
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_33
## %bb.2:
	leaq	-1(%r14), %rdx
	movl	%r14d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_18
## %bb.3:
	xorl	%edx, %edx
LBB0_28:
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.29:
	leaq	(%rbx,%rdx,8), %rdx
	xorl	%esi, %esi
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_33
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%r15, (%rax,%rsi,8)
	jmp	LBB0_32
LBB0_4:
	testq	%r14, %r14
	je	LBB0_33
## %bb.5:
	cmpq	$4, %r14
	jae	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_18:
	andq	$-4, %r14
	xorl	%edx, %edx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$32, %rax
	addq	$4, %rdx
	cmpq	%rdx, %r14
	je	LBB0_28
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx,%rdx,8)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, (%rax)
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, 8(%rbx,%rdx,8)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, 8(%rax)
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, 16(%rbx,%rdx,8)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, 16(%rax)
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, 24(%rbx,%rdx,8)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, 24(%rax)
	jmp	LBB0_27
LBB0_7:
	movq	%r14, %rcx
	andq	$-4, %rcx
	movq	%r15, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$7, %edx
	cmpq	$28, %rdi
	jae	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_9:
	andq	$-8, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rdi,8)
	movdqu	%xmm0, 16(%rax,%rdi,8)
	movdqu	%xmm0, 32(%rax,%rdi,8)
	movdqu	%xmm0, 48(%rax,%rdi,8)
	movdqu	%xmm0, 64(%rax,%rdi,8)
	movdqu	%xmm0, 80(%rax,%rdi,8)
	movdqu	%xmm0, 96(%rax,%rdi,8)
	movdqu	%xmm0, 112(%rax,%rdi,8)
	movdqu	%xmm0, 128(%rax,%rdi,8)
	movdqu	%xmm0, 144(%rax,%rdi,8)
	movdqu	%xmm0, 160(%rax,%rdi,8)
	movdqu	%xmm0, 176(%rax,%rdi,8)
	movdqu	%xmm0, 192(%rax,%rdi,8)
	movdqu	%xmm0, 208(%rax,%rdi,8)
	movdqu	%xmm0, 224(%rax,%rdi,8)
	movdqu	%xmm0, 240(%rax,%rdi,8)
	addq	$32, %rdi
	addq	$-8, %rsi
	jne	LBB0_10
LBB0_11:
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.12:
	leaq	(%rax,%rdi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rsi,%rdi)
	movdqu	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_13
LBB0_14:
	cmpq	%r14, %rcx
	je	LBB0_33
## %bb.15:
	leaq	(%rax,%rcx,8), %rax
LBB0_16:
	subq	%rcx, %r14
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rax,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %r14
	jne	LBB0_17
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_write_mono_alpha_span       ; -- Begin function gl_write_mono_alpha_span
	.p2align	2
_gl_write_mono_alpha_span:              ; @gl_write_mono_alpha_span
	.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	x21, x5
	mov	x19, x4
	mov	x0, x2
	mov	x20, x1
	mov	x1, x3
	bl	_ALPHA_ADDR
	mov	x8, x0
	cbz	x21, LBB0_22
; %bb.1:
	cbz	x20, LBB0_35
; %bb.2:
	mov	x9, #0
	cmp	x20, #8
	b.lo	LBB0_26
; %bb.3:
	sub	x10, x0, x21
	cmp	x10, #64
	b.lo	LBB0_26
; %bb.4:
	and	x9, x20, #0xfffffffffffffff8
	add	x8, x0, x9, lsl #3
	add	x10, x21, #32
	add	x11, x0, #32
	mov	x12, x9
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #64
	add	x11, x11, #64
	subs	x12, x12, #8
	b.eq	LBB0_25
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q3, q2, [x10, #-32]
	ldp	q1, q0, [x10]
	cmtst.2d	v3, v3, v3
	xtn.2s	v3, v3
	fmov	w13, s3
	tbz	w13, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	x19, [x11, #-32]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov.s	w13, v3[1]
	tbz	w13, #0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	x19, [x11, #-24]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cmtst.2d	v2, v2, v2
	xtn.2s	v2, v2
	fmov	w13, s2
	tbz	w13, #0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	stur	x19, [x11, #-16]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov.s	w13, v2[1]
	tbz	w13, #0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	stur	x19, [x11, #-8]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	cmtst.2d	v1, v1, v1
	xtn.2s	v1, v1
	fmov	w13, s1
	tbz	w13, #0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x19, [x11]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov.s	w13, v1[1]
	tbz	w13, #0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x19, [x11, #8]
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	fmov	w13, s0
	tbz	w13, #0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x19, [x11, #16]
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	mov.s	w13, v0[1]
	tbz	w13, #0, LBB0_5
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x19, [x11, #24]
	b	LBB0_5
LBB0_22:
	cbz	x20, LBB0_35
; %bb.23:
	cmp	x20, #8
	b.hs	LBB0_30
; %bb.24:
	mov	x9, #0
	b	LBB0_33
LBB0_25:
	cmp	x9, x20
	b.eq	LBB0_35
LBB0_26:
	sub	x10, x20, x9
	add	x9, x21, x9, lsl #3
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x8, x8, #8
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_35
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	str	x19, [x8]
	b	LBB0_27
LBB0_30:
	and	x9, x20, #0xfffffffffffffff8
	add	x8, x0, x9, lsl #3
	dup.2d	v0, x19
	add	x10, x0, #32
	mov	x11, x9
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x10, #-32]
	stp	q0, q0, [x10], #64
	subs	x11, x11, #8
	b.ne	LBB0_31
; %bb.32:
	cmp	x9, x20
	b.eq	LBB0_35
LBB0_33:
	sub	x9, x20, x9
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	str	x19, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_34
LBB0_35:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
