	.file	"extr_r100.c_r100_packet3_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No reloc for packet3 %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"PRIM_WALK must be 3 for IMMD draw\n"
	.align 8
.LC2:
	.string	"Packet3 opcode %x not supported\n"
	.text
	.p2align 4
	.type	r100_packet3_check, @function
r100_packet3_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebx, DWORD PTR [rsi]
	mov	esi, DWORD PTR 4[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r15, QWORD PTR 24[rdi]
	mov	r14, QWORD PTR 16[rdi]
	lea	r8d, 1[rbx]
	cmp	esi, 35
	je	.L2
	lea	eax, -128[rsi]
	cmp	eax, 10
	ja	.L3
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L18-.L5
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.text
.L18:
	xor	r13d, r13d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L8:
	.cfi_restore_state
	lea	esi, 2[rbx]
.L25:
	mov	rdi, rbp
	call	radeon_get_ib_value@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r14
	mov	DWORD PTR 8[r14], eax
	call	r100_cs_track_check@PLT
	mov	r13d, eax
	jmp	.L1
.L9:
	mov	esi, r8d
	jmp	.L25
.L10:
	mov	edx, r8d
	mov	rsi, r12
	call	r100_packet3_load_vbpntr@PLT
	mov	r13d, eax
	jmp	.L1
.L4:
	mov	rax, QWORD PTR 8[rdi]
	mov	ecx, DWORD PTR [rdi]
	xor	r13d, r13d
	cmp	DWORD PTR [rax], ecx
	je	.L1
.L23:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
.L11:
	lea	rsi, 16[rsp]
	xor	edx, edx
	call	radeon_cs_packet_next_reloc@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L21
	add	ebx, 2
	mov	rdi, rbp
	mov	esi, ebx
	call	radeon_get_ib_value@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	lea	rcx, [r15+rbx*4]
	add	eax, DWORD PTR 4[rdx]
	mov	DWORD PTR [rcx], eax
	mov	edx, DWORD PTR [rdx]
	call	r100_cs_track_check_pkt3_indx_buffer@PLT
	mov	r13d, eax
	jmp	.L1
.L7:
	mov	esi, r8d
	mov	DWORD PTR 12[rsp], r8d
	call	radeon_get_ib_value@PLT
	mov	r8d, DWORD PTR 12[rsp]
	xor	eax, 48
	test	al, 48
	je	.L16
.L24:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
.L6:
	lea	r13d, 2[rbx]
	mov	DWORD PTR 12[rsp], r8d
	mov	esi, r13d
	call	radeon_get_ib_value@PLT
	mov	r8d, DWORD PTR 12[rsp]
	xor	eax, 48
	test	al, 48
	jne	.L24
	mov	esi, r8d
	mov	rdi, rbp
	call	radeon_get_ib_value@PLT
	mov	edi, eax
	call	r100_get_vtx_size@PLT
	mov	esi, r13d
	mov	QWORD PTR 16[r14], rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L2:
	xor	edx, edx
	lea	rsi, 16[rsp]
	mov	DWORD PTR 12[rsp], r8d
	call	radeon_cs_packet_next_reloc@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	eax, eax
	mov	r13d, eax
	jne	.L21
	mov	esi, r8d
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], r8d
	call	radeon_get_ib_value@PLT
	mov	rcx, QWORD PTR 16[rsp]
	lea	esi, 3[rbx]
	mov	rdi, rbp
	mov	r8d, DWORD PTR 12[rsp]
	add	eax, DWORD PTR 4[rcx]
	lea	rdx, [r15+r8*4]
	mov	DWORD PTR [rdx], eax
	mov	DWORD PTR [r14], 1
	call	radeon_get_ib_value@PLT
	mov	edi, eax
	call	r100_get_vtx_size@PLT
	mov	rcx, QWORD PTR 16[rsp]
	lea	esi, 2[rbx]
	mov	rdi, rbp
	mov	rdx, QWORD PTR 24[r14]
	mov	QWORD PTR 16[r14], rax
	mov	ecx, DWORD PTR [rcx]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR 8[rdx], ecx
	call	radeon_get_ib_value@PLT
	lea	esi, 4[rbx]
	mov	DWORD PTR 4[r14], eax
.L22:
	mov	rdi, rbp
	call	radeon_get_ib_value@PLT
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR 8[r12]
	sub	eax, 1
.L26:
	mov	DWORD PTR 12[r14], eax
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r14
	call	r100_cs_track_check@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR 4[r12]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	radeon_cs_dump_packet@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, r8d
	mov	rdi, rbp
	call	radeon_get_ib_value@PLT
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR 8[r12]
	jmp	.L26
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	r100_packet3_check, .-r100_packet3_check
	.comm	EINVAL,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_r100.c_r100_packet3_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No reloc for packet3 %d\012\000"
	.align	2
