	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcp2_locality_check
_hdcp2_locality_check:                  ## @hdcp2_locality_check
	.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	%rdi, %r12
	callq	_conn_to_dig_port
	movq	%rax, %r14
	movq	_HDCP2_LC_RETRY_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	(%r12), %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hdcp2_prepare_lc_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	*(%r13)
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_HDCP_2_2_LC_SEND_LPRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	*8(%r13)
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hdcp2_verify_lprime
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
                                        ## implicit-def: $eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCP2_LC_RETRY_CNT,4,2         ## @HDCP2_LC_RETRY_CNT
	.comm	_HDCP_2_2_LC_SEND_LPRIME,4,2    ## @HDCP_2_2_LC_SEND_LPRIME
	.no_dead_strip	_hdcp2_locality_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcp2_locality_check
_hdcp2_locality_check:                  ; @hdcp2_locality_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_conn_to_dig_port
Lloh0:
	adrp	x8, _HDCP2_LC_RETRY_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDCP2_LC_RETRY_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x22, [x19]
Lloh3:
	adrp	x23, _HDCP_2_2_LC_SEND_LPRIME@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HDCP_2_2_LC_SEND_LPRIME@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_hdcp2_prepare_lc_init
	tbnz	w0, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #4
	blr	x8
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	blr	x8
	tbnz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_hdcp2_verify_lprime
	cbnz	w0, LBB0_2
	b	LBB0_8
LBB0_7:
                                        ; implicit-def: $w0
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCP2_LC_RETRY_CNT,4,2         ; @HDCP2_LC_RETRY_CNT
	.comm	_HDCP_2_2_LC_SEND_LPRIME,4,2    ; @HDCP_2_2_LC_SEND_LPRIME
	.no_dead_strip	_hdcp2_locality_check
.subsections_via_symbols
