	.file	"extr_gd_interpolation.c__color_blend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_color_blend, @function
_color_blend:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edi
	mov	edi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	gdTrueColorGetAlpha@PLT
	cmp	DWORD PTR gdAlphaOpaque[rip], eax
	je	.L4
	mov	edi, r15d
	mov	ebx, eax
	call	gdTrueColorGetAlpha@PLT
	mov	esi, eax
	mov	eax, DWORD PTR gdAlphaTransparent[rip]
	cmp	eax, ebx
	je	.L1
	cmp	eax, esi
	jne	.L8
.L4:
	mov	r15d, ebp
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r13d, eax
	sub	eax, esi
	mov	ecx, DWORD PTR gdAlphaMax[rip]
	mov	edi, ebp
	imul	eax, ebx
	sub	r13d, ebx
	imul	ebx, esi
	cdq
	idiv	ecx
	mov	r12d, eax
	lea	eax, 0[r13+rax]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, ebx
	cdq
	idiv	ecx
	mov	ebx, eax
	call	gdTrueColorGetRed@PLT
	mov	edi, r15d
	sal	ebx, 24
	mov	r14d, eax
	call	gdTrueColorGetRed@PLT
	imul	r14d, r13d
	mov	edi, ebp
	imul	eax, r12d
	add	eax, r14d
	cdq
	idiv	DWORD PTR 8[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	gdTrueColorGetGreen@PLT
	mov	edi, r15d
	mov	r14d, eax
	call	gdTrueColorGetGreen@PLT
	imul	r14d, r13d
	mov	edi, ebp
	imul	eax, r12d
	add	eax, r14d
	cdq
	idiv	DWORD PTR 8[rsp]
	mov	r14d, eax
	call	gdTrueColorGetBlue@PLT
	mov	edi, r15d
	sal	r14d, 8
	imul	r13d, eax
	call	gdTrueColorGetBlue@PLT
	mov	r15d, DWORD PTR 12[rsp]
	imul	r12d, eax
	sal	r15d, 16
	lea	r8d, [rbx+r15]
	lea	eax, [r12+r13]
	add	r8d, r14d
	cdq
	idiv	DWORD PTR 8[rsp]
	lea	r15d, [r8+rax]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_color_blend, .-_color_blend
	.comm	gdAlphaTransparent,4,4
	.comm	gdAlphaOpaque,4,4
	.comm	gdAlphaMax,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gd_interpolation.c__color_blend.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_color_blend, %function
_color_blend:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r4, r1
	bl	gdTrueColorGetAlpha
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
	mov	r5, r0
	mov	r0, r7
	bl	gdTrueColorGetAlpha
	ldr	r3, .L9+4
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L5
	cmp	r3, r0
	bne	.L8
.L4:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r2, .L9+8
	sub	r0, r3, r0
	ldr	r9, [r2]
	mul	r0, r5, r0
	mov	r1, r9
	sub	r8, r3, r5
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r9
	mul	r0, r6, r5
	mov	r6, r3
	bl	__aeabi_idiv
	mov	fp, r0
	mov	r0, r4
	bl	gdTrueColorGetRed
	mov	r5, r0
	mov	r0, r7
	bl	gdTrueColorGetRed
	mul	r5, r8, r5
	add	r10, r8, r6
	mov	r1, r10
	mla	r0, r6, r0, r5
	bl	__aeabi_idiv
	mov	r5, r0
	mov	r0, r4
	bl	gdTrueColorGetGreen
	mov	r9, r0
	mov	r0, r7
	bl	gdTrueColorGetGreen
	mul	r9, r8, r9
	mov	r1, r10
	mla	r0, r6, r0, r9
	bl	__aeabi_idiv
	mov	r9, r0
	mov	r0, r4
	bl	gdTrueColorGetBlue
	mov	r3, r0
	mov	r0, r7
	mul	r8, r3, r8
	bl	gdTrueColorGetBlue
	mov	r1, r10
	mla	r0, r6, r0, r8
	bl	__aeabi_idiv
	lsl	r4, r5, #16
	add	r4, r4, fp, lsl #24
	add	r4, r4, r9, lsl #8
	add	r0, r4, r0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	gdAlphaOpaque
	.word	gdAlphaTransparent
	.word	gdAlphaMax
	.size	_color_blend, .-_color_blend
	.comm	gdAlphaTransparent,4,4
	.comm	gdAlphaOpaque,4,4
	.comm	gdAlphaMax,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
