	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_hardreset
_nv_hardreset:                          ## @nv_hardreset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	_ATA_PFLAG_LOADING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	callq	_ata_dev_enabled
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_sata_ehc_deb_timing
	movq	%rax, %r15
	movq	_ATA_EHI_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ata_link_printk
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_sata_link_resume
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ata_link_printk
	jmp	LBB0_8
LBB0_2:
	movq	_sata_deb_timing_hotplug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sata_link_hardreset
LBB0_8:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_PFLAG_LOADING,4,2          ## @ATA_PFLAG_LOADING
	.comm	_sata_deb_timing_hotplug,4,2    ## @sata_deb_timing_hotplug
	.comm	_ATA_EHI_QUIET,4,2              ## @ATA_EHI_QUIET
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nv: skipping hardreset on occupied port\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"failed to resume link (errno=%d)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_nv_hardreset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_hardreset
_nv_hardreset:                          ; @nv_hardreset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ATA_PFLAG_LOADING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_PFLAG_LOADING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_ata_dev_enabled
	cbz	w0, LBB0_7
LBB0_2:
	add	x22, x19, #16
	mov	x0, x22
	bl	_sata_ehc_deb_timing
	mov	x21, x0
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _ATA_EHI_QUIET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_EHI_QUIET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ata_link_printk
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_sata_link_resume
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ata_link_printk
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _sata_deb_timing_hotplug@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sata_deb_timing_hotplug@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	mov	x4, #0
	bl	_sata_link_hardreset
LBB0_8:
Lloh22:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_PFLAG_LOADING,4,2          ; @ATA_PFLAG_LOADING
	.comm	_sata_deb_timing_hotplug,4,2    ; @sata_deb_timing_hotplug
	.comm	_ATA_EHI_QUIET,4,2              ; @ATA_EHI_QUIET
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nv: skipping hardreset on occupied port\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"failed to resume link (errno=%d)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_nv_hardreset
.subsections_via_symbols
