	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gdImageCopyResampled
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x406fe00000000000              ## double 255
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gdImageCopyResampled
	.p2align	4, 0x90
_gdImageCopyResampled:                  ## @gdImageCopyResampled
	.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	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, -336(%rbp)                ## 8-byte Spill
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movl	%r9d, -144(%rbp)                ## 4-byte Spill
	movl	24(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_27
## %bb.2:
	movl	%edx, %eax
	movl	16(%rbp), %edx
	cvtsi2sd	%ecx, %xmm0
	movsd	%xmm0, -296(%rbp)               ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdl	40(%rbp), %xmm0
	movsd	%xmm0, -288(%rbp)               ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -280(%rbp)               ## 8-byte Spill
	addl	%ecx, %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	-168(%rbp), %rax                ## 8-byte Reload
	leal	(%rdx,%rax), %esi
	movl	%esi, -136(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -328(%rbp)               ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdl	32(%rbp), %xmm0
	movsd	%xmm0, -320(%rbp)               ## 8-byte Spill
	movq	%rdx, -304(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	movsd	%xmm0, -312(%rbp)               ## 8-byte Spill
	movq	_gdAlphaMax@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-132(%rbp), %ecx                ## 4-byte Folded Reload
	jge	LBB0_27
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_14 Depth 4
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, %rax
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	leal	1(%rcx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	$0, -304(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm3, %xmm3
	cvtsi2sdl	-176(%rbp), %xmm3       ## 4-byte Folded Reload
	movsd	-296(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm0, %xmm3
	movsd	-288(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm3
	movsd	-280(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm3
	xorps	%xmm4, %xmm4
	cvtsi2sdl	-60(%rbp), %xmm4        ## 4-byte Folded Reload
	subsd	%xmm0, %xmm4
	mulsd	%xmm1, %xmm4
	divsd	%xmm2, %xmm4
	movapd	%xmm4, %xmm0
	movsd	%xmm3, -184(%rbp)               ## 8-byte Spill
	subsd	%xmm3, %xmm0
	movsd	%xmm0, -352(%rbp)               ## 8-byte Spill
	movq	-168(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movsd	%xmm4, -72(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=2
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm1
	minsd	%xmm6, %xmm1
	unpckhpd	%xmm6, %xmm6                    ## xmm6 = xmm6[1,1]
	movapd	%xmm3, %xmm2
	minsd	%xmm6, %xmm2
	minsd	%xmm0, %xmm3
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	minsd	%xmm4, %xmm0
	cvttsd2si	%xmm1, %edi
	cvttsd2si	%xmm2, %esi
	cvttsd2si	%xmm3, %edx
	cvttsd2si	%xmm0, %ecx
	callq	_gdTrueColorAlpha
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	movq	-344(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-176(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	callq	_gdImageSetPixel
	movl	-140(%rbp), %eax                ## 4-byte Reload
	cmpl	-136(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_4
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_14 Depth 4
                                        ## kill: def $eax killed $eax def $rax
	xorps	%xmm3, %xmm3
	cvtsi2sd	%eax, %xmm3
	movsd	-328(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm0, %xmm3
	movsd	-320(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm3
	movsd	-312(%rbp), %xmm2               ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm3
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	incl	%eax
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	xorps	%xmm5, %xmm5
	cvtsi2sd	%eax, %xmm5
	subsd	%xmm0, %xmm5
	mulsd	%xmm1, %xmm5
	divsd	%xmm2, %xmm5
	movapd	%xmm5, %xmm0
	movsd	%xmm3, -192(%rbp)               ## 8-byte Spill
	subsd	%xmm3, %xmm0
	movsd	%xmm0, -360(%rbp)               ## 8-byte Spill
	xorpd	%xmm2, %xmm2
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movsd	-184(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	xorpd	%xmm3, %xmm3
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -256(%rbp)               ## 16-byte Spill
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -272(%rbp)               ## 16-byte Spill
	movsd	%xmm5, -80(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=3
	movapd	-400(%rbp), %xmm6               ## 16-byte Reload
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	-72(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	ucomisd	%xmm1, %xmm4
	jbe	LBB0_21
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_14 Depth 4
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm2, -128(%rbp)               ## 16-byte Spill
	movapd	%xmm3, -160(%rbp)               ## 16-byte Spill
	movaps	%xmm1, %xmm0
	callq	_floor_cast
	movsd	%xmm0, -112(%rbp)               ## 8-byte Spill
	movsd	-184(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floor_cast
	movsd	-112(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_10
	jp	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floor_cast
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	%xmm2, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movsd	-352(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	minsd	%xmm0, %xmm1
	movapd	%xmm1, -224(%rbp)               ## 16-byte Spill
	movapd	%xmm2, %xmm0
	callq	_floor_cast
	movapd	%xmm0, %xmm1
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floorf
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_11
	jp	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=3
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floor_cast
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	movapd	%xmm2, -224(%rbp)               ## 16-byte Spill
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=3
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm0, -224(%rbp)               ## 16-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=3
	movaps	-160(%rbp), %xmm3               ## 16-byte Reload
	movapd	-128(%rbp), %xmm2               ## 16-byte Reload
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	cvttsd2si	%xmm1, %r15d
	addl	-144(%rbp), %r15d               ## 4-byte Folded Reload
	movsd	-192(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=4
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floor_cast
	movsd	-56(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	%xmm2, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	-360(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	minsd	%xmm0, %xmm1
	movapd	%xmm1, -240(%rbp)               ## 16-byte Spill
	movapd	%xmm2, %xmm0
	callq	_floor_cast
	movapd	%xmm0, %xmm1
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=4
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movapd	-224(%rbp), %xmm0               ## 16-byte Reload
	mulsd	-240(%rbp), %xmm0               ## 16-byte Folded Reload
	movsd	%xmm0, -200(%rbp)               ## 8-byte Spill
	cvttsd2si	%xmm1, %esi
	addl	%r13d, %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_gdImageGetTrueColorPixel
	movl	%eax, %r12d
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	movapd	%xmm0, -112(%rbp)               ## 16-byte Spill
	movl	%eax, %edi
	callq	_gdTrueColorGetAlpha
	movapd	-112(%rbp), %xmm1               ## 16-byte Reload
	subsd	%xmm0, %xmm1
	mulsd	-200(%rbp), %xmm1               ## 8-byte Folded Reload
	movapd	%xmm1, -112(%rbp)               ## 16-byte Spill
	movl	%r12d, %edi
	callq	_gdTrueColorGetRed
	movapd	%xmm0, -128(%rbp)               ## 16-byte Spill
	movl	%r12d, %edi
	callq	_gdTrueColorGetGreen
	movapd	-128(%rbp), %xmm1               ## 16-byte Reload
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movddup	-112(%rbp), %xmm0               ## 16-byte Folded Reload
                                        ## xmm0 = mem[0,0]
	mulpd	%xmm1, %xmm0
	movapd	%xmm0, -400(%rbp)               ## 16-byte Spill
	addpd	-384(%rbp), %xmm0               ## 16-byte Folded Reload
	movapd	%xmm0, -128(%rbp)               ## 16-byte Spill
	movl	%r12d, %edi
	callq	_gdTrueColorGetBlue
	movapd	%xmm0, -416(%rbp)               ## 16-byte Spill
	movl	%r12d, %edi
	callq	_gdTrueColorGetAlpha
	movapd	-128(%rbp), %xmm2               ## 16-byte Reload
	movsd	-200(%rbp), %xmm4               ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm0
	movsd	-88(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -88(%rbp)                ## 8-byte Spill
	movapd	-160(%rbp), %xmm3               ## 16-byte Reload
	movapd	-112(%rbp), %xmm5               ## 16-byte Reload
	addsd	%xmm5, %xmm3
	movapd	-256(%rbp), %xmm0               ## 16-byte Reload
	addsd	%xmm4, %xmm0
	movapd	%xmm0, -256(%rbp)               ## 16-byte Spill
	movapd	-240(%rbp), %xmm1               ## 16-byte Reload
	unpcklpd	-416(%rbp), %xmm1               ## 16-byte Folded Reload
                                        ## xmm1 = xmm1[0],mem[0]
	movapd	-224(%rbp), %xmm0               ## 16-byte Reload
	unpcklpd	%xmm5, %xmm0                    ## xmm0 = xmm0[0],xmm5[0]
	mulpd	%xmm1, %xmm0
	movapd	-272(%rbp), %xmm1               ## 16-byte Reload
	addpd	%xmm0, %xmm1
	movapd	%xmm1, -272(%rbp)               ## 16-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	movsd	-80(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	ucomisd	%xmm0, %xmm5
	jbe	LBB0_20
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ##       Parent Loop BB0_8 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movaps	%xmm3, -160(%rbp)               ## 16-byte Spill
	movapd	%xmm2, -384(%rbp)               ## 16-byte Spill
	callq	_floorf
	movsd	%xmm0, -112(%rbp)               ## 8-byte Spill
	movsd	-192(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floor_cast
	movsd	-112(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_16
	jnp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=4
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floorf
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_17
	jp	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=4
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_floor_cast
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	%xmm0, %xmm2
	movapd	%xmm2, -240(%rbp)               ## 16-byte Spill
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=4
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm0, -240(%rbp)               ## 16-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=2
	addpd	-384(%rbp), %xmm6               ## 16-byte Folded Reload
	xorpd	%xmm2, %xmm2
	movapd	-272(%rbp), %xmm4               ## 16-byte Reload
	ucomisd	%xmm2, %xmm4
	movapd	%xmm4, %xmm0
	unpckhpd	%xmm4, %xmm0                    ## xmm0 = xmm0[1],xmm4[1]
	jne	LBB0_23
	jnp	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=2
	movddup	%xmm4, %xmm1                    ## xmm1 = xmm4[0,0]
	divpd	%xmm1, %xmm6
	divsd	%xmm4, %xmm0
	movapd	%xmm4, %xmm1
	movsd	-88(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	divsd	%xmm1, %xmm4
	addsd	LCPI0_1(%rip), %xmm4
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=2
	movsd	-88(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=2
	ucomisd	%xmm2, %xmm3
	jne	LBB0_25
	jnp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=2
	movapd	-256(%rbp), %xmm5               ## 16-byte Reload
	movapd	%xmm5, %xmm1
	cmpneqsd	%xmm2, %xmm1
	andpd	%xmm1, %xmm5
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	andnpd	%xmm2, %xmm1
	orpd	%xmm5, %xmm1
	divsd	%xmm1, %xmm3
	movddup	%xmm3, %xmm1                    ## xmm1 = xmm3[0,0]
	divpd	%xmm1, %xmm6
	divsd	%xmm3, %xmm0
	jmp	LBB0_26
LBB0_27:
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %r8d
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gdImageCopyResized             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gdAlphaMax,8,3                 ## @gdAlphaMax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCopyResampled           ; -- Begin function gdImageCopyResampled
	.p2align	2
_gdImageCopyResampled:                  ; @gdImageCopyResampled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	d15, d14, [sp, #192]            ; 16-byte Folded Spill
	stp	d13, d12, [sp, #208]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #224]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #240]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #256]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x1
	ldp	w8, w9, [x29, #16]
	ldr	w10, [x0]
	cbz	w10, LBB0_28
; %bb.1:
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	str	w2, [sp, #32]                   ; 4-byte Folded Spill
	cmp	w7, #1
	b.lt	LBB0_27
; %bb.2:
	add	w10, w7, w23
	str	w10, [sp, #36]                  ; 4-byte Folded Spill
	scvtf	d1, w23
	scvtf	d0, w9
	stp	d0, d1, [sp, #16]               ; 16-byte Folded Spill
	scvtf	d0, w7
	str	d0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	scvtf	d1, w9
	scvtf	d0, w8
	stp	d0, d1, [sp, #56]               ; 16-byte Folded Spill
	scvtf	d0, w6
	str	d0, [sp, #48]                   ; 8-byte Folded Spill
	add	w22, w6, w9
	fmov	d9, #1.00000000
Lloh0:
	adrp	x19, _gdAlphaMax@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gdAlphaMax@GOTPAGEOFF]
	str	w6, [sp, #40]                   ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w6, w9, [sp, #40]               ; 8-byte Folded Reload
	mov	x23, x9
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.ge	LBB0_27
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_18 Depth 4
	add	w8, w23, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w6, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	scvtf	d0, w23
	ldp	d3, d2, [sp, #16]               ; 16-byte Folded Reload
	fsub	d0, d0, d2
	fmul	d0, d0, d3
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	scvtf	d1, w8
	ldr	d4, [sp, #8]                    ; 8-byte Folded Reload
	fdiv	d5, d0, d4
	fsub	d0, d1, d2
	fmul	d0, d0, d3
	fdiv	d8, d0, d4
	stp	d8, d5, [sp, #88]               ; 16-byte Folded Spill
	fsub	d0, d8, d5
	str	d0, [sp, #80]                   ; 8-byte Folded Spill
	ldr	w25, [sp, #32]                  ; 4-byte Folded Reload
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d0, x8
	fmin	d1, d11, d0
	fmin	d2, d8, d0
	fmin	d0, d3, d0
	ldr	d3, [x19]
	fcmp	d10, d3
	fcsel	d3, d3, d10, gt
	fcvtzs	w0, d1
	fcvtzs	w1, d2
	fcvtzs	w2, d0
	fcvtzs	w3, d3
	bl	_gdTrueColorAlpha
	mov	x3, x0
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x1, x26
	mov	x2, x23
	bl	_gdImageSetPixel
	cmp	w25, w22
	fmov	d8, d12
	b.ge	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_18 Depth 4
	mov	x26, x25
	scvtf	d0, w25
	ldp	d2, d1, [sp, #56]               ; 16-byte Folded Reload
	fsub	d0, d0, d1
	fmul	d0, d0, d2
	ldr	d3, [sp, #48]                   ; 8-byte Folded Reload
	fdiv	d4, d0, d3
	add	w25, w25, #1
	scvtf	d0, w25
	fsub	d0, d0, d1
	fmul	d0, d0, d2
	fdiv	d15, d0, d3
	str	d4, [sp, #136]                  ; 8-byte Folded Spill
	fsub	d0, d15, d4
	str	d0, [sp, #112]                  ; 8-byte Folded Spill
	movi	d14, #0000000000000000
	ldr	d13, [sp, #96]                  ; 8-byte Folded Reload
	movi	d11, #0000000000000000
	movi	d0, #0000000000000000
	str	d0, [sp, #160]                  ; 8-byte Folded Spill
	movi	d0, #0000000000000000
	stur	d0, [x29, #-160]                ; 8-byte Folded Spill
	movi	d10, #0000000000000000
	movi	d0, #0000000000000000
	str	d0, [sp, #168]                  ; 8-byte Folded Spill
	movi	d0, #0000000000000000
	str	d0, [sp, #152]                  ; 8-byte Folded Spill
	str	d15, [sp, #120]                 ; 8-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	ldr	d13, [sp, #104]                 ; 8-byte Folded Reload
	fadd	d13, d13, d9
	ldr	d8, [sp, #88]                   ; 8-byte Folded Reload
	fcmp	d13, d8
	b.pl	LBB0_22
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_18 Depth 4
	fmov	d0, d13
	bl	_floor_cast
	fmov	d12, d0
	ldr	d0, [sp, #96]                   ; 8-byte Folded Reload
	bl	_floor_cast
	fcmp	d12, d0
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	fmov	d0, d13
	bl	_floor_cast
	fsub	d0, d0, d13
	fadd	d0, d0, d9
	ldr	d1, [sp, #80]                   ; 8-byte Folded Reload
	fcmp	d0, d1
	fcsel	d0, d1, d0, gt
	str	d0, [sp, #128]                  ; 8-byte Folded Spill
	fmov	d0, d13
	bl	_floor_cast
	fmov	d13, d0
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=3
	fmov	d0, d8
	bl	_floorf
	fcmp	d13, d0
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=3
	fmov	d0, d8
	bl	_floor_cast
	fsub	d0, d8, d0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=3
	fmov	d0, #1.00000000
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=3
	str	d0, [sp, #128]                  ; 8-byte Folded Spill
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=3
	str	d13, [sp, #104]                 ; 8-byte Folded Spill
	fcvtzs	w8, d13
	add	w27, w8, w20
	ldr	d13, [sp, #136]                 ; 8-byte Folded Reload
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=4
	fmov	d0, d13
	bl	_floor_cast
	fsub	d0, d0, d13
	fadd	d0, d0, d9
	ldr	d1, [sp, #112]                  ; 8-byte Folded Reload
	fcmp	d0, d1
	fcsel	d14, d1, d0, gt
	fmov	d0, d13
	bl	_floor_cast
	fmov	d13, d0
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=4
	fmov	d8, #1.00000000
	ldr	d15, [sp, #128]                 ; 8-byte Folded Reload
	fmul	d9, d15, d14
	fcvtzs	w8, d13
	add	w1, w8, w21
	mov	x0, x24
	mov	x2, x27
	bl	_gdImageGetTrueColorPixel
	mov	x28, x0
	ldr	d12, [x19]
	bl	_gdTrueColorGetAlpha
	fsub	d0, d12, d0
	fmul	d12, d9, d0
	mov	x0, x28
	bl	_gdTrueColorGetRed
	fmadd	d11, d0, d12, d11
	mov	x0, x28
	bl	_gdTrueColorGetGreen
	ldr	d1, [sp, #160]                  ; 8-byte Folded Reload
	fmadd	d1, d0, d12, d1
	str	d1, [sp, #160]                  ; 8-byte Folded Spill
	mov	x0, x28
	bl	_gdTrueColorGetBlue
	ldur	d1, [x29, #-160]                ; 8-byte Folded Reload
	fmadd	d1, d0, d12, d1
	stur	d1, [x29, #-160]                ; 8-byte Folded Spill
	mov	x0, x28
	bl	_gdTrueColorGetAlpha
	fmadd	d10, d0, d9, d10
	ldr	d0, [sp, #168]                  ; 8-byte Folded Reload
	fadd	d0, d0, d12
	str	d0, [sp, #168]                  ; 8-byte Folded Spill
	ldr	d0, [sp, #152]                  ; 8-byte Folded Reload
	fadd	d0, d0, d9
	str	d0, [sp, #152]                  ; 8-byte Folded Spill
	ldr	d0, [sp, #144]                  ; 8-byte Folded Reload
	fmadd	d14, d14, d15, d0
	fadd	d13, d13, d8
	ldr	d15, [sp, #120]                 ; 8-byte Folded Reload
	fcmp	d13, d15
	fmov	d9, #1.00000000
	b.pl	LBB0_8
LBB0_18:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	str	d14, [sp, #144]                 ; 8-byte Folded Spill
	fmov	d0, d13
	bl	_floorf
	fmov	d14, d0
	ldr	d0, [sp, #136]                  ; 8-byte Folded Reload
	bl	_floor_cast
	fcmp	d14, d0
	b.eq	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=4
	fmov	d0, d15
	bl	_floorf
	fcmp	d13, d0
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=4
	fmov	d0, d15
	bl	_floor_cast
	fsub	d14, d15, d0
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=4
	fmov	d14, #1.00000000
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=2
	fmov	d12, d8
	fcmp	d14, #0.0
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=2
	fdiv	d11, d11, d14
	ldr	d8, [sp, #160]                  ; 8-byte Folded Reload
	fdiv	d8, d8, d14
	fdiv	d0, d10, d14
	fmov	d1, #0.50000000
	fadd	d10, d0, d1
	ldur	d3, [x29, #-160]                ; 8-byte Folded Reload
	fdiv	d3, d3, d14
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	d8, [sp, #160]                  ; 8-byte Folded Reload
	ldur	d3, [x29, #-160]                ; 8-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	d1, [sp, #168]                  ; 8-byte Folded Reload
	fcmp	d1, #0.0
	b.eq	LBB0_6
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	d0, [sp, #152]                  ; 8-byte Folded Reload
	fcmp	d0, #0.0
	fcsel	d0, d0, d9, ne
	fdiv	d0, d1, d0
	fdiv	d11, d11, d0
	fdiv	d8, d8, d0
	fdiv	d3, d3, d0
	b	LBB0_6
LBB0_27:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #240]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #224]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #208]            ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_28:
	stp	w8, w9, [x29, #16]
	mov	x1, x24
	mov	x3, x23
	mov	x4, x21
	mov	x5, x20
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #256]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #240]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #224]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #208]            ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #352
	b	_gdImageCopyResized
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gdAlphaMax,8,3                 ; @gdAlphaMax
.subsections_via_symbols
