	.file	"extr_si.c_si_vm_packet3_cp_dma_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CP DMA Bad SRC register\n"
.LC1:
	.string	"CP DMA Bad DST register\n"
	.text
	.p2align 4
	.type	si_vm_packet3_cp_dma_check, @function
si_vm_packet3_cp_dma_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rsi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	add	rsi, 4
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 0[0+rsi*4]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR [rdi+rsi*4]
	mov	r14d, DWORD PTR -12[rdi+r13]
	test	DWORD PTR PACKET3_CP_DMA_CMD_SAS[rip], r12d
	je	.L2
	test	r14d, 1610612736
	jne	.L2
	mov	eax, DWORD PTR -16[rdi+r13]
	lea	edi, 0[0+rax*4]
	test	DWORD PTR PACKET3_CP_DMA_CMD_SAIC[rip], r12d
	jne	.L3
	mov	eax, r12d
	mov	ebx, edi
	and	eax, 2097151
	lea	r15d, [rdi+rax*4]
	jne	.L7
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	add	ebx, 4
	cmp	ebx, r15d
	je	.L2
.L7:
	mov	edi, ebx
	call	si_vm_reg_valid@PLT
	test	eax, eax
	jne	.L6
.L25:
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	call	si_vm_reg_valid@PLT
	test	eax, eax
	je	.L25
	.p2align 4,,10
	.p2align 3
.L2:
	test	DWORD PTR PACKET3_CP_DMA_CMD_DAS[rip], r12d
	je	.L8
	and	r14d, 3145728
	jne	.L8
	mov	edi, DWORD PTR -8[rbp+r13]
	test	DWORD PTR PACKET3_CP_DMA_CMD_DAIC[rip], r12d
	jne	.L9
	and	r12d, 2097151
	mov	ebx, edi
	lea	ebp, [rdi+r12*4]
	jne	.L12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	add	ebx, 4
	cmp	ebp, ebx
	je	.L8
.L12:
	mov	edi, ebx
	call	si_vm_reg_valid@PLT
	test	eax, eax
	jne	.L11
.L24:
	lea	rdi, .LC1[rip]
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	call	si_vm_reg_valid@PLT
	test	eax, eax
	je	.L24
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	si_vm_packet3_cp_dma_check, .-si_vm_packet3_cp_dma_check
	.comm	PACKET3_CP_DMA_CMD_SAS,4,4
	.comm	PACKET3_CP_DMA_CMD_SAIC,4,4
	.comm	PACKET3_CP_DMA_CMD_DAS,4,4
	.comm	PACKET3_CP_DMA_CMD_DAIC,4,4
	.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_vm_packet3_cp_dma_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CP DMA Bad SRC register\012\000"
	.align	2
.LC1:
	.ascii	"CP DMA Bad DST register\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_vm_packet3_cp_dma_check, %function
si_vm_packet3_cp_dma_check:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L25
	push	{r4, r5, r6, r7, r8, lr}
	add	r6, r1, #4
	ldr	r5, [r0, r6, lsl #2]
	ldr	r3, [r3]
	add	r6, r0, r6, lsl #2
	tst	r5, r3
	ldr	r8, [r6, #-12]
	beq	.L2
	tst	r8, #1610612736
	bne	.L2
	ldr	r3, .L25+4
	ldr	r0, [r6, #-16]
	ldr	r3, [r3]
	lsl	r0, r0, #2
	tst	r5, r3
	bne	.L3
	bic	r7, r5, #-16777216
	bic	r7, r7, #14680064
	cmp	r7, #0
	movne	r4, r0
	addne	r7, r4, r7, lsl #2
	bne	.L7
	b	.L2
.L6:
	cmp	r4, r7
	beq	.L2
.L7:
	mov	r0, r4
	bl	si_vm_reg_valid
	cmp	r0, #0
	add	r4, r4, #4
	bne	.L6
.L22:
	ldr	r0, .L25+8
	bl	DRM_ERROR
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	bl	si_vm_reg_valid
	cmp	r0, #0
	beq	.L22
.L2:
	ldr	r3, .L25+16
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L8
	tst	r8, #3145728
	bne	.L8
	ldr	r3, .L25+20
	ldr	r0, [r6, #-8]
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L9
	bic	r5, r5, #-16777216
	bic	r5, r5, #14680064
	cmp	r5, #0
	movne	r4, r0
	addne	r5, r4, r5, lsl #2
	bne	.L12
	b	.L8
.L11:
	cmp	r5, r4
	beq	.L8
.L12:
	mov	r0, r4
	bl	si_vm_reg_valid
	cmp	r0, #0
	add	r4, r4, #4
	bne	.L11
.L23:
	ldr	r0, .L25+24
	bl	DRM_ERROR
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	si_vm_reg_valid
	cmp	r0, #0
	beq	.L23
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	.align	2
.L25:
	.word	PACKET3_CP_DMA_CMD_SAS
	.word	PACKET3_CP_DMA_CMD_SAIC
	.word	.LC0
	.word	EINVAL
	.word	PACKET3_CP_DMA_CMD_DAS
	.word	PACKET3_CP_DMA_CMD_DAIC
	.word	.LC1
	.size	si_vm_packet3_cp_dma_check, .-si_vm_packet3_cp_dma_check
	.comm	PACKET3_CP_DMA_CMD_SAS,4,4
	.comm	PACKET3_CP_DMA_CMD_SAIC,4,4
	.comm	PACKET3_CP_DMA_CMD_DAS,4,4
	.comm	PACKET3_CP_DMA_CMD_DAIC,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
