	.file	"extr_i915_cmd_parser.c_gen7_render_get_cmd_length_mask.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CMD: Abnormal rcs cmd length! 0x%08X\n"
	.text
	.p2align 4
	.type	gen7_render_get_cmd_length_mask, @function
gen7_render_get_cmd_length_mask:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR INSTR_CLIENT_SHIFT[rip]
	mov	rax, rdi
	sar	rax, cl
	cmp	QWORD PTR INSTR_MI_CLIENT[rip], rax
	je	.L4
	cmp	QWORD PTR INSTR_RC_CLIENT[rip], rax
	mov	rsi, rdi
	jne	.L3
	mov	rcx, QWORD PTR INSTR_SUBCLIENT_SHIFT[rip]
	mov	edx, 255
	mov	eax, 65535
	and	rsi, QWORD PTR INSTR_SUBCLIENT_MASK[rip]
	sar	rsi, cl
	cmp	QWORD PTR INSTR_MEDIA_SUBCLIENT[rip], rsi
	cmovne	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_DRIVER@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, 63
	ret
	.cfi_endproc
.LFE0:
	.size	gen7_render_get_cmd_length_mask, .-gen7_render_get_cmd_length_mask
	.comm	INSTR_SUBCLIENT_SHIFT,8,8
	.comm	INSTR_SUBCLIENT_MASK,8,8
	.comm	INSTR_RC_CLIENT,8,8
	.comm	INSTR_MI_CLIENT,8,8
	.comm	INSTR_MEDIA_SUBCLIENT,8,8
	.comm	INSTR_CLIENT_SHIFT,8,8
	.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_i915_cmd_parser.c_gen7_render_get_cmd_length_mask.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CMD: Abnormal rcs cmd length! 0x%08X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen7_render_get_cmd_length_mask, %function
gen7_render_get_cmd_length_mask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, r0
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	asr	r0, r0, r3
	cmp	r2, r1, asr r3
	beq	.L4
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L3
	ldr	r0, .L10+12
	ldr	r3, .L10+16
	ldr	r2, .L10+20
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r1, r1, r0
	cmp	r3, r1, asr r2
	ldr	r0, .L10+24
	movne	r0, #255
	bx	lr
.L3:
	push	{r4, lr}
	ldr	r0, .L10+28
	bl	DRM_DEBUG_DRIVER
	mov	r0, #0
	pop	{r4, pc}
.L4:
	mov	r0, #63
	bx	lr
.L11:
	.align	2
.L10:
	.word	INSTR_CLIENT_SHIFT
	.word	INSTR_MI_CLIENT
	.word	INSTR_RC_CLIENT
	.word	INSTR_SUBCLIENT_MASK
	.word	INSTR_MEDIA_SUBCLIENT
	.word	INSTR_SUBCLIENT_SHIFT
	.word	65535
	.word	.LC0
	.size	gen7_render_get_cmd_length_mask, .-gen7_render_get_cmd_length_mask
	.comm	INSTR_SUBCLIENT_SHIFT,4,4
	.comm	INSTR_SUBCLIENT_MASK,4,4
	.comm	INSTR_RC_CLIENT,4,4
	.comm	INSTR_MI_CLIENT,4,4
	.comm	INSTR_MEDIA_SUBCLIENT,4,4
	.comm	INSTR_CLIENT_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
