	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_hdcp2_wait_for_msg
_intel_dp_hdcp2_wait_for_msg:           ## @intel_dp_hdcp2_wait_for_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	(%rsi), %r12
	movl	$0, -44(%rbp)
	movq	_HDCP_2_2_AKE_SEND_HPRIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%rdi)
	je	LBB0_2
LBB0_3:
	leaq	12(%r13), %rax
	jmp	LBB0_4
LBB0_2:
	leaq	8(%r13), %rax
LBB0_4:
	movl	(%rax), %r14d
	cmpl	$0, 16(%r13)
	je	LBB0_5
## %bb.6:
	movl	%r14d, %esi
	callq	_intel_dp_hdcp_wait_for_cp_irq
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_hdcp2_detect_msg_availability
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	subl	(%rdx), %ebx
	cmpl	$0, -44(%rbp)
	cmovnel	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_DRM_DEBUG_KMS
	movl	%ebx, %ecx
	jmp	LBB0_8
LBB0_5:
	movl	%r14d, %edi
	callq	_mdelay
	xorl	%ecx, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCP_2_2_AKE_SEND_HPRIME,8,3   ## @HDCP_2_2_AKE_SEND_HPRIME
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msg_id %d, ret %d, timeout(mSec): %d\n"

	.no_dead_strip	_intel_dp_hdcp2_wait_for_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_hdcp2_wait_for_msg
_intel_dp_hdcp2_wait_for_msg:           ; @intel_dp_hdcp2_wait_for_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x21, [x1]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _HDCP_2_2_AKE_SEND_HPRIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDCP_2_2_AKE_SEND_HPRIME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_2:
	add	x8, x19, #12
	b	LBB0_4
LBB0_3:
	add	x8, x19, #8
LBB0_4:
	ldr	w22, [x8]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x1, x22
	bl	_intel_dp_hdcp_wait_for_cp_irq
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_hdcp2_detect_msg_availability
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w20, w0, w9, ne
	cbz	w20, LBB0_8
; %bb.6:
	ldr	x1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_DRM_DEBUG_KMS
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	bl	_mdelay
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCP_2_2_AKE_SEND_HPRIME,8,3   ; @HDCP_2_2_AKE_SEND_HPRIME
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msg_id %d, ret %d, timeout(mSec): %d\n"

	.no_dead_strip	_intel_dp_hdcp2_wait_for_msg
.subsections_via_symbols