.LC1:
	.ascii	"PRIM_WALK must be 3 for IMMD draw\012\000"
	.align	2
.LC2:
	.ascii	"Packet3 opcode %x not supported\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r100_packet3_check, %function
r100_packet3_check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r1, [r1, #4]
	ldr	r7, [r5]
	ldr	r3, .L29
	sub	sp, sp, #8
	cmp	r1, #35
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r9, [r0, #12]
	ldr	r8, [r0, #8]
	add	r10, r7, #1
	beq	.L2
	sub	r3, r1, #128
	cmp	r3, #10
	bhi	.L3
	cmp	r3, #10
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L19
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
	.word	.L4
.L4:
	ldr	r2, [r0, #4]
	ldr	r3, [r0]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L22
.L19:
	mov	r6, #0
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	add	r1, r7, #2
.L24:
	mov	r0, r4
	bl	radeon_get_ib_value
	mov	r1, r8
	str	r0, [r8, #8]
	ldr	r0, [r4, #4]
	bl	r100_cs_track_check
	mov	r6, r0
	b	.L1
.L9:
	mov	r1, r10
	b	.L24
.L10:
	mov	r2, r10
	mov	r1, r5
	bl	r100_packet3_load_vbpntr
	mov	r6, r0
	b	.L1
.L11:
	mov	r2, #0
	mov	r1, sp
	bl	radeon_cs_packet_next_reloc
	subs	r6, r0, #0
	bne	.L21
	add	r7, r7, #2
	mov	r1, r7
	mov	r0, r4
	bl	radeon_get_ib_value
	mov	r3, r0
	ldr	r2, [sp]
	mov	r1, r5
	ldr	ip, [r2, #4]
	mov	r0, r4
	add	r3, r3, ip
	str	r3, [r9, r7, lsl #2]
	ldr	r2, [r2]
	bl	r100_cs_track_check_pkt3_indx_buffer
	mov	r6, r0
	b	.L1
.L7:
	mov	r1, r10
	bl	radeon_get_ib_value
	eor	r0, r0, #48
	tst	r0, #48
	beq	.L16
.L26:
	ldr	r0, .L29+4
	bl	DRM_ERROR
	ldr	r3, .L29+8
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L6:
	add	r7, r7, #2
	mov	r1, r7
	bl	radeon_get_ib_value
	eor	r0, r0, #48
	tst	r0, #48
	bne	.L26
	mov	r1, r10
	mov	r0, r4
	bl	radeon_get_ib_value
	bl	r100_get_vtx_size
	mov	r1, r7
	str	r0, [r8, #16]
	b	.L23
.L3:
	ldr	r0, .L29+12
	bl	DRM_ERROR
.L22:
	ldr	r3, .L29+8
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L2:
	mov	r2, #0
	mov	r1, sp
	bl	radeon_cs_packet_next_reloc
	subs	r6, r0, #0
	bne	.L21
	mov	r1, r10
	mov	r0, r4
	bl	radeon_get_ib_value
	mov	r3, #1
	ldr	r2, [sp]
	add	r1, r7, #3
	ldr	r2, [r2, #4]
	add	r0, r0, r2
	str	r0, [r9, r10, lsl #2]
	str	r3, [r8]
	mov	r0, r4
	bl	radeon_get_ib_value
	bl	r100_get_vtx_size
	ldr	r2, [sp]
	ldr	r3, [r8, #20]
	ldr	r2, [r2]
	add	r1, r7, #2
	str	r0, [r8, #16]
	stm	r3, {r0, r2}
	mov	r0, r4
	bl	radeon_get_ib_value
	add	r1, r7, #4
	str	r0, [r8, #4]
.L23:
	mov	r0, r4
	bl	radeon_get_ib_value
	ldr	r3, [r5, #8]
	str	r0, [r8, #8]
	sub	r3, r3, #1
.L25:
	mov	r1, r8
	ldr	r0, [r4, #4]
	str	r3, [r8, #12]
	bl	r100_cs_track_check
	mov	r6, r0
	b	.L1
.L21:
	ldr	r1, [r5, #4]
	ldr	r0, .L29+16
	bl	DRM_ERROR
	mov	r1, r5
	mov	r0, r4
	bl	radeon_cs_dump_packet
	b	.L1
.L16:
	mov	r1, r10
	mov	r0, r4
	bl	radeon_get_ib_value
	ldr	r3, [r5, #8]
	str	r0, [r8, #8]
	b	.L25
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC3
	.word	.LC1
	.word	EINVAL
	.word	.LC2
	.word	.LC0
	.size	r100_packet3_check, .-r100_packet3_check
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
