	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_probe
_dst_probe:                             ## @dst_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$4, %rdi
	callq	_mutex_init
	movq	_dst_addons@GOTPCREL(%rip), %rax
	movq	_DST_TYPE_HAS_CA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_rdc_8820_reset
	movl	$4000, %edi                     ## imm = 0xFA0
	testq	%rax, %rax
	jns	LBB0_2
## %bb.5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movl	$100, %edi
LBB0_2:
	callq	_msleep
	movq	%rbx, %rdi
	callq	_dst_comm_init
	testq	%rax, %rax
	js	LBB0_3
## %bb.7:
	movl	$100, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_dst_get_device_id
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_dst_get_mac
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
LBB0_11:
	movl	(%rbx), %eax
	movq	_DST_TYPE_HAS_MULTI_FE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.12:
	movq	_DST_TYPE_HAS_FW_BUILD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	callq	_dst_get_tuner_info
	testq	%rax, %rax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
LBB0_15:
	movl	(%rbx), %eax
	movq	_DST_TYPE_HAS_TS204@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movl	$204, %esi
	callq	_dst_packsize
	movl	(%rbx), %eax
LBB0_17:
	movq	_DST_TYPE_HAS_FW_BUILD@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.18:
	movq	%rbx, %rdi
	callq	_dst_fw_ver
	testq	%rax, %rax
	js	LBB0_19
## %bb.20:
	movq	%rbx, %rdi
	callq	_dst_card_type
	testq	%rax, %rax
	js	LBB0_21
## %bb.22:
	movq	%rbx, %rdi
	callq	_dst_get_vendor
	testq	%rax, %rax
	jns	LBB0_25
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_24
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_pr_err
	movl	$-1, %r14d
LBB0_25:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.6(%rip), %rsi
LBB0_24:
	movl	$2, %edi
	callq	_dprintk
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_dst_addons,4,2                 ## @dst_addons
	.comm	_DST_TYPE_HAS_CA,4,2            ## @DST_TYPE_HAS_CA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDC 8820 RESET Failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"DST Initialization Failed.\n"

L_.str.2:                               ## @.str.2
	.asciz	"unknown device.\n"

L_.str.3:                               ## @.str.3
	.asciz	"MAC: Unsupported command\n"

	.comm	_DST_TYPE_HAS_MULTI_FE,4,2      ## @DST_TYPE_HAS_MULTI_FE
	.comm	_DST_TYPE_HAS_FW_BUILD,4,2      ## @DST_TYPE_HAS_FW_BUILD
L_.str.4:                               ## @.str.4
	.asciz	"Tuner: Unsupported command\n"

	.comm	_DST_TYPE_HAS_TS204,4,2         ## @DST_TYPE_HAS_TS204
L_.str.5:                               ## @.str.5
	.asciz	"FW: Unsupported command\n"

L_.str.6:                               ## @.str.6
	.asciz	"Card: Unsupported command\n"

L_.str.7:                               ## @.str.7
	.asciz	"Vendor: Unsupported command\n"

	.no_dead_strip	_dst_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_probe
_dst_probe:                             ; @dst_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #4
	bl	_mutex_init
Lloh0:
	adrp	x8, _dst_addons@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dst_addons@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DST_TYPE_HAS_CA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DST_TYPE_HAS_CA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_rdc_8820_reset
	tbnz	x0, #63, LBB0_20
; %bb.2:
	mov	w0, #4000
	b	LBB0_4
LBB0_3:
	mov	w0, #100
LBB0_4:
	bl	_msleep
	mov	x0, x19
	bl	_dst_comm_init
	tbnz	x0, #63, LBB0_19
; %bb.5:
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	bl	_dst_get_device_id
	tbnz	x0, #63, LBB0_21
; %bb.6:
	mov	x0, x19
	bl	_dst_get_mac
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_dprintk
LBB0_8:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _DST_TYPE_HAS_MULTI_FE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DST_TYPE_HAS_MULTI_FE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x20, _DST_TYPE_HAS_FW_BUILD@GOTPAGE
Lloh12:
	ldr	x20, [x20, _DST_TYPE_HAS_FW_BUILD@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_dst_get_tuner_info
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #2
	bl	_dprintk
LBB0_12:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _DST_TYPE_HAS_TS204@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DST_TYPE_HAS_TS204@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #204
	bl	_dst_packsize
	ldr	w8, [x19]
LBB0_14:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.15:
	mov	x0, x19
	bl	_dst_fw_ver
	tbnz	x0, #63, LBB0_23
; %bb.16:
	mov	x0, x19
	bl	_dst_card_type
	tbnz	x0, #63, LBB0_24
; %bb.17:
	mov	x0, x19
	bl	_dst_get_vendor
	tbz	x0, #63, LBB0_26
; %bb.18:
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_25
LBB0_19:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_22:
	bl	_pr_err
	mov	w0, #-1
	b	LBB0_27
LBB0_23:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_25:
	mov	w0, #2
	bl	_dprintk
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_dst_addons,4,2                 ; @dst_addons
	.comm	_DST_TYPE_HAS_CA,4,2            ; @DST_TYPE_HAS_CA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDC 8820 RESET Failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"DST Initialization Failed.\n"

l_.str.2:                               ; @.str.2
	.asciz	"unknown device.\n"

l_.str.3:                               ; @.str.3
	.asciz	"MAC: Unsupported command\n"

	.comm	_DST_TYPE_HAS_MULTI_FE,4,2      ; @DST_TYPE_HAS_MULTI_FE
	.comm	_DST_TYPE_HAS_FW_BUILD,4,2      ; @DST_TYPE_HAS_FW_BUILD
l_.str.4:                               ; @.str.4
	.asciz	"Tuner: Unsupported command\n"

	.comm	_DST_TYPE_HAS_TS204,4,2         ; @DST_TYPE_HAS_TS204
l_.str.5:                               ; @.str.5
	.asciz	"FW: Unsupported command\n"

l_.str.6:                               ; @.str.6
	.asciz	"Card: Unsupported command\n"

l_.str.7:                               ; @.str.7
	.asciz	"Vendor: Unsupported command\n"

	.no_dead_strip	_dst_probe
.subsections_via_symbols
