	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_hdcp2_read_msg
_intel_hdmi_hdcp2_read_msg:             ## @intel_hdmi_hdcp2_read_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	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movl	(%rax), %edx
	callq	_intel_hdmi_hdcp2_wait_for_msg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%ebx, %eax
	cmpq	%r15, %rax
	jbe	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_DRM_DEBUG_KMS
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_HDCP_2_2_HDMI_REG_RD_MSG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_intel_hdmi_hdcp_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msg_sz(%zd) is more than exp size(%zu)\n"

	.comm	_HDCP_2_2_HDMI_REG_RD_MSG_OFFSET,4,2 ## @HDCP_2_2_HDMI_REG_RD_MSG_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read msg_id: %d(%zd)\n"

	.no_dead_strip	_intel_hdmi_hdcp2_read_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_read_msg
_intel_hdmi_hdcp2_read_msg:             ; @intel_hdmi_hdcp2_read_msg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	w2, [x8]
	bl	_intel_hdmi_hdcp2_wait_for_msg
	mov	x19, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w8, w19
	cmp	x8, x21
	b.ls	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_DRM_DEBUG_KMS
	mov	w19, #-1
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _HDCP_2_2_HDMI_REG_RD_MSG_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDCP_2_2_HDMI_REG_RD_MSG_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x19
	bl	_intel_hdmi_hdcp_read
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_DRM_DEBUG_KMS
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msg_sz(%zd) is more than exp size(%zu)\n"

	.comm	_HDCP_2_2_HDMI_REG_RD_MSG_OFFSET,4,2 ; @HDCP_2_2_HDMI_REG_RD_MSG_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read msg_id: %d(%zd)\n"

	.no_dead_strip	_intel_hdmi_hdcp2_read_msg
.subsections_via_symbols
