	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_command
_dst_command:                           ## @dst_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
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_dst_comm_init
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_write_dst
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_error_recovery
	testq	%rax, %rax
	jns	LBB0_16
## %bb.4:
	movl	(%r15), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
LBB0_6:
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_dst_pio_disable
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	_DST_TYPE_HAS_FW_1@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:
	movl	$3, %edi
	callq	_mdelay
LBB0_11:
	movq	_GET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dst
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_error_recovery
	testq	%rax, %rax
	jns	LBB0_16
## %bb.13:
	movl	(%r15), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_6
LBB0_14:
	movq	-48(%rbp), %r8
	movq	_ACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_15
## %bb.17:
	cmpq	$2, %r12
	jl	LBB0_20
## %bb.18:
	cmpq	$0, (%r15)
	je	LBB0_19
LBB0_20:
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_22
## %bb.21:
	movl	$3, %edi
	callq	_mdelay
	jmp	LBB0_23
LBB0_15:
	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
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_16
LBB0_22:
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_udelay
LBB0_23:
	movq	_NO_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dst_wait_dst_ready
	testl	%eax, %eax
	je	LBB0_16
## %bb.24:
	movq	8(%rbx), %rsi
	movq	_FIXED_COMM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_read_dst
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_dst_error_recovery
	testq	%rax, %rax
	jns	LBB0_16
## %bb.26:
	movl	(%r15), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_6
LBB0_27:
	movq	8(%rbx), %rdi
	movq	56(%rdi), %rbx
	movl	$7, %esi
	callq	_dst_check_sum
	cmpq	%rax, %rbx
	jne	LBB0_28
## %bb.29:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_19:
	movq	8(%r15), %rax
	orq	$2, %rax
	cmpq	$3, %rax
	je	LBB0_16
	jmp	LBB0_20
LBB0_28:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_NOTICE,4,2                 ## @DST_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DST Communication Initialization Failed."

	.comm	_DST_INFO,4,2                   ## @DST_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Trying to recover.. "

	.comm	_DST_ERROR,4,2                  ## @DST_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Recovery Failed."

L_.str.3:                               ## @.str.3
	.asciz	"PIO Disable Failed."

	.comm	_DST_TYPE_HAS_FW_1,4,2          ## @DST_TYPE_HAS_FW_1
	.comm	_GET_ACK,4,2                    ## @GET_ACK
	.comm	_DST_DEBUG,4,2                  ## @DST_DEBUG
	.comm	_ACK,8,3                        ## @ACK
L_.str.4:                               ## @.str.4
	.asciz	"write not acknowledged 0x%02x "

	.comm	_NO_DELAY,4,2                   ## @NO_DELAY
	.comm	_FIXED_COMM,4,2                 ## @FIXED_COMM
L_.str.5:                               ## @.str.5
	.asciz	"Recovery failed."

L_.str.6:                               ## @.str.6
	.asciz	"checksum failure"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_command
_dst_command:                           ; @dst_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	x22, x2
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_dst_comm_init
	tbnz	x0, #63, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_write_dst
	cbz	x0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x21, _verbose@GOTPAGE
