	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_rearm_timeout
_fsl_sata_rearm_timeout:                ## @fsl_sata_rearm_timeout
	.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	%rdi, %r15
	addq	$16, %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_FSL_SATA_SLOT_RUNNING@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx), %rdx
	cmpq	(%r12), %rdx
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	btl	%r13d, %edx
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%rbx), %r8
	leaq	(%rcx,%rbx), %rdi
	addq	$16, %rdi
	movq	8(%rcx,%rbx), %rax
	movl	(%rax), %eax
	movq	_SBT_1MS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	_fsl_sata_timeout@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_callout_reset_sbt
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ## @FSL_SATA_MAX_SLOTS
	.comm	_FSL_SATA_SLOT_RUNNING,8,3      ## @FSL_SATA_SLOT_RUNNING
	.comm	_SBT_1MS,4,2                    ## @SBT_1MS
	.comm	_fsl_sata_timeout,8,3           ## @fsl_sata_timeout
	.no_dead_strip	_fsl_sata_rearm_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_rearm_timeout
_fsl_sata_rearm_timeout:                ; @fsl_sata_rearm_timeout
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	add	x0, x0, #16
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mtx_assert
Lloh3:
	adrp	x20, _FSL_SATA_MAX_SLOTS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FSL_SATA_MAX_SLOTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh5:
	adrp	x23, _FSL_SATA_SLOT_RUNNING@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FSL_SATA_SLOT_RUNNING@GOTPAGEOFF]
Lloh7:
	adrp	x24, _SBT_1MS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SBT_1MS@GOTPAGEOFF]
Lloh9:
	adrp	x25, _fsl_sata_timeout@GOTPAGE
Lloh10:
	ldr	x25, [x25, _fsl_sata_timeout@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #24
	cmp	x22, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x4, x9, x21
	ldr	x10, [x4]
	ldr	x11, [x23]
	cmp	x10, x11
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x19]
	lsr	w10, w10, w22
	tbz	w10, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x21
	add	x0, x8, #16
	ldr	w9, [x24]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	mul	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	ldr	x3, [x25]
	mov	w2, #0
	mov	w5, #0
	bl	_callout_reset_sbt
	ldr	w8, [x20]
	b	LBB0_2
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ; @FSL_SATA_MAX_SLOTS
	.comm	_FSL_SATA_SLOT_RUNNING,8,3      ; @FSL_SATA_SLOT_RUNNING
	.comm	_SBT_1MS,4,2                    ; @SBT_1MS
	.comm	_fsl_sata_timeout,8,3           ; @fsl_sata_timeout
	.no_dead_strip	_fsl_sata_rearm_timeout
.subsections_via_symbols
