	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nvme_disable_io_queues
___nvme_disable_io_queues:              ## @__nvme_disable_io_queues
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	decl	%ecx
	xorl	%r14d, %r14d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	_ADMIN_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r15d
	movl	%ecx, %r13d
	addl	%r14d, %r13d
	leaq	(,%r15,8), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_nvme_delete_queue
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	-1(%r15), %rax
	incl	%r14d
	addq	$-8, %rbx
	cmpq	$1, %r15
	movq	%rax, %r15
	jg	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movslq	%r13d, %rax
	movslq	%ecx, %r13
	leaq	1(%rax), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %r13
	shlq	$3, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$-8, %r13
	movl	%r14d, %ecx
	testl	%r14d, %r14d
	jne	LBB0_1
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%r15
	cmpq	%r15, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%ecx, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	leaq	(%rbx,%r13), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	_wait_for_completion_io_timeout
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_nvme_admin_delete_cq@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	addq	%r13, %rbx
	movq	_NVMEQ_DELETE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_nvme_poll_irqdisable
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	%r15d, %eax
	movl	%eax, %r14d
	jmp	LBB0_2
LBB0_11:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_14:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADMIN_TIMEOUT,8,3              ## @ADMIN_TIMEOUT
	.comm	_nvme_admin_delete_cq,4,2       ## @nvme_admin_delete_cq
	.comm	_NVMEQ_DELETE_ERROR,4,2         ## @NVMEQ_DELETE_ERROR
	.no_dead_strip	___nvme_disable_io_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nvme_disable_io_queues
___nvme_disable_io_queues:              ; @__nvme_disable_io_queues
	.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, x1
	mov	x20, x0
	mov	w26, #0
	ldr	w8, [x0]
	sub	w27, w8, #1
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
Lloh0:
	adrp	x8, _ADMIN_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADMIN_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cmp	w27, #1
	b.lt	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w23, w27
	add	w22, w27, w26
	lsl	x25, x23, #3
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	add	x0, x8, x25
	mov	x1, x19
	bl	_nvme_delete_queue
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	sub	x25, x25, #8
	add	w26, w26, #1
	subs	x23, x23, #1
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, x23
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x26
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x8, w22
	add	x28, x8, #1
	add	x8, x8, w27, sxtw
	lsl	x23, x8, #3
	mov	x26, x22
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x23, x25
	cbnz	w27, LBB0_1
LBB0_10:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x28, x28, #1
	cbz	x28, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x24, [x20, #8]
	add	x22, x24, x23
	add	x0, x22, #4
	mov	x1, x21
	bl	_wait_for_completion_io_timeout
	cbz	x0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x21, x0
	sub	x25, x23, #8
	sub	w26, w26, #1
Lloh3:
	adrp	x8, _nvme_admin_delete_cq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvme_admin_delete_cq@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh6:
	adrp	x8, _NVMEQ_DELETE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVMEQ_DELETE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x24, x23
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x22
	mov	w1, #-1
	bl	_nvme_poll_irqdisable
	b	LBB0_9
LBB0_15:
	mov	w0, #1
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADMIN_TIMEOUT,8,3              ; @ADMIN_TIMEOUT
	.comm	_nvme_admin_delete_cq,4,2       ; @nvme_admin_delete_cq
	.comm	_NVMEQ_DELETE_ERROR,4,2         ; @NVMEQ_DELETE_ERROR
	.no_dead_strip	___nvme_disable_io_queues
.subsections_via_symbols
