	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_get_tuner_info
_dst_get_tuner_info:                    ## @dst_get_tuner_info
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movaps	l___const.dst_get_tuner_info.get_tuner_1+16(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.dst_get_tuner_info.get_tuner_1(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.dst_get_tuner_info.get_tuner_2+16(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.dst_get_tuner_info.get_tuner_2(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	leaq	-64(%rbp), %rdi
	movl	$7, %esi
	callq	_dst_check_sum
	movl	%eax, -36(%rbp)
	leaq	-96(%rbp), %rdi
	movl	$7, %esi
	callq	_dst_check_sum
	movl	%eax, -68(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_DST_TYPE_HAS_MULTI_FE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_dst_command
	testq	%rax, %rax
	jns	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_dst_command
	testq	%rax, %rax
	js	LBB0_6
LBB0_7:
	leaq	8(%r15), %rbx
	leaq	32(%r15), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %eax
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_9:
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	cmpl	$188, (%rax)
	jne	LBB0_15
## %bb.10:
	movq	16(%r15), %rcx
	movq	_DST_TYPE_IS_ATSC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.12:
	movq	_DST_TYPE_HAS_NEWTUNE_2@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_DST_TYPE_HAS_TS188@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
	orl	%ecx, (%r15)
	cmpl	$1, 4(%rax)
	jne	LBB0_15
## %bb.14:
	movq	_DST_TYPE_HAS_DBOARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%r15)
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movl	$2, %edi
	callq	_dprintk
	movl	24(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	movl	$-1, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	_DST_TYPE_HAS_TS204@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	24(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.dst_get_tuner_info.get_tuner_1
l___const.dst_get_tuner_info.get_tuner_1:
	.long	0                               ## 0x0
	.long	19                              ## 0x13
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	4                               ## @__const.dst_get_tuner_info.get_tuner_2
l___const.dst_get_tuner_info.get_tuner_2:
	.long	0                               ## 0x0
	.long	11                              ## 0xb
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DST TYpe = MULTI FE\n"

	.comm	_DST_TYPE_HAS_MULTI_FE,4,2      ## @DST_TYPE_HAS_MULTI_FE
L_.str.1:                               ## @.str.1
	.asciz	"Cmd=[0x13], Unsupported\n"

L_.str.2:                               ## @.str.2
	.asciz	"Cmd=[0xb], Unsupported\n"

L_.str.3:                               ## @.str.3
	.asciz	"DST type has TS=188\n"

	.comm	_DST_TYPE_IS_ATSC,8,3           ## @DST_TYPE_IS_ATSC
	.comm	_DST_TYPE_HAS_TS188,4,2         ## @DST_TYPE_HAS_TS188
	.comm	_DST_TYPE_HAS_NEWTUNE_2,4,2     ## @DST_TYPE_HAS_NEWTUNE_2
	.comm	_DST_TYPE_HAS_DBOARD,4,2        ## @DST_TYPE_HAS_DBOARD
L_.str.4:                               ## @.str.4
	.asciz	"DST has Daughterboard\n"

L_.str.5:                               ## @.str.5
	.asciz	"DCT-CI"

	.comm	_DST_TYPE_HAS_TS204,4,2         ## @DST_TYPE_HAS_TS204
L_.str.6:                               ## @.str.6
	.asciz	"Forcing [%s] to TS188\n"

	.no_dead_strip	_dst_get_tuner_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_get_tuner_info
_dst_get_tuner_info:                    ; @dst_get_tuner_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	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, #-40]
Lloh3:
	adrp	x8, l___const.dst_get_tuner_info.get_tuner_1@PAGE
Lloh4:
	add	x8, x8, l___const.dst_get_tuner_info.get_tuner_1@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #48]
Lloh5:
	adrp	x8, l___const.dst_get_tuner_info.get_tuner_2@PAGE
Lloh6:
	add	x8, x8, l___const.dst_get_tuner_info.get_tuner_2@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	add	x0, sp, #48
	mov	w1, #7
	bl	_dst_check_sum
	str	w0, [sp, #76]
	add	x0, sp, #16
	mov	w1, #7
	bl	_dst_check_sum
	str	w0, [sp, #44]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	w8, [x19]
Lloh9:
	adrp	x21, _DST_TYPE_HAS_MULTI_FE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _DST_TYPE_HAS_MULTI_FE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	add	x1, sp, #48
	mov	x0, x19
	mov	w2, #8
	bl	_dst_command
	tbz	x0, #63, LBB0_4
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_3:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_dst_command
	tbnz	x0, #63, LBB0_10
LBB0_4:
	add	x20, x19, #8
	add	x1, x19, #32
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
LBB0_6:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #188
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x19, #16]
Lloh15:
	adrp	x10, _DST_TYPE_IS_ATSC@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DST_TYPE_IS_ATSC@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _DST_TYPE_HAS_NEWTUNE_2@GOTPAGE
Lloh19:
	ldr	x11, [x11, _DST_TYPE_HAS_NEWTUNE_2@GOTPAGEOFF]
Lloh20:
	adrp	x12, _DST_TYPE_HAS_TS188@GOTPAGE
Lloh21:
	ldr	x12, [x12, _DST_TYPE_HAS_TS188@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.8:
Lloh22:
	adrp	x8, _DST_TYPE_HAS_DBOARD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DST_TYPE_HAS_DBOARD@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	orr	w8, w9, w8
	str	w8, [x19, #28]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	w0, #2
	bl	_dprintk
	ldr	w0, [x19, #24]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbnz	w0, LBB0_13
; %bb.12:
Lloh31:
	adrp	x8, _DST_TYPE_HAS_TS204@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DST_TYPE_HAS_TS204@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x19, #24]
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	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
	add	sp, sp, #144
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.dst_get_tuner_info.get_tuner_1
l___const.dst_get_tuner_info.get_tuner_1:
	.long	0                               ; 0x0
	.long	19                              ; 0x13
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @__const.dst_get_tuner_info.get_tuner_2
l___const.dst_get_tuner_info.get_tuner_2:
	.long	0                               ; 0x0
	.long	11                              ; 0xb
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DST TYpe = MULTI FE\n"

	.comm	_DST_TYPE_HAS_MULTI_FE,4,2      ; @DST_TYPE_HAS_MULTI_FE
l_.str.1:                               ; @.str.1
	.asciz	"Cmd=[0x13], Unsupported\n"

l_.str.2:                               ; @.str.2
	.asciz	"Cmd=[0xb], Unsupported\n"

l_.str.3:                               ; @.str.3
	.asciz	"DST type has TS=188\n"

	.comm	_DST_TYPE_IS_ATSC,8,3           ; @DST_TYPE_IS_ATSC
	.comm	_DST_TYPE_HAS_TS188,4,2         ; @DST_TYPE_HAS_TS188
	.comm	_DST_TYPE_HAS_NEWTUNE_2,4,2     ; @DST_TYPE_HAS_NEWTUNE_2
	.comm	_DST_TYPE_HAS_DBOARD,4,2        ; @DST_TYPE_HAS_DBOARD
l_.str.4:                               ; @.str.4
	.asciz	"DST has Daughterboard\n"

l_.str.5:                               ; @.str.5
	.asciz	"DCT-CI"

	.comm	_DST_TYPE_HAS_TS204,4,2         ; @DST_TYPE_HAS_TS204
l_.str.6:                               ; @.str.6
	.asciz	"Forcing [%s] to TS188\n"

	.no_dead_strip	_dst_get_tuner_info
.subsections_via_symbols
