	.file	"extr_gd_interpolation.c_gdImageClipRectangle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gdImageClipRectangle, @function
gdImageClipRectangle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	lea	rcx, 16[rsp]
	lea	r8, 20[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 12[rsp]
	lea	rsi, 8[rsp]
	call	gdImageGetClip@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 8[rsp]
	add	r12d, edi
	mov	ebp, DWORD PTR 12[rbx]
	add	ebp, DWORD PTR 8[rbx]
	call	CLAMP@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 20[rsp]
	sub	r12d, 1
	mov	DWORD PTR [rbx], eax
	mov	esi, DWORD PTR 12[rsp]
	sub	ebp, 1
	call	CLAMP@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, r12d
	mov	DWORD PTR 8[rbx], eax
	call	CLAMP@PLT
	sub	eax, DWORD PTR [rbx]
	mov	edx, DWORD PTR 20[rsp]
	mov	edi, ebp
	add	eax, 1
	mov	esi, DWORD PTR 12[rsp]
	mov	DWORD PTR 4[rbx], eax
	call	CLAMP@PLT
	sub	eax, DWORD PTR 8[rbx]
	add	eax, 1
	mov	DWORD PTR 12[rbx], eax
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gdImageClipRectangle, .-gdImageClipRectangle
	.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_gdImageClipRectangle.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gdImageClipRectangle, %function
gdImageClipRectangle:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	sub	sp, sp, #32
	ldr	ip, .L6
	add	r3, sp, #24
	str	r3, [sp]
	add	r2, sp, #16
	add	r3, sp, #20
	add	r1, sp, #12
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bl	gdImageGetClip
	ldm	r4, {r0, r6}
	ldr	r3, [r4, #12]
	ldr	r5, [r4, #8]
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #12]
	add	r5, r5, r3
	add	r6, r0, r6
	bl	CLAMP
	ldr	r2, [sp, #24]
	ldr	r1, [sp, #16]
	str	r0, [r4]
	ldr	r0, [r4, #8]
	bl	CLAMP
	mov	r3, r0
	sub	r6, r6, #1
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #12]
	str	r3, [r4, #8]
	mov	r0, r6
	bl	CLAMP
	mov	r3, r0
	ldr	r2, [r4]
	sub	r5, r5, #1
	sub	r3, r3, r2
	add	r3, r3, #1
	ldr	r2, [sp, #24]
	str	r3, [r4, #4]
	mov	r0, r5
	ldr	r1, [sp, #16]
	bl	CLAMP
	ldr	r3, [r4, #8]
	sub	r0, r0, r3
	add	r0, r0, #1
	ldr	r3, .L6
	str	r0, [r4, #12]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	gdImageClipRectangle, .-gdImageClipRectangle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
