	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_ci_command
_dst_ci_command:                        ## @dst_ci_command
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_dst_comm_init
	movl	$65, %edi
	callq	_msleep
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_write_dst
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_CA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
LBB0_2:
	movl	$1, %edx
	callq	_dprintk
	movq	%r12, %rdi
	callq	_dst_error_recovery
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_dst_pio_disable
	testq	%rax, %rax
	js	LBB0_4
## %bb.7:
	movq	_GET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_read_dst
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.10:
	movq	_LONG_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dst_wait_dst_ready
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$128, %edx
	callq	_read_dst
	testq	%rax, %rax
	js	LBB0_8
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_4:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_CA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_5
LBB0_8:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_CA_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_CA_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
LBB0_5:
	movl	$1, %edx
	callq	_dprintk
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_CA_INFO,4,2                ## @DST_CA_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" Write not successful, trying to recover"

	.comm	_DST_CA_ERROR,4,2               ## @DST_CA_ERROR
L_.str.1:                               ## @.str.1
	.asciz	" DST PIO disable failed."

	.comm	_GET_ACK,4,2                    ## @GET_ACK
L_.str.2:                               ## @.str.2
	.asciz	" Read not successful, trying to recover"

	.comm	_LONG_DELAY,4,2                 ## @LONG_DELAY
	.comm	_DST_CA_NOTICE,4,2              ## @DST_CA_NOTICE
L_.str.3:                               ## @.str.3
	.asciz	" 8820 not ready"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dst_ci_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_ci_command
_dst_ci_command:                        ; @dst_ci_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	bl	_dst_comm_init
	mov	w0, #65
	bl	_msleep
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_write_dst
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DST_CA_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DST_CA_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
LBB0_2:
	mov	w2, #1
	bl	_dprintk
	mov	x0, x19
	bl	_dst_error_recovery
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x0, x19
	bl	_dst_pio_disable
	tbnz	x0, #63, LBB0_11
; %bb.6:
Lloh11:
	adrp	x8, _GET_ACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GET_ACK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_read_dst
	tbnz	x0, #63, LBB0_12
; %bb.7:
	cbz	w21, LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _LONG_DELAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LONG_DELAY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dst_wait_dst_ready
	cbz	w0, LBB0_13
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #128
	bl	_read_dst
	tbnz	x0, #63, LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_4
LBB0_11:
Lloh17:
	adrp	x8, _verbose@GOTPAGE
Lloh18:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _DST_CA_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DST_CA_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh25:
	adrp	x8, _verbose@GOTPAGE
Lloh26:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _DST_CA_INFO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DST_CA_INFO@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_13:
Lloh33:
	adrp	x8, _verbose@GOTPAGE
Lloh34:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _DST_CA_NOTICE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DST_CA_NOTICE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x3, l_.str.3@PAGE
Lloh40:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_14:
	mov	w2, #1
	bl	_dprintk
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_CA_INFO,4,2                ; @DST_CA_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" Write not successful, trying to recover"

	.comm	_DST_CA_ERROR,4,2               ; @DST_CA_ERROR
l_.str.1:                               ; @.str.1
	.asciz	" DST PIO disable failed."

	.comm	_GET_ACK,4,2                    ; @GET_ACK
l_.str.2:                               ; @.str.2
	.asciz	" Read not successful, trying to recover"

	.comm	_LONG_DELAY,4,2                 ; @LONG_DELAY
	.comm	_DST_CA_NOTICE,4,2              ; @DST_CA_NOTICE
l_.str.3:                               ; @.str.3
	.asciz	" 8820 not ready"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dst_ci_command
.subsections_via_symbols
