	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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:
	movl	$-1, %r14d
	leaq	L_.str(%rip), %rcx
	movq	_DST_ERROR@GOTPCREL(%rip), %r15
	jmp	LBB0_24
LBB0_1:
	movl	$100, %edi
LBB0_2:
	callq	_msleep
	movq	%rbx, %rdi
	callq	_dst_comm_init
	movl	$-1, %r14d
	movq	_DST_ERROR@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	js	LBB0_3
## %bb.6:
	movl	$100, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_dst_get_device_id
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_dst_get_mac
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
LBB0_10:
	movl	(%rbx), %eax
	movq	_DST_TYPE_HAS_MULTI_FE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	_DST_TYPE_HAS_FW_BUILD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_dst_get_tuner_info
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
LBB0_14:
	movl	(%rbx), %eax
	movq	_DST_TYPE_HAS_TS204@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	$204, %esi
	callq	_dst_packsize
	movl	(%rbx), %eax
LBB0_16:
	movq	_DST_TYPE_HAS_FW_BUILD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.18:
	movq	%rbx, %rdi
	callq	_dst_fw_ver
	xorl	%r14d, %r14d
	movq	_DST_INFO@GOTPCREL(%rip), %r15
	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
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jns	LBB0_25
## %bb.23:
	leaq	L_.str.7(%rip), %rcx
	jmp	LBB0_24
LBB0_3:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_24
LBB0_7:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_24
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_19:
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.6(%rip), %rcx
LBB0_24:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	$1, %edx
	callq	_dprintk
LBB0_25:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dst_addons,4,2                 ## @dst_addons
	.comm	_DST_TYPE_HAS_CA,4,2            ## @DST_TYPE_HAS_CA
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_ERROR,4,2                  ## @DST_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDC 8820 RESET Failed."

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

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

	.comm	_DST_INFO,4,2                   ## @DST_INFO
L_.str.3:                               ## @.str.3
	.asciz	"MAC: Unsupported command"

	.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"

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

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

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

	.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	x8, _verbose@GOTPAGE
Lloh7:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_dprintk
LBB0_8:
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _DST_TYPE_HAS_MULTI_FE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DST_TYPE_HAS_MULTI_FE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x20, _DST_TYPE_HAS_FW_BUILD@GOTPAGE
Lloh18:
	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:
Lloh19:
	adrp	x8, _verbose@GOTPAGE
Lloh20:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x3, l_.str.4@PAGE
Lloh26:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w2, #1
	bl	_dprintk
LBB0_12:
	ldr	w8, [x19]
Lloh27:
	adrp	x9, _DST_TYPE_HAS_TS204@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DST_TYPE_HAS_TS204@GOTPAGEOFF]
Lloh29:
	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_25
; %bb.15:
	mov	x0, x19
	bl	_dst_fw_ver
	tbnz	x0, #63, LBB0_26
; %bb.16:
	mov	x0, x19
	bl	_dst_card_type
	tbnz	x0, #63, LBB0_27
; %bb.17:
	mov	x0, x19
	bl	_dst_get_vendor
	mov	w19, #0
	tbz	x0, #63, LBB0_24
; %bb.18:
Lloh30:
	adrp	x3, l_.str.7@PAGE
Lloh31:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_19:
	mov	w19, #-1
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_20:
	mov	w19, #-1
Lloh34:
	adrp	x3, l_.str@PAGE
Lloh35:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_22
LBB0_21:
	mov	w19, #-1
Lloh36:
	adrp	x3, l_.str.2@PAGE
Lloh37:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_22:
Lloh38:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
LBB0_23:
Lloh40:
	adrp	x9, _verbose@GOTPAGE
Lloh41:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x9]
	ldr	w1, [x8]
	mov	w2, #1
	bl	_dprintk
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	w19, #0
	b	LBB0_24
LBB0_26:
	mov	w19, #0
Lloh43:
	adrp	x3, l_.str.5@PAGE
Lloh44:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_27:
	mov	w19, #0
Lloh45:
	adrp	x3, l_.str.6@PAGE
Lloh46:
	add	x3, x3, l_.str.6@PAGEOFF
LBB0_28:
Lloh47:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_dst_addons,4,2                 ; @dst_addons
	.comm	_DST_TYPE_HAS_CA,4,2            ; @DST_TYPE_HAS_CA
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_ERROR,4,2                  ; @DST_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDC 8820 RESET Failed."

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

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

	.comm	_DST_INFO,4,2                   ; @DST_INFO
l_.str.3:                               ; @.str.3
	.asciz	"MAC: Unsupported command"

	.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"

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

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

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

	.no_dead_strip	_dst_probe
.subsections_via_symbols
