	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_hdcp_repeater_check_flow_prepare_ack
_mei_hdcp_repeater_check_flow_prepare_ack: ## @mei_hdcp_repeater_check_flow_prepare_ack
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.2:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.3:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.4:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	_to_mei_cl_device
	movq	%rax, %r12
	movq	_HDCP_API_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_WIRED_VERIFY_REPEATER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_ME_HDCP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	_WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -108(%rbp)
	movl	(%rbx), %edi
	callq	_mei_get_ddi_index
	movl	%eax, -112(%rbp)
	movl	12(%r13), %esi
	movq	_HDCP_2_2_RXINFO_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_memcpy
	movl	8(%r13), %esi
	movq	_HDCP_2_2_SEQ_NUM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_memcpy
	movl	4(%r13), %esi
	movq	_HDCP_2_2_V_PRIME_HALF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_memcpy
	movl	(%r13), %esi
	movq	_HDCP_2_2_RECEIVER_IDS_MAX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_memcpy
	leaq	-128(%rbp), %rsi
	movq	%r12, %rdi
	movl	$56, %edx
	callq	_mei_cldev_send
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	$24, %edx
	callq	_mei_cldev_recv
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movq	-56(%rbp), %rcx
	movq	_ME_HDCP_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.7:
	movl	4(%r14), %edi
	movl	-64(%rbp), %esi
	movq	_HDCP_2_2_V_PRIME_HALF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_HDCP_2_2_REP_SEND_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_10:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_14:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_WIRED_VERIFY_REPEATER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDCP_API_VERSION,4,2           ## @HDCP_API_VERSION
	.comm	_WIRED_VERIFY_REPEATER,4,2      ## @WIRED_VERIFY_REPEATER
	.comm	_ME_HDCP_STATUS_SUCCESS,8,3     ## @ME_HDCP_STATUS_SUCCESS
	.comm	_WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN,4,2 ## @WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN
	.comm	_HDCP_2_2_RXINFO_LEN,4,2        ## @HDCP_2_2_RXINFO_LEN
	.comm	_HDCP_2_2_SEQ_NUM_LEN,4,2       ## @HDCP_2_2_SEQ_NUM_LEN
	.comm	_HDCP_2_2_V_PRIME_HALF_LEN,4,2  ## @HDCP_2_2_V_PRIME_HALF_LEN
	.comm	_HDCP_2_2_RECEIVER_IDS_MAX_LEN,4,2 ## @HDCP_2_2_RECEIVER_IDS_MAX_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mei_cldev_send failed. %zd\n"

L_.str.1:                               ## @.str.1
	.asciz	"mei_cldev_recv failed. %zd\n"

L_.str.2:                               ## @.str.2
	.asciz	"ME cmd 0x%08X failed. status: 0x%X\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_HDCP_2_2_REP_SEND_ACK,4,2      ## @HDCP_2_2_REP_SEND_ACK
	.no_dead_strip	_mei_hdcp_repeater_check_flow_prepare_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_hdcp_repeater_check_flow_prepare_ack
_mei_hdcp_repeater_check_flow_prepare_ack: ; @mei_hdcp_repeater_check_flow_prepare_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	xzr, [sp, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	str	q0, [sp, #32]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_8
; %bb.3:
	mov	x20, x3
	cbz	x3, LBB0_8
; %bb.4:
	mov	x23, x1
	mov	x0, x19
	bl	_to_mei_cl_device
	mov	x22, x0
Lloh0:
	adrp	x8, _HDCP_API_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDCP_API_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _WIRED_VERIFY_REPEATER@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WIRED_VERIFY_REPEATER@GOTPAGEOFF]
	ldr	w9, [x24]
	stp	w9, w8, [sp, #72]
Lloh5:
	adrp	x25, _ME_HDCP_STATUS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ME_HDCP_STATUS_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh7:
	adrp	x9, _WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN@GOTPAGEOFF]
	str	x8, [sp, #64]
Lloh9:
	ldr	w8, [x9]
	ldp	w0, w9, [x23]
	stp	w9, w8, [sp, #52]
	bl	_mei_get_ddi_index
	str	w0, [sp, #48]
	ldr	w1, [x21, #12]
Lloh10:
	adrp	x8, _HDCP_2_2_RXINFO_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDCP_2_2_RXINFO_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_memcpy
	ldr	w1, [x21, #8]
Lloh13:
	adrp	x8, _HDCP_2_2_SEQ_NUM_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDCP_2_2_SEQ_NUM_LEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_memcpy
	ldr	w1, [x21, #4]
Lloh16:
	adrp	x23, _HDCP_2_2_V_PRIME_HALF_LEN@GOTPAGE
Lloh17:
	ldr	x23, [x23, _HDCP_2_2_V_PRIME_HALF_LEN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w0, #0
	bl	_memcpy
	ldr	w1, [x21]
Lloh18:
	adrp	x8, _HDCP_2_2_RECEIVER_IDS_MAX_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HDCP_2_2_RECEIVER_IDS_MAX_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_memcpy
	add	x1, sp, #32
	mov	x0, x22
	mov	w2, #56
	bl	_mei_cldev_send
	tbnz	x0, #63, LBB0_10
; %bb.5:
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #24
	bl	_mei_cldev_recv
	tbnz	x0, #63, LBB0_11
; %bb.6:
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
	ldr	w0, [x20, #4]
	ldr	w1, [sp, #8]
	ldr	w2, [x23]
	bl	_memcpy
	mov	w21, #0
Lloh21:
	adrp	x8, _HDCP_2_2_REP_SEND_ACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDCP_2_2_REP_SEND_ACK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_12
LBB0_8:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_10:
	mov	x21, x0
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_12
LBB0_11:
	mov	x21, x0
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	ldrsw	x2, [x24]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh32:
	adrp	x8, _EIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDCP_API_VERSION,4,2           ; @HDCP_API_VERSION
	.comm	_WIRED_VERIFY_REPEATER,4,2      ; @WIRED_VERIFY_REPEATER
	.comm	_ME_HDCP_STATUS_SUCCESS,8,3     ; @ME_HDCP_STATUS_SUCCESS
	.comm	_WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN,4,2 ; @WIRED_CMD_BUF_LEN_VERIFY_REPEATER_IN
	.comm	_HDCP_2_2_RXINFO_LEN,4,2        ; @HDCP_2_2_RXINFO_LEN
	.comm	_HDCP_2_2_SEQ_NUM_LEN,4,2       ; @HDCP_2_2_SEQ_NUM_LEN
	.comm	_HDCP_2_2_V_PRIME_HALF_LEN,4,2  ; @HDCP_2_2_V_PRIME_HALF_LEN
	.comm	_HDCP_2_2_RECEIVER_IDS_MAX_LEN,4,2 ; @HDCP_2_2_RECEIVER_IDS_MAX_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mei_cldev_send failed. %zd\n"

l_.str.1:                               ; @.str.1
	.asciz	"mei_cldev_recv failed. %zd\n"

l_.str.2:                               ; @.str.2
	.asciz	"ME cmd 0x%08X failed. status: 0x%X\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_HDCP_2_2_REP_SEND_ACK,4,2      ; @HDCP_2_2_REP_SEND_ACK
	.no_dead_strip	_mei_hdcp_repeater_check_flow_prepare_ack
.subsections_via_symbols
