	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_get_tuna
_dst_get_tuna:                          ## @dst_get_tuna
	.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
	movl	(%rdi), %eax
	movq	_ATTEMPT_TUNE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.1:
	movq	%rdi, %rbx
	movq	_HAS_LOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rdi)
	movq	_NO_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dst_wait_dst_ready
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_DST_TYPE_HAS_VLF@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	movq	_DST_TYPE_IS_ATSC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_6:
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	movq	_FIXED_COMM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	jmp	LBB0_7
LBB0_5:
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
LBB0_7:
	callq	_read_dst
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	(%r13), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_14
## %bb.10:
	movq	8(%rbx), %rax
	movq	_DST_TYPE_IS_ATSC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_14:
	movq	16(%rbx), %rdi
	movl	36(%rdi), %r15d
	addq	$8, %rdi
	movl	$7, %esi
	callq	_dst_check_sum
	cmpl	%eax, %r15d
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movl	%r15d, %r14d
	jmp	LBB0_22
LBB0_11:
	movq	16(%rbx), %rdi
	movl	36(%rdi), %r15d
	movl	$9, %esi
	callq	_dst_check_sum
	cmpl	%eax, %r15d
	jne	LBB0_12
LBB0_16:
	movq	16(%rbx), %rcx
	movl	8(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	cmpl	$0, 12(%rcx)
	je	LBB0_22
LBB0_18:
	movq	8(%rbx), %rdx
	movq	_DST_TYPE_IS_SAT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_20
## %bb.19:
	andl	$127, %eax
	shll	$8, %eax
	movl	12(%rcx), %edx
	jmp	LBB0_21
LBB0_20:
	andl	$127, %eax
	shll	$16, %eax
	movl	12(%rcx), %edx
	shll	$8, %edx
	addl	%eax, %edx
	movl	16(%rcx), %eax
LBB0_21:
	addl	%edx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 24(%rbx)
	movl	$1, 28(%rbx)
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	movl	$1, %r14d
	jmp	LBB0_22
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movl	$2, %edi
	callq	_dprintk
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATTEMPT_TUNE,4,2               ## @ATTEMPT_TUNE
	.comm	_HAS_LOCK,4,2                   ## @HAS_LOCK
	.comm	_NO_DELAY,4,2                   ## @NO_DELAY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DST_TYPE_HAS_VLF,4,2           ## @DST_TYPE_HAS_VLF
	.comm	_DST_TYPE_IS_ATSC,8,3           ## @DST_TYPE_IS_ATSC
	.comm	_FIXED_COMM,4,2                 ## @FIXED_COMM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read not successful\n"

L_.str.1:                               ## @.str.1
	.asciz	"checksum failure ?\n"

L_.str.2:                               ## @.str.2
	.asciz	"checksum failure?\n"

	.comm	_DST_TYPE_IS_SAT,8,3            ## @DST_TYPE_IS_SAT
	.no_dead_strip	_dst_get_tuna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_get_tuna
_dst_get_tuna:                          ; @dst_get_tuna
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ATTEMPT_TUNE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATTEMPT_TUNE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x21, _HAS_LOCK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HAS_LOCK@GOTPAGEOFF]
	ldr	w9, [x21]
	bic	w8, w8, w9
	str	w8, [x0]
Lloh5:
	adrp	x8, _NO_DELAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NO_DELAY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_dst_wait_dst_ready
	cbz	w0, LBB0_22
; %bb.2:
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x23, _DST_TYPE_HAS_VLF@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DST_TYPE_HAS_VLF@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh10:
	adrp	x22, _DST_TYPE_IS_ATSC@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DST_TYPE_IS_ATSC@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	ldr	x8, [x19, #16]
	add	x1, x8, #8
Lloh12:
	adrp	x8, _FIXED_COMM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FIXED_COMM@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	b	LBB0_6
LBB0_5:
	ldr	x1, [x19, #16]
	mov	x0, x19
	mov	w2, #10
LBB0_6:
	bl	_read_dst
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	w8, [x19, #4]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	w20, [x8, #36]
	add	x0, x8, #8
	mov	w1, #7
	bl	_dst_check_sum
	cmp	w20, w0
	b.eq	LBB0_13
; %bb.10:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_11:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	b	LBB0_23
LBB0_12:
	ldr	x0, [x19, #16]
	ldr	w20, [x0, #36]
	mov	w1, #9
	bl	_dst_check_sum
	cmp	w20, w0
	b.ne	LBB0_20
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_15
; %bb.14:
	ldr	w10, [x8, #12]
	cbz	w10, LBB0_17
LBB0_15:
	ldr	x10, [x19, #8]
Lloh19:
	adrp	x11, _DST_TYPE_IS_SAT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _DST_TYPE_IS_SAT@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_18
; %bb.16:
	ubfiz	w9, w9, #8, #7
	ldr	w8, [x8, #12]
	b	LBB0_19
LBB0_17:
	mov	w20, #0
	b	LBB0_23
LBB0_18:
	ubfiz	w10, w9, #16, #7
	ldp	w11, w9, [x8, #12]
	add	w8, w10, w11, lsl #8
LBB0_19:
	add	w8, w8, w9
	mov	w9, #1000
	mul	w8, w8, w9
	mov	w20, #1
	stp	w8, w20, [x19, #24]
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_23
LBB0_20:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_21:
	mov	w0, #2
	bl	_dprintk
LBB0_22:
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ATTEMPT_TUNE,4,2               ; @ATTEMPT_TUNE
	.comm	_HAS_LOCK,4,2                   ; @HAS_LOCK
	.comm	_NO_DELAY,4,2                   ; @NO_DELAY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DST_TYPE_HAS_VLF,4,2           ; @DST_TYPE_HAS_VLF
	.comm	_DST_TYPE_IS_ATSC,8,3           ; @DST_TYPE_IS_ATSC
	.comm	_FIXED_COMM,4,2                 ; @FIXED_COMM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read not successful\n"

l_.str.1:                               ; @.str.1
	.asciz	"checksum failure ?\n"

l_.str.2:                               ; @.str.2
	.asciz	"checksum failure?\n"

	.comm	_DST_TYPE_IS_SAT,8,3            ; @DST_TYPE_IS_SAT
	.no_dead_strip	_dst_get_tuna
.subsections_via_symbols
