	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blend_pixel
_blend_pixel:                           ## @blend_pixel
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r10
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$7, %r12d
	movl	%r9d, %ecx
	shrl	%cl, %r12d
	movl	$1, %eax
	shll	%cl, %eax
	movl	$-1, %r13d
	movl	%eax, %ecx
	shll	%cl, %r13d
	movl	24(%rbp), %r11d
	notl	%r13d
	xorl	%r14d, %r14d
	movl	$255, %eax
	xorl	%edx, %edx
	divl	%r13d
	testl	%r11d, %r11d
	je	LBB0_11
## %bb.1:
	movl	%r8d, %ebx
	movl	16(%rbp), %edi
	movl	$3, %r15d
	subl	%r9d, %r15d
	movslq	%r8d, %rbx
	movl	%edi, %ecx
	andl	$-2, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$-2, %ecx
	subl	40(%rbp), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r10,%rbx,4), %r10
	incl	%esi
	cmpl	%r11d, %esi
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%edi, %edi
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %edi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbp), %ecx
	movl	%ecx, %r8d
	testb	$1, %dil
	je	LBB0_10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edi
	movl	40(%rbp), %ecx
	movl	%ecx, %r8d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r8d, %esi
	movl	%r15d, %ecx
	shrl	%cl, %esi
	leal	1(%rdi), %edx
	andl	%r12d, %edx
	movl	%r9d, %ecx
	shll	%cl, %edx
	movl	(%r10,%rsi,4), %esi
	movl	%edx, %ecx
	shrl	%cl, %esi
	andl	%r13d, %esi
	imull	%eax, %esi
	addl	%r14d, %esi
	leal	1(%r8), %ebx
	movl	%r15d, %ecx
	shrl	%cl, %ebx
	movl	%r12d, %edx
	andl	%edi, %edx
	movl	%r9d, %ecx
	shll	%cl, %edx
	movl	(%r10,%rbx,4), %r14d
	movl	%edx, %ecx
	shrl	%cl, %r14d
	andl	%r13d, %r14d
	imull	%eax, %r14d
	addl	%esi, %r14d
	addl	$2, %r8d
	addl	$-2, %edi
	addl	$-2, %r11d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbp), %r11d
	movl	16(%rbp), %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	testb	$1, %dil
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %edx
	movl	%r15d, %ecx
	shrl	%cl, %edx
	notl	%r8d
	andl	%r12d, %r8d
	movl	%r9d, %ecx
	shll	%cl, %r8d
	movl	(%r10,%rdx,4), %edx
	movl	%r8d, %ecx
	shrl	%cl, %edx
	andl	%r13d, %edx
	imull	%eax, %edx
	addl	%edx, %r14d
	jmp	LBB0_10
LBB0_11:
	movl	32(%rbp), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r14d
	imull	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	$16843009, %eax                 ## imm = 0x1010101
	subl	%r14d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx), %eax
	imull	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%eax, %r14d
	shrl	$24, %r14d
	movl	%r14d, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_blend_pixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blend_pixel
_blend_pixel:                           ; @blend_pixel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	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
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	.cfi_offset w25, -56
	.cfi_offset w26, -64
	.cfi_offset w27, -72
	.cfi_offset w28, -80
                                        ; kill: def $w4 killed $w4 def $x4
	ldr	w8, [sp, #80]
	mov	w9, #0
	cbz	w7, LBB0_11
; %bb.1:
	mov	w10, #0
	ldr	w11, [sp, #84]
	mov	w12, #3
	sub	w12, w12, w5
	mov	w13, #7
	lsr	w13, w13, w5
	mov	w14, #1
	lsl	w14, w14, w5
	mov	w15, #-1
	lsl	w14, w15, w14
	mvn	w14, w14
	mov	w19, #255
	sxtw	x15, w4
	and	w16, w6, #0xfffffffe
	add	w17, w16, w11
	mov	w4, #-2
	sub	w4, w4, w11
	udiv	w19, w19, w14
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x3, x3, x15, lsl #2
	add	w10, w10, #1
	cmp	w10, w7
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cbz	w6, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w6, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
	mov	x20, x11
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w20, #0
	mov	x21, x11
	mov	x22, x4
	mov	x23, x16
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w24, w21, #1
	lsr	w25, w21, w12
	lsr	w24, w24, w12
	ldr	w25, [x3, w25, uxtw #2]
	ldr	w24, [x3, w24, uxtw #2]
	add	w26, w22, #1
	and	w26, w13, w26
	and	w27, w13, w22
	lsl	w26, w26, w5
	lsl	w27, w27, w5
	lsr	w25, w25, w26
	lsr	w24, w24, w27
	and	w25, w25, w14
	and	w24, w24, w14
	madd	w9, w25, w19, w9
	madd	w20, w24, w19, w20
	sub	w22, w22, #2
	add	w21, w21, #2
	sub	w23, w23, #2
	cbnz	w23, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w20, w9
	mov	x20, x17
	mov	x22, x16
	cmp	w16, w6
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mvn	w21, w20
	sub	w22, w6, w22
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w23, w20, w12
	ldr	w23, [x3, w23, uxtw #2]
	and	w24, w13, w21
	lsl	w24, w24, w5
	lsr	w23, w23, w24
	and	w23, w23, w14
	madd	w9, w23, w19, w9
	add	w20, w20, #1
	sub	w21, w21, #1
	subs	w22, w22, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	lsr	w8, w9, w8
	mul	w8, w8, w2
	mov	w9, #16843009
	sub	w9, w9, w8
	ldr	w10, [x0]
	mul	w8, w8, w1
	madd	w8, w10, w9, w8
	lsr	w8, w8, #24
	str	w8, [x0]
	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], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_blend_pixel
.subsections_via_symbols
