	.file	"extr_gd_interpolation.c_gdImageScale.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gdImageScale
	.type	gdImageScale, @function
gdImageScale:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	js	.L1
	cmp	eax, DWORD PTR GD_METHOD_COUNT[rip]
	jg	.L1
	test	esi, esi
	je	.L1
	test	edx, edx
	je	.L1
	cmp	eax, 129
	je	.L3
	cmp	eax, 130
	je	.L4
	cmp	eax, 128
	je	.L15
	cmp	QWORD PTR 16[rdi], 0
	je	.L1
	mov	r10d, DWORD PTR 4[rdi]
	mov	r9d, DWORD PTR 8[rdi]
	mov	r8d, edx
	mov	ecx, esi
	mov	edx, r10d
	mov	esi, r9d
	jmp	gdImageScaleTwoPass@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	jmp	gdImageScaleNearestNeighbour@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	jmp	gdImageScaleBicubicFixed@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	jmp	gdImageScaleBilinear@PLT
	.cfi_endproc
.LFE0:
	.size	gdImageScale, .-gdImageScale
	.comm	GD_METHOD_COUNT,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_gdImageScale.c"
	.text
	.align	2
	.global	gdImageScale
	.syntax unified
	.arm
	.fpu softvfp
	.type	gdImageScale, %function
gdImageScale:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	ip, r0, #0
	beq	.L6
	push	{r4, r5, lr}
	ldr	lr, [ip]
	sub	sp, sp, #12
	cmp	lr, #0
	blt	.L9
	ldr	r5, .L19
	ldr	r5, [r5]
	cmp	lr, r5
	bgt	.L9
	cmp	r2, #0
	cmpne	r1, #0
	mov	r3, r1
	mov	r4, r2
	beq	.L9
	cmp	lr, #129
	beq	.L3
	cmp	lr, #130
	beq	.L4
	cmp	lr, #128
	beq	.L18
	ldr	r2, [ip, #12]
	cmp	r2, #0
	beq	.L1
	str	r4, [sp]
	ldr	r2, [ip, #4]
	ldr	r1, [ip, #8]
	bl	gdImageScaleTwoPass
	mov	r2, r0
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	mov	r2, #0
.L1:
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L18:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	gdImageScaleNearestNeighbour
.L4:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	gdImageScaleBicubicFixed
.L3:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	gdImageScaleBilinear
.L6:
	mov	r0, ip
	bx	lr
.L20:
	.align	2
.L19:
	.word	GD_METHOD_COUNT
	.size	gdImageScale, .-gdImageScale
	.comm	GD_METHOD_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
