	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_hdcp_parse_hdcp1_srm
_drm_hdcp_parse_hdcp1_srm:              ## @drm_hdcp_parse_hdcp1_srm
	.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	_DRM_HDCP_1_4_VRL_LENGTH_SIZE@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	movq	_DRM_HDCP_1_4_DCP_SIG_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rax
	addq	$16, %rax
	cmpq	%rsi, %rax
	jbe	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_DRM_ERROR
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_5:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movl	12(%rbx), %r12d
	callq	_be16_to_cpu
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movl	(%rbx), %edi
	callq	_WARN_ON
	addq	$64, %rbx
	movq	%rbx, %rdi
	callq	_get_vrl_length
	movl	%eax, %r12d
	cltq
	addq	$16, %rax
	cmpq	%r14, %rax
	ja	LBB0_7
## %bb.6:
	movslq	(%r13), %rax
	movq	_DRM_HDCP_1_4_DCP_SIG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	subl	%ecx, %r12d
	jge	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_12:
	leaq	(%rbx,%rax,4), %r15
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_drm_hdcp_get_revoked_ksv_count
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	%eax, %ebx
	movq	_srm_data@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	4(%rax), %edi
	callq	_kfree
	movq	_DRM_HDCP_KSV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_kcalloc
	movq	(%r13), %rcx
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_drm_hdcp_get_revoked_ksvs
	movq	(%r13), %rcx
	cmpl	%ebx, %eax
	jne	LBB0_19
## %bb.15:
	movl	%ebx, (%rcx)
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_17:
	movl	%r14d, %r15d
	jmp	LBB0_9
LBB0_18:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	movl	$0, (%rcx)
	movl	4(%rcx), %edi
	callq	_kfree
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_HDCP_1_4_VRL_LENGTH_SIZE,4,2 ## @DRM_HDCP_1_4_VRL_LENGTH_SIZE
	.comm	_DRM_HDCP_1_4_DCP_SIG_SIZE,4,2  ## @DRM_HDCP_1_4_DCP_SIG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid blob length\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"SRM ID: 0x%x, SRM Ver: 0x%x, SRM Gen No: 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid blob length or vrl length\n"

L_.str.3:                               ## @.str.3
	.asciz	"No vrl found\n"

L_.str.4:                               ## @.str.4
	.asciz	"Revoked KSV count is 0\n"

	.comm	_srm_data,8,3                   ## @srm_data
	.comm	_DRM_HDCP_KSV_LEN,4,2           ## @DRM_HDCP_KSV_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.5:                               ## @.str.5
	.asciz	"Out of Memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_drm_hdcp_parse_hdcp1_srm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_hdcp_parse_hdcp1_srm
_drm_hdcp_parse_hdcp1_srm:              ; @drm_hdcp_parse_hdcp1_srm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x22, _DRM_HDCP_1_4_VRL_LENGTH_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DRM_HDCP_1_4_VRL_LENGTH_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x22]
Lloh2:
	adrp	x23, _DRM_HDCP_1_4_DCP_SIG_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DRM_HDCP_1_4_DCP_SIG_SIZE@GOTPAGEOFF]
	ldrsw	x9, [x23]
	add	x8, x8, x9
	add	x8, x8, #16
	cmp	x8, x1
	b.ls	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w21, [x20, #12]
	bl	_be16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20, #4]
	stp	x0, x8, [sp, #8]
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w0, [x20]
	bl	_WARN_ON
	add	x21, x20, #64
	mov	x0, x21
	bl	_get_vrl_length
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, #16
	cmp	x8, x19
	b.hi	LBB0_4
; %bb.3:
	ldrsw	x8, [x22]
	ldr	w9, [x23]
	add	w9, w9, w8
	subs	w20, w0, w9
	b.ge	LBB0_9
LBB0_4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_5:
	bl	_DRM_ERROR
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	b.ne	LBB0_11
; %bb.10:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_11:
	add	x22, x21, x8, lsl #2
	mov	x0, x22
	mov	x1, x20
	bl	_drm_hdcp_get_revoked_ksv_count
	cbz	w0, LBB0_15
; %bb.12:
	mov	x21, x0
Lloh14:
	adrp	x23, _srm_data@GOTPAGE
Lloh15:
	ldr	x23, [x23, _srm_data@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	bl	_kfree
Lloh16:
	adrp	x8, _DRM_HDCP_KSV_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DRM_HDCP_KSV_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_kcalloc
	ldr	x8, [x23]
	str	w0, [x8, #4]
	cbz	w0, LBB0_16
; %bb.13:
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	bl	_drm_hdcp_get_revoked_ksvs
	ldr	x8, [x23]
	cmp	w0, w21
	b.ne	LBB0_17
; %bb.14:
	str	w21, [x8]
	b	LBB0_8
LBB0_15:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_8
LBB0_16:
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	str	wzr, [x8]
	ldr	w0, [x8, #4]
	bl	_kfree
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_HDCP_1_4_VRL_LENGTH_SIZE,4,2 ; @DRM_HDCP_1_4_VRL_LENGTH_SIZE
	.comm	_DRM_HDCP_1_4_DCP_SIG_SIZE,4,2  ; @DRM_HDCP_1_4_DCP_SIG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid blob length\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"SRM ID: 0x%x, SRM Ver: 0x%x, SRM Gen No: 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid blob length or vrl length\n"

l_.str.3:                               ; @.str.3
	.asciz	"No vrl found\n"

l_.str.4:                               ; @.str.4
	.asciz	"Revoked KSV count is 0\n"

	.comm	_srm_data,8,3                   ; @srm_data
	.comm	_DRM_HDCP_KSV_LEN,4,2           ; @DRM_HDCP_KSV_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.5:                               ; @.str.5
	.asciz	"Out of Memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_drm_hdcp_parse_hdcp1_srm
.subsections_via_symbols
