	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	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:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_pr_err
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_7:
	movl	$5, %edi
LBB0_8:
	callq	_msleep
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing DST.\n"

L_.str.1:                               ## @.str.1
	.asciz	"PIO Enable Failed\n"

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

	.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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	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]
Lloh2:
	adrp	x9, _DST_TYPE_HAS_FW_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DST_TYPE_HAS_FW_1@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	mov	w0, #100
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_pr_err
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing DST.\n"

l_.str.1:                               ; @.str.1
	.asciz	"PIO Enable Failed\n"

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

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