	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dst_comm_init                  ## -- Begin function dst_comm_init
	.p2align	4, 0x90
_dst_comm_init:                         ## @dst_comm_init
	.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
	movq	_verbose@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_pio_enable
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_rdc_reset_state
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_DST_TYPE_HAS_FW_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	movl	$100, %edi
	jmp	LBB0_8
LBB0_1:
	movl	(%r14), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movl	(%r14), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
LBB0_2:
	movl	$1, %edx
	callq	_dprintk
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_7:
	movl	$5, %edi
LBB0_8:
	callq	_msleep
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_INFO,4,2                   ## @DST_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing DST."

	.comm	_DST_ERROR,4,2                  ## @DST_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"PIO Enable Failed"

L_.str.2:                               ## @.str.2
	.asciz	"RDC 8820 State RESET Failed."

	.comm	_DST_TYPE_HAS_FW_1,4,2          ## @DST_TYPE_HAS_FW_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dst_comm_init                  ; -- Begin function dst_comm_init
	.p2align	2
_dst_comm_init:                         ; @dst_comm_init
	.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
Lloh0:
	adrp	x20, _verbose@GOTPAGE
Lloh1:
	ldr	x20, [x20, _verbose@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_dst_pio_enable
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_rdc_reset_state
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _DST_TYPE_HAS_FW_1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DST_TYPE_HAS_FW_1@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	mov	w0, #100
	b	LBB0_8
LBB0_4:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x3, l_.str.2@PAGE
Lloh19:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_6:
	mov	w2, #1
	bl	_dprintk
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	mov	w0, #5
LBB0_8:
	bl	_msleep
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_INFO,4,2                   ; @DST_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing DST."

	.comm	_DST_ERROR,4,2                  ; @DST_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"PIO Enable Failed"

l_.str.2:                               ; @.str.2
	.asciz	"RDC 8820 State RESET Failed."

	.comm	_DST_TYPE_HAS_FW_1,4,2          ; @DST_TYPE_HAS_FW_1
.subsections_via_symbols
