	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_hdcp_read_ksv_fifo
_intel_dp_hdcp_read_ksv_fifo:           ## @intel_dp_hdcp_read_ksv_fifo
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movl	%esi, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	$3, %esi
	callq	_min
	movq	_DRM_HDCP_KSV_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	movslq	%eax, %r14
	movq	_DP_AUX_HDCP_KSV_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%ebx, %ecx
	movslq	%ecx, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_drm_dp_dpcd_read
	cmpq	%r14, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$3, %ebx
	addl	$-3, %r13d
	cmpl	%r15d, %ebx
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_DRM_DEBUG_KMS
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_HDCP_KSV_LEN,4,2           ## @DRM_HDCP_KSV_LEN
	.comm	_DP_AUX_HDCP_KSV_FIFO,4,2       ## @DP_AUX_HDCP_KSV_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read ksv[%d] from DP/AUX failed (%zd)\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_intel_dp_hdcp_read_ksv_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_hdcp_read_ksv_fifo
_intel_dp_hdcp_read_ksv_fifo:           ; @intel_dp_hdcp_read_ksv_fifo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	w20, #0
Lloh0:
	adrp	x25, _DRM_HDCP_KSV_LEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DRM_HDCP_KSV_LEN@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DP_AUX_HDCP_KSV_FIFO@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DP_AUX_HDCP_KSV_FIFO@GOTPAGEOFF]
	mov	x23, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #3
	bl	_min
	ldr	w8, [x25]
	mul	w9, w8, w0
	sxtw	x24, w9
	ldr	w1, [x26]
	mul	w8, w8, w20
	add	x2, x19, w8, sxtw #2
	mov	x0, x22
	mov	x3, x24
	bl	_drm_dp_dpcd_read
	cmp	x0, x24
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #3
	sub	w23, w23, #3
	cmp	w20, w21
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_HDCP_KSV_LEN,4,2           ; @DRM_HDCP_KSV_LEN
	.comm	_DP_AUX_HDCP_KSV_FIFO,4,2       ; @DP_AUX_HDCP_KSV_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read ksv[%d] from DP/AUX failed (%zd)\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_intel_dp_hdcp_read_ksv_fifo
.subsections_via_symbols