Lloh1:
	ldr	x21, [x21, _verbose@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x20
	bl	_dst_error_recovery
	tbz	x0, #63, LBB0_7
; %bb.3:
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _verbose@GOTPAGE
Lloh12:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _DST_NOTICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DST_NOTICE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
LBB0_6:
	mov	w2, #1
	bl	_dprintk
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	mov	x0, x20
	bl	_dst_pio_disable
	tbnz	x0, #63, LBB0_15
; %bb.10:
	ldr	w8, [x20]
Lloh22:
	adrp	x23, _DST_TYPE_HAS_FW_1@GOTPAGE
Lloh23:
	ldr	x23, [x23, _DST_TYPE_HAS_FW_1@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	w0, #3
	bl	_mdelay
LBB0_12:
Lloh24:
	adrp	x8, _GET_ACK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GET_ACK@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_read_dst
	cbz	x0, LBB0_16
; %bb.13:
Lloh27:
	adrp	x21, _verbose@GOTPAGE
Lloh28:
	ldr	x21, [x21, _verbose@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh29:
	adrp	x8, _DST_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DST_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x20
	bl	_dst_error_recovery
	tbz	x0, #63, LBB0_7
; %bb.14:
	ldr	w0, [x21]
Lloh34:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
Lloh36:
	adrp	x8, _verbose@GOTPAGE
Lloh37:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x3, l_.str.3@PAGE
Lloh43:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_16:
	ldr	x8, [sp, #8]
Lloh44:
	adrp	x9, _ACK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ACK@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.17:
	cmp	x22, #2
	b.lt	LBB0_19
; %bb.18:
	ldr	x8, [x21]
	cbz	x8, LBB0_29
LBB0_19:
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
	mov	w0, #3
	bl	_mdelay
	b	LBB0_23
LBB0_21:
Lloh47:
	adrp	x9, _verbose@GOTPAGE
Lloh48:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x9]
Lloh50:
	adrp	x9, _DST_INFO@GOTPAGE
Lloh51:
	ldr	x9, [x9, _DST_INFO@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh53:
	adrp	x3, l_.str.4@PAGE
Lloh54:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_22:
	mov	w0, #2000
	bl	_udelay
LBB0_23:
Lloh55:
	adrp	x8, _NO_DELAY@GOTPAGE
Lloh56:
	ldr	x8, [x8, _NO_DELAY@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dst_wait_dst_ready
	cbz	w0, LBB0_7
; %bb.24:
	ldr	x1, [x20, #8]
Lloh58:
	adrp	x8, _FIXED_COMM@GOTPAGE
Lloh59:
	ldr	x8, [x8, _FIXED_COMM@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_read_dst
	cbz	x0, LBB0_27
; %bb.25:
Lloh61:
	adrp	x21, _verbose@GOTPAGE
Lloh62:
	ldr	x21, [x21, _verbose@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh63:
	adrp	x8, _DST_DEBUG@GOTPAGE
Lloh64:
	ldr	x8, [x8, _DST_DEBUG@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x3, l_.str.1@PAGE
Lloh67:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	x0, x20
	bl	_dst_error_recovery
	tbz	x0, #63, LBB0_7
; %bb.26:
	ldr	w0, [x21]
Lloh68:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
Lloh71:
	adrp	x3, l_.str.5@PAGE
Lloh72:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_27:
	ldr	x0, [x20, #8]
	ldr	x20, [x0, #56]
	mov	w1, #7
	bl	_dst_check_sum
	cmp	x20, x0
	b.ne	LBB0_30
; %bb.28:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_8
LBB0_29:
	ldr	x8, [x21, #8]
	orr	x8, x8, #0x2
	cmp	x8, #3
	b.eq	LBB0_7
	b	LBB0_19
LBB0_30:
Lloh73:
	adrp	x8, _verbose@GOTPAGE
Lloh74:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x8]
Lloh76:
	adrp	x8, _DST_INFO@GOTPAGE
Lloh77:
	ldr	x8, [x8, _DST_INFO@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
Lloh79:
	adrp	x3, l_.str.6@PAGE
Lloh80:
	add	x3, x3, l_.str.6@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_NOTICE,4,2                 ; @DST_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DST Communication Initialization Failed."

	.comm	_DST_INFO,4,2                   ; @DST_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Trying to recover.. "

	.comm	_DST_ERROR,4,2                  ; @DST_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Recovery Failed."

l_.str.3:                               ; @.str.3
	.asciz	"PIO Disable Failed."

	.comm	_DST_TYPE_HAS_FW_1,4,2          ; @DST_TYPE_HAS_FW_1
	.comm	_GET_ACK,4,2                    ; @GET_ACK
	.comm	_DST_DEBUG,4,2                  ; @DST_DEBUG
	.comm	_ACK,8,3                        ; @ACK
l_.str.4:                               ; @.str.4
	.asciz	"write not acknowledged 0x%02x "

	.comm	_NO_DELAY,4,2                   ; @NO_DELAY
	.comm	_FIXED_COMM,4,2                 ; @FIXED_COMM
l_.str.5:                               ; @.str.5
	.asciz	"Recovery failed."

l_.str.6:                               ; @.str.6
	.asciz	"checksum failure"

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