	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_quiesce_io
_mtip_quiesce_io:                       ## @mtip_quiesce_io
	.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, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rsi, %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	addq	%rbx, %r14
	leaq	16(%r12), %r15
	movl	$1, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_11
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTIP_PF_ISSUE_CMDS_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTIP_DDF_REMOVE_PENDING_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_readl
	movl	%eax, %ebx
	andl	$-2, %ebx
	movq	8(%r12), %rax
	cmpl	$2, (%rax)
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_readl
	orl	%eax, %ebx
	incq	%r13
	movq	8(%r12), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jb	LBB0_8
	jmp	LBB0_9
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MTIP_PF_SVC_THD_ACTIVE_BIT,4,2 ## @MTIP_PF_SVC_THD_ACTIVE_BIT
	.comm	_MTIP_PF_ISSUE_CMDS_BIT,4,2     ## @MTIP_PF_ISSUE_CMDS_BIT
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,4,2 ## @MTIP_DDF_REMOVE_PENDING_BIT
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_mtip_quiesce_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_quiesce_io
_mtip_quiesce_io:                       ; @mtip_quiesce_io
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	x0, x1
	bl	_msecs_to_jiffies
	add	x20, x0, x20
	add	x21, x19, #16
	mov	w26, #1
Lloh2:
	adrp	x23, _MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MTIP_PF_ISSUE_CMDS_BIT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MTIP_PF_ISSUE_CMDS_BIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w26, LBB0_11
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	bl	_test_bit
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_readl
	and	w26, w0, #0xfffffffe
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lo	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #1
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	w0, [x8, x27, lsl #2]
	bl	_readl
	orr	w26, w0, w26
	add	x27, x27, #1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	x27, x8
	b.lo	LBB0_8
	b	LBB0_1
LBB0_9:
	cbz	w26, LBB0_11
; %bb.10:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MTIP_PF_SVC_THD_ACTIVE_BIT,4,2 ; @MTIP_PF_SVC_THD_ACTIVE_BIT
	.comm	_MTIP_PF_ISSUE_CMDS_BIT,4,2     ; @MTIP_PF_ISSUE_CMDS_BIT
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,4,2 ; @MTIP_DDF_REMOVE_PENDING_BIT
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_mtip_quiesce_io
.subsections_via_symbols
