	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcierror_quiesce_device
_pcierror_quiesce_device:               ## @pcierror_quiesce_device
	.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	%rdi, %r14
	callq	_force_io_queues_off
	movq	_WAIT_INFLIGHT_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_schedule_timeout_uninterruptible
	movq	%r14, %rdi
	callq	_wait_for_pending_requests
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	%r14, %rdi
	callq	_MAX_OCTEON_INSTR_QUEUES
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_MAX_OCTEON_INSTR_QUEUES
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_BIT_ULL
	testl	%r15d, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	$0, 24(%r15)
	movl	12(%r15), %eax
	movl	%eax, 16(%r15)
	movq	%r12, %rdi
	callq	_atomic_read
	addl	%eax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_lio_process_iq_request_list
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lio_process_ordered_list       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WAIT_INFLIGHT_REQUEST,4,2      ## @WAIT_INFLIGHT_REQUEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"There were pending requests\n"

	.no_dead_strip	_pcierror_quiesce_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcierror_quiesce_device
_pcierror_quiesce_device:               ; @pcierror_quiesce_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_force_io_queues_off
Lloh0:
	adrp	x8, _WAIT_INFLIGHT_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAIT_INFLIGHT_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_schedule_timeout_uninterruptible
	mov	x0, x19
	bl	_wait_for_pending_requests
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	bl	_MAX_OCTEON_INSTR_QUEUES
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	bl	_MAX_OCTEON_INSTR_QUEUES
	cmp	x20, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_BIT_ULL
	tst	w0, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x21, [x8, x20, lsl #3]
	add	x22, x21, #4
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_spin_lock_bh
	str	xzr, [x21, #24]
	ldr	w8, [x21, #12]
	str	w8, [x21, #16]
	mov	x0, x22
	bl	_atomic_read
	ldr	w8, [x21, #8]
	add	w8, w8, w0
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_lio_process_iq_request_list
	mov	x0, x21
	bl	_spin_unlock_bh
	b	LBB0_4
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lio_process_ordered_list
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WAIT_INFLIGHT_REQUEST,4,2      ; @WAIT_INFLIGHT_REQUEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"There were pending requests\n"

	.no_dead_strip	_pcierror_quiesce_device
.subsections_via_symbols
