	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sata_link_debounce             ## -- Begin function sata_link_debounce
	.p2align	4, 0x90
_sata_link_debounce:                    ## @sata_link_debounce
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	8(%rsi), %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	16(%rsi), %rsi
	callq	_ata_deadline
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	cmoveq	%r13, %rbx
	movq	_SCR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sata_scr_read
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r13d
	andl	$15, %r13d
	movl	%r13d, -44(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_ata_msleep
	movq	_SCR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_sata_scr_read
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rbx
	movq	(%r12), %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ata_deadline
	movq	%r15, %rdi
	movq	%rbx, %r15
	movq	%rax, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_ata_msleep
	movq	_SCR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	_sata_scr_read
	testl	%eax, %eax
	jne	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-44(%rbp), %ebx
	andl	$15, %ebx
	movl	%ebx, -44(%rbp)
	cmpl	%r13d, %ebx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %r13d
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r12), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_time_after
	movl	%ebx, %r13d
	testq	%rax, %rax
	leaq	-44(%rbp), %r12
	je	LBB0_2
## %bb.11:
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SCR_STATUS,4,2                 ## @SCR_STATUS
	.comm	_EPIPE,4,2                      ## @EPIPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sata_link_debounce             ; -- Begin function sata_link_debounce
	.p2align	2
_sata_link_debounce:                    ; @sata_link_debounce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x0
	ldp	x20, x21, [x1]
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x0, [x25]
	ldr	x1, [x1, #16]
	bl	_ata_deadline
	mov	x23, x0
	mov	x1, x22
	bl	_time_before
	cmp	x0, #0
	csel	x22, x22, x23, eq
Lloh2:
	adrp	x26, _SCR_STATUS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SCR_STATUS@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x2, sp, #12
	mov	x0, x19
	bl	_sata_scr_read
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	ldr	w8, [sp, #12]
	and	w27, w8, #0xf
	str	w27, [sp, #12]
	ldr	x23, [x25]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x25]
	mov	x0, x23
	mov	x1, x21
	bl	_ata_deadline
	mov	x1, x0
	mov	x0, x24
	bl	_time_after
	cbnz	x0, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ata_msleep
	ldr	w1, [x26]
	add	x2, sp, #12
	mov	x0, x19
	bl	_sata_scr_read
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	and	w24, w8, #0xf
	str	w24, [sp, #12]
	cmp	w24, w27
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #1
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_time_before
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x25]
	mov	x0, x23
	mov	x1, x22
	bl	_time_after
	mov	x27, x24
	cbz	x0, LBB0_4
; %bb.9:
Lloh4:
	adrp	x8, _EPIPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_10:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SCR_STATUS,4,2                 ; @SCR_STATUS
	.comm	_EPIPE,4,2                      ; @EPIPE
.subsections_via_symbols
