	.file	"extr_scissor.c_gl_scissor_span.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gl_scissor_span
	.type	gl_scissor_span, @function
gl_scissor_span:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	xor	r9d, r9d
	cmp	QWORD PTR [rax], rcx
	jg	.L1
	cmp	QWORD PTR 8[rax], rcx
	jl	.L1
	mov	rcx, QWORD PTR 16[rax]
	cmp	rcx, rdx
	jl	.L1
	mov	rdi, QWORD PTR 24[rax]
	lea	rax, [rdx+rsi]
	cmp	rax, rdi
	jle	.L1
	cmp	rdi, rdx
	jle	.L14
	lea	r9, 0[0+rdx*8]
	mov	r10, r8
	mov	rax, r8
	sub	r10, r9
	lea	rdi, [r10+rdi*8]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rax, rdi
	jne	.L4
	sub	rsi, 1
	lea	rax, [rsi+rdx]
	cmp	rcx, rax
	jge	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	mov	QWORD PTR [r8+rsi*8], 0
.L14:
	sub	rsi, 1
	lea	rax, [rsi+rdx]
	cmp	rcx, rax
	jl	.L5
.L16:
	mov	r9d, 1
.L1:
	mov	rax, r9
	ret
	.cfi_endproc
.LFE0:
	.size	gl_scissor_span, .-gl_scissor_span
	.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_scissor.c_gl_scissor_span.c"
	.text
	.align	2
	.global	gl_scissor_span
	.syntax unified
	.arm
	.fpu softvfp
	.type	gl_scissor_span, %function
gl_scissor_span:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r0]
	ldr	ip, [r0]
	cmp	ip, r3
	bgt	.L10
	ldr	ip, [r0, #4]
	cmp	ip, r3
	blt	.L10
	ldr	ip, [r0, #8]
	cmp	ip, r2
	blt	.L10
	push	{r4, lr}
	ldr	r4, [r0, #12]
	add	r3, r2, r1
	cmp	r3, r4
	ble	.L11
	cmp	r4, r2
	ble	.L3
	mov	lr, #0
	ldr	r3, [sp, #8]
	sub	r0, r3, r2, lsl #2
	add	r0, r0, r4, lsl #2
.L4:
	str	lr, [r3], #4
	cmp	r3, r0
	bne	.L4
.L3:
	sub	r3, r1, #1
	add	r0, r2, r3
	cmp	ip, r0
	bge	.L7
	mov	lr, #0
	ldr	r0, [sp, #8]
	add	r1, r0, r1, lsl #2
.L6:
	sub	r3, r3, #1
	add	r0, r3, r2
	cmp	ip, r0
	str	lr, [r1, #-4]!
	blt	.L6
.L7:
	mov	r0, #1
	pop	{r4, pc}
.L10:
	mov	r0, #0
	bx	lr
.L11:
	mov	r0, #0
	pop	{r4, pc}
	.size	gl_scissor_span, .-gl_scissor_span
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
