	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_write_alpha_span            ## -- Begin function gl_write_alpha_span
	.p2align	4, 0x90
_gl_write_alpha_span:                   ## @gl_write_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_30
## %bb.2:
	cmpq	$1, %r14
	jne	LBB0_21
## %bb.3:
	xorl	%ecx, %ecx
LBB0_27:
	testb	$1, %r14b
	je	LBB0_30
## %bb.28:
	cmpq	$0, (%rbx,%rcx,8)
	je	LBB0_30
## %bb.29:
	movq	(%r15,%rcx,8), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_30
LBB0_4:
	testq	%r14, %r14
	je	LBB0_30
## %bb.5:
	xorl	%ecx, %ecx
	cmpq	$4, %r14
	jb	LBB0_16
## %bb.6:
	movq	%rax, %rdx
	subq	%r15, %rdx
	cmpq	$32, %rdx
	jb	LBB0_16
## %bb.7:
	movq	%r14, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$12, %rdi
	jae	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_21:
	movq	%r14, %rdx
	andq	$-2, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$16, %rax
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_27
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx,%rcx,8)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%r15,%rcx,8), %rsi
	movq	%rsi, (%rax)
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpq	$0, 8(%rbx,%rcx,8)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	8(%r15,%rcx,8), %rsi
	movq	%rsi, 8(%rax)
	jmp	LBB0_26
LBB0_9:
	andq	$-4, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rdi,8), %xmm0
	movups	16(%r15,%rdi,8), %xmm1
	movups	%xmm0, (%rax,%rdi,8)
	movups	%xmm1, 16(%rax,%rdi,8)
	movups	32(%r15,%rdi,8), %xmm0
	movups	48(%r15,%rdi,8), %xmm1
	movups	%xmm0, 32(%rax,%rdi,8)
	movups	%xmm1, 48(%rax,%rdi,8)
	movups	64(%r15,%rdi,8), %xmm0
	movups	80(%r15,%rdi,8), %xmm1
	movups	%xmm0, 64(%rax,%rdi,8)
	movups	%xmm1, 80(%rax,%rdi,8)
	movups	96(%r15,%rdi,8), %xmm0
	movups	112(%r15,%rdi,8), %xmm1
	movups	%xmm0, 96(%rax,%rdi,8)
	movups	%xmm1, 112(%rax,%rdi,8)
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_10
LBB0_11:
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.12:
	leaq	(%r15,%rdi,8), %rsi
	addq	$16, %rsi
	leaq	(%rax,%rdi,8), %rdi
	addq	$16, %rdi
	shlq	$5, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rbx), %xmm0
	movups	(%rsi,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_13
LBB0_14:
	cmpq	%r14, %rcx
	je	LBB0_30
## %bb.15:
	leaq	(%rax,%rcx,8), %rax
LBB0_16:
	movl	%r14d, %esi
	subl	%ecx, %esi
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r14, %rdx
	andq	$7, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rdi
	movq	%rdi, (%rax)
	addq	$8, %rax
	incq	%rcx
	decq	%rsi
	jne	LBB0_17
LBB0_18:
	cmpq	$7, %rdx
	jb	LBB0_30
## %bb.19:
	subq	%rcx, %r14
	leaq	(%r15,%rcx,8), %rcx
	addq	$56, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rcx,%rdx,8), %rsi
	movq	%rsi, (%rax,%rdx,8)
	movq	-48(%rcx,%rdx,8), %rsi
	movq	%rsi, 8(%rax,%rdx,8)
	movq	-40(%rcx,%rdx,8), %rsi
	movq	%rsi, 16(%rax,%rdx,8)
	movq	-32(%rcx,%rdx,8), %rsi
	movq	%rsi, 24(%rax,%rdx,8)
	movq	-24(%rcx,%rdx,8), %rsi
	movq	%rsi, 32(%rax,%rdx,8)
	movq	-16(%rcx,%rdx,8), %rsi
	movq	%rsi, 40(%rax,%rdx,8)
	movq	-8(%rcx,%rdx,8), %rsi
	movq	%rsi, 48(%rax,%rdx,8)
	movq	(%rcx,%rdx,8), %rsi
	movq	%rsi, 56(%rax,%rdx,8)
	addq	$8, %rdx
	cmpq	%rdx, %r14
	jne	LBB0_20
LBB0_30:
	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_alpha_span            ; -- Begin function gl_write_alpha_span
	.p2align	2
_gl_write_alpha_span:                   ; @gl_write_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_5
; %bb.1:
	cbnz	x20, LBB0_3
	b	LBB0_13
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	add	x19, x19, #8
	add	x21, x21, #8
	subs	x20, x20, #1
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19]
	str	x9, [x8]
	b	LBB0_2
LBB0_5:
	cbz	x20, LBB0_13
; %bb.6:
	mov	x9, #0
	cmp	x20, #8
	b.lo	LBB0_11
; %bb.7:
	sub	x10, x0, x19
	cmp	x10, #64
	b.lo	LBB0_11
; %bb.8:
	and	x9, x20, #0xfffffffffffffff8
	add	x8, x0, x9, lsl #3
	add	x10, x19, #32
	add	x11, x0, #32
	mov	x12, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x10, #-32]
	ldp	q2, q3, [x10], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x9, x20
	b.eq	LBB0_13
LBB0_11:
	sub	x10, x20, x9
	add	x9, x19, x9, lsl #3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	str	x11, [x8], #8
	subs	x10, x10, #1
	b.ne	LBB0_12
LBB0_13:
	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
