	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdcp_check_ksvs_revoked    ## -- Begin function drm_hdcp_check_ksvs_revoked
	.p2align	4, 0x90
_drm_hdcp_check_ksvs_revoked:           ## @drm_hdcp_check_ksvs_revoked
	.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, %r15
	movq	_srm_data@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r13
	addq	$8, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_drm_hdcp_request_srm
	movq	(%rbx), %rdi
	movq	(%rdi), %r11
	xorl	%r15d, %r15d
	testq	%r11, %r11
	je	LBB0_16
## %bb.3:
	movq	16(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_16
## %bb.4:
	testq	%r14, %r14
	jle	LBB0_16
## %bb.5:
	movq	_DRM_HDCP_KSV_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	(,%r12,8), %r10
	xorl	%r9d, %r9d
	xorl	%r15d, %r15d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
	testq	%r11, %r11
	jle	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, %rcx
	xorl	%esi, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	%r10, %rcx
	incq	%rsi
	cmpq	%r11, %rsi
	je	LBB0_15
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
	testq	%r12, %r12
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	(%r13), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rax, %r12
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	(%r13,%rax,8), %rbx
	leaq	1(%rax), %rdx
	cmpq	(%rcx,%rax,8), %rbx
	movq	%rdx, %rax
	je	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%r10, %r13
	incq	%r9
	cmpq	%r14, %r9
	jne	LBB0_6
	jmp	LBB0_16
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%r13, %rdi
	callq	_drm_hdcp_print_ksv
	movq	_srm_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$1, %r15d
LBB0_16:
	addq	$8, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_srm_data,8,3                   ## @srm_data
	.comm	_DRM_HDCP_KSV_LEN,8,3           ## @DRM_HDCP_KSV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Revoked KSV is "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdcp_check_ksvs_revoked    ; -- Begin function drm_hdcp_check_ksvs_revoked
	.p2align	2
_drm_hdcp_check_ksvs_revoked:           ; @drm_hdcp_check_ksvs_revoked
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _srm_data@GOTPAGE
Lloh1:
	ldr	x22, [x22, _srm_data@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, x8, #8
	bl	_mutex_lock
	mov	x0, x21
	bl	_drm_hdcp_request_srm
	ldr	x8, [x22]
	ldr	x9, [x8]
	ldr	x10, [x8, #16]
	cmp	x9, #0
	ccmp	x10, #0, #4, ne
	ccmp	x20, #1, #8, ne
	b.ge	LBB0_4
LBB0_2:
	mov	w19, #0
	b	LBB0_15
LBB0_3:
	mov	w19, #0
	b	LBB0_16
LBB0_4:
	mov	x11, #0
Lloh2:
	adrp	x12, _DRM_HDCP_KSV_LEN@GOTPAGE
Lloh3:
	ldr	x12, [x12, _DRM_HDCP_KSV_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	lsl	x13, x12, #3
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	x9, #1
	b.lt	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x14, #0
	mov	x15, x10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x15, x15, x13
	add	x14, x14, #1
	cmp	x14, x9
	b.eq	LBB0_13
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	x12, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x16, [x19]
	ldr	x17, [x15]
	cmp	x16, x17
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w16, #1
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x12, x16
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	lsl	x17, x16, #3
	ldr	x0, [x19, x17]
	ldr	x17, [x15, x17]
	add	x16, x16, #1
	cmp	x0, x17
	b.eq	LBB0_11
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, x13
	add	x11, x11, #1
	cmp	x11, x20
	b.ne	LBB0_5
	b	LBB0_2
LBB0_14:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x19
	bl	_drm_hdcp_print_ksv
	ldr	x8, [x22]
	mov	w19, #1
LBB0_15:
	add	x0, x8, #8
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_srm_data,8,3                   ; @srm_data
	.comm	_DRM_HDCP_KSV_LEN,8,3           ; @DRM_HDCP_KSV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Revoked KSV is "

.subsections_via_symbols
