	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_ca_en50221_parse_attributes
_dvb_ca_en50221_parse_attributes:       ## @dvb_ca_en50221_parse_attributes
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -1100(%rbp)
	leaq	-1100(%rbp), %rdx
	leaq	-1096(%rbp), %rcx
	leaq	-1092(%rbp), %r8
	leaq	-1088(%rbp), %r9
	callq	_dvb_ca_en50221_read_tuple
	testl	%eax, %eax
	js	LBB0_21
## %bb.1:
	cmpl	$29, -1096(%rbp)
	jne	LBB0_44
## %bb.2:
	leaq	-1100(%rbp), %rdx
	leaq	-1096(%rbp), %rcx
	leaq	-1092(%rbp), %r8
	leaq	-1088(%rbp), %r9
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dvb_ca_en50221_read_tuple
	testl	%eax, %eax
	js	LBB0_21
## %bb.3:
	cmpl	$28, -1096(%rbp)
	jne	LBB0_44
## %bb.4:
	leaq	-1100(%rbp), %rdx
	leaq	-1096(%rbp), %rcx
	leaq	-1092(%rbp), %r8
	leaq	-1088(%rbp), %r9
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dvb_ca_en50221_read_tuple
	testl	%eax, %eax
	js	LBB0_21
## %bb.5:
	cmpl	$21, -1096(%rbp)
	jne	LBB0_44
## %bb.6:
	leaq	-1100(%rbp), %rdx
	leaq	-1096(%rbp), %rcx
	leaq	-1092(%rbp), %r8
	leaq	-1088(%rbp), %r9
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dvb_ca_en50221_read_tuple
	testl	%eax, %eax
	js	LBB0_21
## %bb.7:
	cmpl	$32, -1096(%rbp)
	jne	LBB0_44
## %bb.8:
	cmpl	$4, -1092(%rbp)
	jne	LBB0_44
## %bb.9:
	movl	-1084(%rbp), %r15d
	shll	$8, %r15d
	orl	-1088(%rbp), %r15d
	movl	-1076(%rbp), %r12d
	shll	$8, %r12d
	orl	-1080(%rbp), %r12d
	leaq	-1100(%rbp), %rdx
	leaq	-1096(%rbp), %rcx
	leaq	-1092(%rbp), %r8
	leaq	-1088(%rbp), %r9
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dvb_ca_en50221_read_tuple
	testl	%eax, %eax
	js	LBB0_21
## %bb.10:
	cmpl	$26, -1096(%rbp)
	jne	LBB0_44
## %bb.11:
	movl	-1092(%rbp), %ecx
	cmpl	$2, %ecx
	jle	LBB0_44
## %bb.12:
	movl	-1088(%rbp), %eax
	andl	$3, %eax
	leal	17(%rax), %edx
	cmpl	%edx, %ecx
	jb	LBB0_44
## %bb.13:
	movq	8(%r14), %rsi
	movslq	%r13d, %rdi
	movl	$0, (%rsi,%rdi,8)
	movl	-1080(%rbp), %ecx
	movl	%ecx, (%rsi,%rdi,8)
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	incl	%eax
	movl	-1076(%rbp), %edx
	shll	$8, %edx
	orl	%edx, %ecx
	movl	%ecx, (%rsi,%rdi,8)
	cmpl	$2, %eax
	je	LBB0_17
## %bb.15:
	movl	-1072(%rbp), %edx
	shll	$16, %edx
	orl	%edx, %ecx
	movl	%ecx, (%rsi,%rdi,8)
	cmpl	$3, %eax
	je	LBB0_17
## %bb.16:
	movl	-1068(%rbp), %eax
	shll	$24, %eax
	orl	%eax, %ecx
	movl	%ecx, (%rsi,%rdi,8)
LBB0_17:
	movq	%rdi, -1112(%rbp)               ## 8-byte Spill
	movq	%rsi, -1120(%rbp)               ## 8-byte Spill
	movl	-1092(%rbp), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-1088(%rbp), %rdi
	movl	$8, %ecx
	callq	_findstr
	testq	%rax, %rax
	je	LBB0_44
## %bb.18:
	movq	%rax, %rbx
	movslq	-1092(%rbp), %rax
	movq	%rbx, %rcx
	leaq	-1088(%rbp), %rdx
	subq	%rdx, %rcx
	addq	$12, %rcx
	cmpq	%rax, %rcx
	jg	LBB0_44
## %bb.19:
	leaq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movsbl	8(%rbx), %edx
	movsbl	9(%rbx), %ecx
	movsbl	10(%rbx), %r8d
	movsbl	11(%rbx), %r9d
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_44
LBB0_26:
	cmpl	$4095, -1100(%rbp)              ## imm = 0xFFF
	jg	LBB0_44
