	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alpha_blend_bmp_pixels
_alpha_blend_bmp_pixels:                ## @alpha_blend_bmp_pixels
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_11
## %bb.1:
	movq	%rcx, %r15
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	16(%rbp), %rax
	movl	%r9d, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%esi, %edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	addq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%rdx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-88(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %esi
	callq	_color_over
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_GdipBitmapSetPixel
	movq	%rbx, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	cmpq	%r12, %rcx
	je	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r12,4), %r13d
	cmpl	$16777216, %r13d                ## imm = 0x1000000
	jb	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rcx, %rbx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r12), %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	leaq	-60(%rbp), %rcx
	callq	_GdipBitmapGetPixel
	movl	-60(%rbp), %edi
	movl	24(%rbp), %eax
	movq	_PixelFormatPAlpha@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %esi
	callq	_color_over_fgpremult
	jmp	LBB0_8
LBB0_11:
	movq	_Ok@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PixelFormatPAlpha,4,2          ## @PixelFormatPAlpha
	.comm	_Ok,4,2                         ## @Ok
	.no_dead_strip	_alpha_blend_bmp_pixels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alpha_blend_bmp_pixels
_alpha_blend_bmp_pixels:                ; @alpha_blend_bmp_pixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
                                        ; kill: def $w6 killed $w6 def $x6
	str	w4, [sp, #40]                   ; 4-byte Folded Spill
	stp	w1, w2, [sp, #16]               ; 8-byte Folded Spill
	cmp	w5, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x7
	mov	x23, x3
	mov	x28, #0
	ldr	x24, [x0]
	mov	w9, w5
	sbfiz	x8, x6, #2, #32
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
Lloh0:
	adrp	x20, _PixelFormatPAlpha@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PixelFormatPAlpha@GOTPAGEOFF]
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	mov	w8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x23, x23, x8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w26, w8, [sp, #16]              ; 8-byte Folded Reload
	add	w25, w28, w8
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x21, x23
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	bl	_color_over
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x3, x0
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_GdipBitmapSetPixel
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w26, w26, #1
	add	x21, x21, #4
	subs	x22, x22, #1
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w27, [x21]
	lsr	w8, w27, #24
	cbz	w8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x3, sp, #44
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_GdipBitmapGetPixel
	ldr	w8, [x20]
	ldr	w0, [sp, #44]
	mov	x1, x27
	tst	w8, w19
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	bl	_color_over_fgpremult
	b	LBB0_6
LBB0_11:
Lloh2:
	adrp	x8, _Ok@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PixelFormatPAlpha,4,2          ; @PixelFormatPAlpha
	.comm	_Ok,4,2                         ; @Ok
	.no_dead_strip	_alpha_blend_bmp_pixels
.subsections_via_symbols
