	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_ca_en50221_read_tuple
_dvb_ca_en50221_read_tuple:             ## @dvb_ca_en50221_read_tuple
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	(%rdx), %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movl	%esi, %r15d
	movl	%ebx, %edx
	callq	*(%rdi)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$255, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	$255, %esi
	xorl	%eax, %eax
	callq	_dprintk
	addl	$2, (%r14)
	movl	$255, (%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_4:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	leal	2(%rbx), %edx
	movl	%r15d, %esi
	callq	*(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	addl	$4, %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	movq	%r12, %r14
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	*(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movzbl	%al, %edx
	leal	-32(%rax), %ecx
	cmpl	$95, %ecx
	movl	$46, %ecx
	cmovael	%ecx, %eax
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	incq	%r13
	addl	$2, %r12d
	cmpq	%r13, %rbx
	jne	LBB0_8
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leal	(%rax,%rsi,2), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%esi, (%rcx)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"END OF CHAIN TUPLE type:0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"TUPLE type:0x%x length:%i\n"

L_.str.2:                               ## @.str.2
	.asciz	"  0x%02x: 0x%02x %c\n"

	.no_dead_strip	_dvb_ca_en50221_read_tuple
.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_read_tuple
_dvb_ca_en50221_read_tuple:             ; @dvb_ca_en50221_read_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x5
	mov	x21, x4
	mov	x26, x3
	mov	x20, x2
	mov	x24, x1
	mov	x25, x0
	ldr	w19, [x2]
	ldr	x0, [x0]
	ldr	x8, [x0]
	mov	x2, x19
	blr	x8
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	cmp	w22, #255
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w19, #255
	mov	w1, #255
	bl	_dprintk
	mov	w22, #0
	ldr	w8, [x20]
	add	w8, w8, #2
	str	w8, [x20]
	str	w19, [x26]
	str	wzr, [x21]
	b	LBB0_9
LBB0_3:
	ldr	x0, [x25]
	ldr	x8, [x0]
	add	w2, w19, #2
	mov	x1, x24
	blr	x8
	mov	x27, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	stp	x26, x21, [sp, #16]             ; 16-byte Folded Spill
	add	w8, w19, #4
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	str	x27, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_dprintk
	str	x27, [sp, #40]                  ; 8-byte Folded Spill
	cbz	w27, LBB0_7
; %bb.5:
	mov	x27, #0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	mov	w21, w8
	mov	w26, #46
	ldr	w28, [sp, #36]                  ; 4-byte Folded Reload
Lloh4:
	adrp	x19, l_.str.2@PAGE
Lloh5:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	ldr	x8, [x0]
	mov	x1, x24
	mov	x2, x28
	blr	x8
	str	w0, [x23, x27, lsl #2]
	and	w8, w0, #0xff
	sub	w9, w0, #32
	cmp	w9, #95
	csel	w9, w0, w26, lo
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	x1, x27
	bl	_dprintk
	add	x27, x27, #1
	add	w28, w28, #2
	cmp	x21, x27
	b.ne	LBB0_6
LBB0_7:
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	str	w22, [x8]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w8, w8, w10, lsl #1
	str	w10, [x9]
	str	w8, [x20]
	mov	w22, #0
	b	LBB0_9
LBB0_8:
	mov	x22, x27
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"END OF CHAIN TUPLE type:0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"TUPLE type:0x%x length:%i\n"

l_.str.2:                               ; @.str.2
	.asciz	"  0x%02x: 0x%02x %c\n"

	.no_dead_strip	_dvb_ca_en50221_read_tuple
.subsections_via_symbols
