	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_hdcp2_wait_for_msg
_intel_hdmi_hdcp2_wait_for_msg:         ## @intel_hdmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_get_hdcp2_msg_timeout
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_hdcp2_detect_msg_availability
	testl	%eax, %eax
	sete	%cl
	cmpl	$0, -32(%rbp)
	setne	%dl
	andb	%cl, %dl
	cmpl	$0, -28(%rbp)
	setne	%cl
	andb	%dl, %cl
	movzbl	%cl, %esi
	imull	$1000, %r15d, %edx              ## imm = 0x3E8
	movl	%eax, %edi
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$5000, %r8d                     ## imm = 0x1388
	callq	___wait_for
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_DRM_DEBUG_KMS
LBB0_3:
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movl	-28(%rbp), %ebx
LBB0_5:
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msg_id: %d, ret: %d, timeout: %d\n"

	.no_dead_strip	_intel_hdmi_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_hdmi_hdcp2_wait_for_msg
_intel_hdmi_hdcp2_wait_for_msg:         ; @intel_hdmi_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	x21, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_get_hdcp2_msg_timeout
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_hdcp2_detect_msg_availability
	cmp	w0, #0
	ldr	w8, [sp, #12]
	ccmp	w8, #0, #4, eq
	ldr	w8, [sp, #8]
	ccmp	w8, #0, #4, ne
	cset	w1, ne
	mov	w8, #1000
	mul	w2, w20, w8
	mov	w3, #1000
	mov	w4, #5000
	bl	___wait_for
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_DRM_DEBUG_KMS
LBB0_3:
	ldr	w8, [sp, #8]
	cmp	w21, #0
	csel	w20, w8, w21, eq
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msg_id: %d, ret: %d, timeout: %d\n"

	.no_dead_strip	_intel_hdmi_hdcp2_wait_for_msg
.subsections_via_symbols
