	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _color_blend
__color_blend:                          ## @_color_blend
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_gdTrueColorGetAlpha
	movl	%eax, %ebx
	movq	_gdAlphaOpaque@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.1:
	movl	%r12d, %edi
	callq	_gdTrueColorGetAlpha
	movl	%eax, %ecx
	movq	_gdAlphaTransparent@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r13d
	subl	%ebx, %r13d
	jne	LBB0_3
## %bb.2:
	movl	%r12d, %r14d
	jmp	LBB0_5
LBB0_3:
	subl	%ecx, %eax
	je	LBB0_5
## %bb.4:
	imull	%ebx, %eax
	movq	_gdAlphaMax@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cltd
	idivl	%esi
	movl	%eax, %r15d
	leal	(%r15,%r13), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	imull	%ebx, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_gdTrueColorGetRed
	movl	%eax, %ebx
	imull	%r13d, %ebx
	movl	%r12d, %edi
	callq	_gdTrueColorGetRed
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	imull	%r15d, %eax
	addl	%ebx, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_gdTrueColorGetGreen
	movl	%eax, %ebx
	imull	%r13d, %ebx
	movl	%r12d, %edi
	callq	_gdTrueColorGetGreen
	imull	%r15d, %eax
	addl	%ebx, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_gdTrueColorGetBlue
	movl	%eax, %ebx
	imull	%r13d, %ebx
	movl	%r12d, %edi
	callq	_gdTrueColorGetBlue
	imull	-64(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%ebx, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shll	$24, %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	shll	$16, %edx
	addl	%ecx, %edx
	shll	$8, %r15d
	addl	%edx, %r15d
	addl	%eax, %r15d
	movl	%r15d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdAlphaOpaque,4,2              ## @gdAlphaOpaque
	.comm	_gdAlphaTransparent,4,2         ## @gdAlphaTransparent
	.comm	_gdAlphaMax,4,2                 ## @gdAlphaMax
	.no_dead_strip	__color_blend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _color_blend
__color_blend:                          ; @_color_blend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_gdTrueColorGetAlpha
Lloh0:
	adrp	x8, _gdAlphaOpaque@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gdAlphaOpaque@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_gdTrueColorGetAlpha
Lloh3:
	adrp	x8, _gdAlphaTransparent@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gdAlphaTransparent@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	subs	w22, w8, w21
	b.ne	LBB0_3
; %bb.2:
	mov	x19, x20
	b	LBB0_5
LBB0_3:
	subs	w8, w8, w0
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, _gdAlphaMax@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gdAlphaMax@GOTPAGEOFF]
	mul	w8, w8, w21
Lloh8:
	ldr	w9, [x9]
	sdiv	w23, w8, w9
	add	w24, w23, w22
	mul	w8, w0, w21
	sdiv	w21, w8, w9
	mov	x0, x19
	bl	_gdTrueColorGetRed
	mul	w25, w0, w22
	mov	x0, x20
	bl	_gdTrueColorGetRed
	madd	w8, w0, w23, w25
	sdiv	w25, w8, w24
	mov	x0, x19
	bl	_gdTrueColorGetGreen
	mul	w26, w0, w22
	mov	x0, x20
	bl	_gdTrueColorGetGreen
	madd	w8, w0, w23, w26
	sdiv	w26, w8, w24
	mov	x0, x19
	bl	_gdTrueColorGetBlue
	mul	w19, w0, w22
	mov	x0, x20
	bl	_gdTrueColorGetBlue
	madd	w8, w0, w23, w19
	sdiv	w8, w8, w24
	lsl	w9, w25, #16
	add	w9, w9, w21, lsl #24
	add	w9, w9, w26, lsl #8
	add	w19, w9, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_gdAlphaOpaque,4,2              ; @gdAlphaOpaque
	.comm	_gdAlphaTransparent,4,2         ; @gdAlphaTransparent
	.comm	_gdAlphaMax,4,2                 ; @gdAlphaMax
	.no_dead_strip	__color_blend
.subsections_via_symbols