## %bb.27:
	movl	$0, -1104(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_30
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	-1092(%rbp), %esi
	leaq	-1088(%rbp), %rdi
	leaq	L_.str.4(%rip), %rdx
	movl	$13, %ecx
	callq	_findstr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -1104(%rbp)               ## 4-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	-1100(%rbp), %eax
	cmpl	$4096, %eax                     ## imm = 0x1000
	jge	LBB0_41
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	leaq	-1100(%rbp), %rdx
	leaq	-1096(%rbp), %rcx
	leaq	-1092(%rbp), %r8
	leaq	-1088(%rbp), %r9
	callq	_dvb_ca_en50221_read_tuple
	testl	%eax, %eax
	js	LBB0_21
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-1096(%rbp), %esi
	cmpl	$20, %esi
	je	LBB0_29
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$27, %esi
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$255, %esi
	je	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-1092(%rbp), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_29
LBB0_35:                                ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$30, -1092(%rbp)
	jl	LBB0_29
## %bb.36:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$0, -1104(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.37:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-1088(%rbp), %eax
	andl	$63, %eax
	movq	-1120(%rbp), %rcx               ## 8-byte Reload
	movq	-1112(%rbp), %rdx               ## 8-byte Reload
	movl	%eax, 4(%rcx,%rdx,8)
	movl	-1092(%rbp), %esi
	leaq	-1088(%rbp), %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	$8, %ecx
	callq	_findstr
	testq	%rax, %rax
	jne	LBB0_28
## %bb.38:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	$0, -1104(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_29
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_45
LBB0_40:
	movl	-1100(%rbp), %eax
LBB0_41:
	cmpl	$4096, %eax                     ## imm = 0x1000
	jg	LBB0_44
## %bb.42:
	cmpl	$0, -1104(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_44
## %bb.43:
	movq	-1120(%rbp), %rax               ## 8-byte Reload
	movq	-1112(%rbp), %rdx               ## 8-byte Reload
	movl	(%rax,%rdx,8), %ecx
	movl	4(%rax,%rdx,8), %r8d
	leaq	L_.str.6(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_45
LBB0_44:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.46:
	movl	%ebx, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DVB_CI_V"

L_.str.1:                               ## @.str.1
	.asciz	"1.00"

L_.str.2:                               ## @.str.2
	.asciz	"dvb_ca adapter %d: Unsupported DVB CAM module version %c%c%c%c\n"

L_.str.3:                               ## @.str.3
	.asciz	"DVB_HOST"

L_.str.4:                               ## @.str.4
	.asciz	"DVB_CI_MODULE"

L_.str.5:                               ## @.str.5
	.asciz	"dvb_ca: Skipping unknown tuple type:0x%x length:0x%x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Valid DVB CAM detected MANID:%x DEVID:%x CONFIGBASE:0x%x CONFIGOPTION:0x%x\n"

	.no_dead_strip	_dvb_ca_en50221_parse_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_ca_en50221_parse_attributes
_dvb_ca_en50221_parse_attributes:       ; @dvb_ca_en50221_parse_attributes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1072
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	wzr, [sp, #24]
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	bl	_dvb_ca_en50221_read_tuple
	tbnz	w0, #31, LBB0_39
; %bb.1:
	ldr	w8, [sp, #16]
	cmp	w8, #29
	b.ne	LBB0_38
; %bb.2:
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_ca_en50221_read_tuple
	tbnz	w0, #31, LBB0_39
; %bb.3:
	ldr	w8, [sp, #16]
	cmp	w8, #28
	b.ne	LBB0_38
; %bb.4:
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_ca_en50221_read_tuple
	tbnz	w0, #31, LBB0_39
; %bb.5:
	ldr	w8, [sp, #16]
	cmp	w8, #21
	b.ne	LBB0_38
; %bb.6:
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_ca_en50221_read_tuple
	tbnz	w0, #31, LBB0_39
; %bb.7:
	ldr	w8, [sp, #16]
	cmp	w8, #32
	b.ne	LBB0_38
; %bb.8:
	ldr	w8, [sp, #20]
	cmp	w8, #4
	b.ne	LBB0_38
; %bb.9:
	ldp	w24, w23, [sp, #28]
	ldp	w26, w25, [sp, #36]
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_ca_en50221_read_tuple
	tbnz	w0, #31, LBB0_39
; %bb.10:
	ldr	w8, [sp, #16]
	cmp	w8, #26
	b.ne	LBB0_38
; %bb.11:
	ldr	w9, [sp, #20]
	cmp	w9, #2
	b.le	LBB0_38
; %bb.12:
	ldr	w8, [sp, #28]
	and	w8, w8, #0x3
	add	w10, w8, #17
	cmp	w9, w10
	b.lo	LBB0_38
; %bb.13:
	ldr	x27, [x19, #8]
	add	x22, x27, w20, sxtw #3
	str	wzr, [x22]
	ldr	w9, [sp, #36]
	str	w9, [x22]
	cbz	w8, LBB0_17
; %bb.14:
	add	w8, w8, #1
	ldr	w10, [sp, #40]
	orr	w9, w9, w10, lsl #8
	str	w9, [x22]
	cmp	w8, #2
	b.eq	LBB0_17
; %bb.15:
	ldr	w10, [sp, #44]
	orr	w9, w9, w10, lsl #16
	str	w9, [x22]
	cmp	w8, #3
	b.eq	LBB0_17
; %bb.16:
	ldr	w8, [sp, #48]
	orr	w8, w9, w8, lsl #24
	str	w8, [x22]
LBB0_17:
	ldr	w1, [sp, #20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x28, sp, #28
	add	x0, sp, #28
	mov	w3, #8
	bl	_findstr
	cbz	x0, LBB0_38
; %bb.18:
	mov	x21, x0
	ldrsw	x8, [sp, #20]
	sub	x9, x0, x28
	add	x9, x9, #12
	cmp	x9, x8
	b.gt	LBB0_38
; %bb.19:
	add	x0, x21, #8
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
	ldrsb	w2, [x21, #8]
	ldrsb	w3, [x21, #9]
	ldrsb	w4, [x21, #10]
	ldrsb	w5, [x21, #11]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_38
LBB0_21:
	ldr	w8, [sp, #24]
	cmp	w8, #4095
	b.gt	LBB0_38
; %bb.22:
	mov	w28, #0
	orr	w21, w24, w23, lsl #8
	orr	w26, w26, w25, lsl #8
	sxtw	x8, w20
	add	x8, x27, x8, lsl #3
	add	x27, x8, #4
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh11:
	adrp	x24, l_.str.4@PAGE
Lloh12:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh13:
	adrp	x25, l_.str.5@PAGE
Lloh14:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w1, [sp, #20]
	add	x0, sp, #28
	mov	x2, x24
	mov	w3, #13
	bl	_findstr
	cmp	x0, #0
	cset	w28, ne
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #24]
	cmp	w8, #1, lsl #12                 ; =4096
	b.ge	LBB0_35
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	add	x5, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_dvb_ca_en50221_read_tuple
	tbnz	w0, #31, LBB0_39
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w1, [sp, #16]
	cmp	w1, #20
	b.eq	LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w1, #27
	b.eq	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w1, #255
	b.eq	LBB0_34
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w2, [sp, #20]
	mov	x0, x25
	bl	_dprintk
	b	LBB0_24
LBB0_30:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #30
	b.lt	LBB0_24
; %bb.31:                               ;   in Loop: Header=BB0_25 Depth=1
	cbnz	w28, LBB0_24
; %bb.32:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #28]
	and	w8, w8, #0x3f
	str	w8, [x27]
	ldr	w1, [sp, #20]
	add	x0, sp, #28
	mov	x2, x23
	mov	w3, #8
	bl	_findstr
	cbnz	x0, LBB0_23
; %bb.33:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w28, #0
	b	LBB0_24
LBB0_34:
	ldr	w8, [sp, #24]
LBB0_35:
	cmp	w8, #1, lsl #12                 ; =4096
	b.gt	LBB0_38
; %bb.36:
	cbz	w28, LBB0_38
; %bb.37:
	ldr	w8, [x22]
	ldr	w9, [x27]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x21
	mov	x2, x26
	bl	_dprintk
	mov	w0, #0
	b	LBB0_39
LBB0_38:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_39:
	ldur	x8, [x29, #-96]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.40:
	add	sp, sp, #1072
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DVB_CI_V"

l_.str.1:                               ; @.str.1
	.asciz	"1.00"

l_.str.2:                               ; @.str.2
	.asciz	"dvb_ca adapter %d: Unsupported DVB CAM module version %c%c%c%c\n"

l_.str.3:                               ; @.str.3
	.asciz	"DVB_HOST"

l_.str.4:                               ; @.str.4
	.asciz	"DVB_CI_MODULE"

l_.str.5:                               ; @.str.5
	.asciz	"dvb_ca: Skipping unknown tuple type:0x%x length:0x%x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Valid DVB CAM detected MANID:%x DEVID:%x CONFIGBASE:0x%x CONFIGOPTION:0x%x\n"

	.no_dead_strip	_dvb_ca_en50221_parse_attributes
.subsections_via_symbols
