	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpremultiply8
_unpremultiply8:                        ## @unpremultiply8
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rbp)
	jle	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movslq	%r9d, %rax
	movslq	%ecx, %rcx
	movslq	%r8d, %rdx
	movl	16(%rbp), %r13d
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	cmpl	24(%rbp), %eax
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%rbp)
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%r14,%r12,4)
	incq	%r12
	cmpq	%r12, %r13
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r12,4), %esi
	leal	-1(%rsi), %ecx
	movl	(%rbx,%r12,4), %eax
	cmpl	$253, %ecx
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %edi
	movl	$255, %esi
	callq	_FFMIN
	jmp	LBB0_6
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_unpremultiply8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpremultiply8
_unpremultiply8:                        ; @unpremultiply8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
                                        ; kill: def $w5 killed $w5 def $x5
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w7, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x7
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w24, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w8, w8
	sbfiz	x25, x5, #2, #32
	sbfiz	x26, x3, #2, #32
	sbfiz	x27, x4, #2, #32
	lsl	x28, x8, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	add	x21, x21, x25
	add	x23, x23, x26
	add	x22, x22, x27
	cmp	w24, w19
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	str	w0, [x21, x20]
	add	x20, x20, #4
	cmp	x28, x20
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22, x20]
	sub	w9, w8, #1
	ldr	w0, [x23, x20]
	cmp	w9, #253
	b.hi	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	lsl	w9, w0, #8
	sub	w9, w9, w0
	sdiv	w0, w9, w8
	mov	w1, #255
	bl	_FFMIN
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unpremultiply8
.subsections_via_symbols
