	.file	"extr_si.c_si_ib_parse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Packet0 not allowed!\n"
.LC1:
	.string	"Non-PM4 ring %d !\n"
.LC2:
	.string	"Unknown packet type %d !\n"
	.text
	.p2align 4
	.globl	si_ib_parse
	.type	si_ib_parse, @function
si_ib_parse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	edx, 129
	je	.L19
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L6:
	test	eax, eax
	jne	.L1
.L7:
	cmp	QWORD PTR 0[rbp], rbx
	jbe	.L20
.L13:
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR [rsp], rbx
	lea	r14, 0[0+rbx*4]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	RADEON_CP_PACKET_GET_TYPE@PLT
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	RADEON_CP_PACKET_GET_COUNT@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 12[rsp], eax
	cmp	edx, 130
	je	.L2
	cmp	edx, 131
	jne	.L21
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	test	eax, eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	rbx, 1
	cmp	QWORD PTR 0[rbp], rbx
	ja	.L13
.L20:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax+r14]
	call	RADEON_CP_PACKET3_GET_OPCODE@PLT
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR 24[rbp]
	test	eax, eax
	jne	.L23
	mov	edx, DWORD PTR 8[rbp]
	cmp	edx, 128
	je	.L10
	lea	eax, -132[rdx]
	cmp	eax, 1
	ja	.L11
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdx, r13
	mov	rdi, r12
	call	si_vm_packet3_compute_check@PLT
.L9:
	mov	ecx, DWORD PTR 12[rsp]
	lea	edx, 2[rcx]
	movsx	rdx, edx
	add	rbx, rdx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdx, r13
	mov	rdi, r12
	call	si_vm_packet3_ce_check@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdx, r13
	mov	rdi, r12
	call	si_vm_packet3_gfx_check@PLT
	jmp	.L9
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	si_ib_parse, .-si_ib_parse
	.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_si.c_si_ib_parse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Packet0 not allowed!\012\000"
	.align	2
.LC1:
	.ascii	"Non-PM4 ring %d !\012\000"
	.align	2
.LC2:
	.ascii	"Unknown packet type %d !\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	si_ib_parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_ib_parse, %function
si_ib_parse:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	r3, .L24
	sub	sp, sp, #28
	mov	r5, r0
	mov	fp, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r4
	ldr	r9, .L24+4
	ldr	r7, .L24+8
	ldr	r8, .L24+12
	ldr	r10, .L24+16
	b	.L13
.L21:
	cmp	r2, #129
	beq	.L19
	mov	r1, r8
	ldr	r0, [r5]
	bl	dev_err
	ldr	r0, [r7]
	rsb	r0, r0, #0
.L6:
	cmp	r0, #0
	bne	.L1
.L7:
	ldr	r3, [fp]
	cmp	r3, r4
	bls	.L20
.L13:
	ldr	r3, [fp, #8]
	str	r4, [sp]
	ldr	r0, [r3, r4, lsl #2]
	bl	RADEON_CP_PACKET_GET_TYPE
	ldr	r3, [fp, #8]
	str	r0, [sp, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	RADEON_CP_PACKET_GET_COUNT
	ldr	r2, [sp, #4]
	str	r0, [sp, #8]
	cmp	r2, #130
	str	r6, [sp, #16]
	lsl	r3, r4, #2
	beq	.L2
	cmp	r2, #131
	bne	.L21
	mov	r1, r9
	ldr	r0, [r5]
	bl	dev_err
	ldr	r0, [r7]
	rsb	r0, r0, #0
	cmp	r0, #0
	beq	.L7
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [fp]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L13
.L20:
	mov	r0, #0
	b	.L1
.L19:
	ldr	r2, [fp, #8]
	ldr	r0, [r2, r3]
	bl	RADEON_CP_PACKET3_GET_OPCODE
	ldr	r3, [fp, #12]
	str	r0, [sp, #12]
	cmp	r3, #0
	bne	.L23
	ldr	r2, [fp, #4]
	cmp	r2, #128
	beq	.L10
	sub	r3, r2, #132
	cmp	r3, #1
	bhi	.L11
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [fp, #8]
	bl	si_vm_packet3_compute_check
.L9:
	ldr	r3, [sp, #8]
	add	r3, r3, #2
	add	r4, r4, r3
	b	.L6
.L23:
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [fp, #8]
	bl	si_vm_packet3_ce_check
	b	.L9
.L11:
	mov	r1, r10
	ldr	r0, [r5]
	bl	dev_err
	ldr	r0, [r7]
	rsb	r0, r0, #0
	b	.L9
.L10:
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [fp, #8]
	bl	si_vm_packet3_gfx_check
	b	.L9
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	.LC0
	.word	EINVAL
	.word	.LC2
	.word	.LC1
	.size	si_ib_parse, .-si_ib_parse
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
