	.file	"extr_intel_hdmi.c_hdcp2_detect_msg_availability.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"rx_status read failed. Err %d\n"
	.text
	.p2align 4
	.type	hdcp2_detect_msg_availability, @function
hdcp2_detect_msg_availability:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, esi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR HDCP_2_2_HDMI_RXSTATUS_LEN[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	lea	rsi, 3[rsp]
	mov	r15, rsi
	and	rsi, -4
	call	intel_hdmi_hdcp2_read_rx_status@PLT
	shr	r15, 2
	mov	r14d, eax
	test	eax, eax
	js	.L19
	mov	edi, DWORD PTR 4[0+r15*4]
	call	HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI@PLT
	sal	eax, 8
	or	eax, DWORD PTR 0[0+r15*4]
	mov	DWORD PTR [rbx], eax
	cmp	DWORD PTR HDCP_2_2_REP_SEND_RECVID_LIST[rip], r13d
	je	.L20
.L7:
	mov	DWORD PTR [r12], eax
	xor	r14d, r14d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -40[rbp]
	mov	eax, r14d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_KMS@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR 4[0+r15*4]
	call	HDCP_2_2_HDMI_RXSTATUS_READY@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L7
	mov	edx, DWORD PTR [rbx]
	xor	eax, eax
	test	edx, edx
	setne	al
	jmp	.L7
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hdcp2_detect_msg_availability, .-hdcp2_detect_msg_availability
	.comm	HDCP_2_2_REP_SEND_RECVID_LIST,4,4
	.comm	HDCP_2_2_HDMI_RXSTATUS_LEN,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_intel_hdmi.c_hdcp2_detect_msg_availability.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rx_status read failed. Err %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hdcp2_detect_msg_availability, %function
hdcp2_detect_msg_availability:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	ip, .L15
	mov	r7, r1
	ldr	r1, [ip]
	mov	r5, r3
	lsl	r1, r1, #2
	add	r1, r1, #7
	bic	r1, r1, #7
	sub	sp, sp, r1
	mov	r8, sp
	ldr	r3, .L15+4
	mov	r1, r8
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	intel_hdmi_hdcp2_read_rx_status
	subs	r4, r0, #0
	blt	.L12
	ldr	r0, [r8, #4]
	bl	HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI
	ldr	r3, [r8]
	ldr	r2, .L15+8
	orr	r0, r3, r0, lsl #8
	str	r0, [r5]
	ldr	r3, [r2]
	cmp	r3, r7
	movne	r4, #0
	strne	r0, [r6]
	beq	.L13
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L12:
	mov	r1, r4
	ldr	r0, .L15+12
	bl	DRM_DEBUG_KMS
	b	.L1
.L13:
	ldr	r0, [r8, #4]
	bl	HDCP_2_2_HDMI_RXSTATUS_READY
	cmp	r0, #0
	beq	.L5
	ldr	r0, [r5]
	subs	r0, r0, #0
	movne	r0, #1
.L5:
	mov	r4, #0
	str	r0, [r6]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	HDCP_2_2_HDMI_RXSTATUS_LEN
	.word	.LC1
	.word	HDCP_2_2_REP_SEND_RECVID_LIST
	.word	.LC0
	.size	hdcp2_detect_msg_availability, .-hdcp2_detect_msg_availability
	.comm	HDCP_2_2_REP_SEND_RECVID_LIST,4,4
	.comm	HDCP_2_2_HDMI_RXSTATUS_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
