	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sil24_softreset
_sil24_softreset:                       ## @sil24_softreset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	callq	_sata_srst_pmp
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	%r14, %rdi
	callq	_sil24_init_port
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	subq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_jiffies_to_msecs
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	xorl	%ebx, %ebx
	movl	(%r15), %edi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	_ata_tf_init
	movq	_PRB_CTRL_SRST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_sil24_exec_polled_cmd
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	leaq	L_.str.3(%rip), %rcx
LBB0_9:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_ata_link_printk
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_sil24_read_tf
	movq	%r14, %rdi
	callq	_ata_dev_classify
	movl	%eax, (%r13)
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPRINTK
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

L_.str.1:                               ## @.str.1
	.asciz	"port not ready"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PRB_CTRL_SRST,4,2              ## @PRB_CTRL_SRST
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"timeout"

L_.str.3:                               ## @.str.3
	.asciz	"SRST command error"

L_.str.4:                               ## @.str.4
	.asciz	"EXIT, class=%u\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.5:                               ## @.str.5
	.asciz	"softreset failed (%s)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sil24_softreset
_sil24_softreset:                       ; @sil24_softreset
	.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	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_sata_srst_pmp
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	mov	x0, x21
	bl	_sil24_init_port
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_2:
Lloh4:
	adrp	x24, _jiffies@GOTPAGE
Lloh5:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x23
	bl	_time_after
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x24]
	sub	x0, x23, x8
	bl	_jiffies_to_msecs
	mov	x23, x0
	b	LBB0_5
LBB0_4:
	mov	x23, #0
LBB0_5:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_ata_tf_init
Lloh6:
	adrp	x8, _PRB_CTRL_SRST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRB_CTRL_SRST@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	x5, x23
	bl	_sil24_exec_polled_cmd
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	cbz	w0, LBB0_11
; %bb.8:
Lloh14:
	adrp	x3, l_.str.3@PAGE
Lloh15:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_9:
Lloh16:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ata_link_printk
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_sil24_read_tf
	add	x0, sp, #8
	bl	_ata_dev_classify
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x20]
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINTK
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

l_.str.1:                               ; @.str.1
	.asciz	"port not ready"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PRB_CTRL_SRST,4,2              ; @PRB_CTRL_SRST
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"timeout"

l_.str.3:                               ; @.str.3
	.asciz	"SRST command error"

l_.str.4:                               ; @.str.4
	.asciz	"EXIT, class=%u\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.5:                               ; @.str.5
	.asciz	"softreset failed (%s)\n"

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