	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alpha_composite
_alpha_composite:                       ## @alpha_composite
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %r12d
	movl	40(%rbp), %r13d
	movl	32(%rbp), %ebx
	movl	%r12d, %r14d
	negl	%r14d
	subl	%r12d, %r9d
	movl	%r9d, %edi
	movl	%ecx, %esi
	callq	_FFMIN
	movl	%eax, %ecx
	imull	%ebx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r15d
	incl	%ebx
	imull	%ecx, %ebx
	movl	%ebx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	addl	%r15d, %eax
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	jge	LBB0_14
## %bb.1:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movslq	12(%rcx), %rcx
	addl	%eax, %r12d
	movslq	%r12d, %rsi
	imulq	%rcx, %rsi
	shlq	$2, %rsi
	addq	24(%rdx), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movslq	12(%rcx), %rcx
	movslq	%eax, %rsi
	imulq	%rcx, %rsi
	shlq	$2, %rsi
	addq	24(%rdx), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %ecx
	movslq	%ecx, %rdx
	negl	%ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rcx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	subl	%edx, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	12(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	12(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	cmpl	%eax, %r13d
	jge	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movslq	%r13d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rcx
	leaq	(%rcx,%rax,4), %r14
	subl	%r13d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$255, %edi
	subl	(%r14,%rbx,4), %edi
	imull	(%r15,%rbx,4), %edi
	callq	_FAST_DIV255
	addl	(%r14,%rbx,4), %eax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%r14,%rbx,4)
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpl	%ebx, %r12d
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rbx,4), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14,%rbx,4), %esi
	movl	%eax, %edi
	callq	_UNPREMULTIPLY_ALPHA
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r15,%rbx,4), %eax
	jmp	LBB0_11
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alpha_composite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alpha_composite
_alpha_composite:                       ; @alpha_composite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x22, x7
	mov	x23, x6
	mov	x24, x4
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	stp	x0, x1, [sp, #16]               ; 16-byte Folded Spill
	ldp	w20, w19, [x29, #16]
	neg	w25, w7
	sub	w0, w5, w7
	mov	x1, x3
	bl	_FFMIN
	mul	w8, w0, w20
	sdiv	w20, w8, w19
	add	w8, w0, w8
	sdiv	w26, w8, w19
	mov	x0, x25
	mov	w1, #0
	bl	_FFMAX
	add	w25, w0, w20
	cmp	w25, w26
	b.ge	LBB0_14
; %bb.1:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldp	x8, x9, [x9]
	ldr	x8, [x8, #24]
	ldr	w9, [x9, #12]
	add	w10, w25, w22
	mul	w9, w9, w10
	add	x27, x8, w9, sxtw #2
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldp	x8, x9, [x9]
	ldr	x8, [x8, #24]
	ldr	w9, [x9, #12]
	mul	w9, w9, w25
	add	x28, x8, w9, sxtw #2
	neg	w22, w23
	sxtw	x8, w23
	str	x8, [sp]                        ; 8-byte Folded Spill
	sub	w23, w24, w23
	mov	w19, #255
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8, #12]
	add	x27, x27, x8, lsl #2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8, #12]
	add	x28, x28, x8, lsl #2
	add	w25, w25, #1
	cmp	w25, w26
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x22
	mov	w1, #0
	bl	_FFMAX
	mov	x24, x0
	mov	x0, x23
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_FFMIN
	cmp	w24, w0
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x8, x27, x8, lsl #2
	sbfiz	x9, x24, #2, #32
	add	x20, x8, x9
	add	x21, x28, x9
	sub	w24, w0, w24
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x20]
	sub	w8, w19, w8
	ldr	w9, [x21]
	mul	w0, w8, w9
	bl	_FAST_DIV255
	ldr	w8, [x20]
	add	w8, w8, w0
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	str	w8, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x20, x20, #4
	add	x21, x21, #4
	subs	w24, w24, #1
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w0, #255
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w1, [x20]
	bl	_UNPREMULTIPLY_ALPHA
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	cbz	w0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w0, #255
	b.ne	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x21]
	b	LBB0_6
LBB0_14:
	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
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alpha_composite
.subsections_via_symbols
