	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_create_io_queues
_nvme_create_io_queues:                 ## @nvme_create_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	32(%r14), %ebx
	xorl	%r12d, %r12d
	cmpl	%edi, %ebx
	ja	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	36(%r14), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nvme_alloc_queue
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	(%r14), %edi
	cmpl	%edi, %ebx
	jbe	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	(%r14), %edi
LBB0_5:
	movl	32(%r14), %esi
	decl	%esi
	callq	_min
	movl	%eax, %r15d
	movl	$1, %r13d
	cmpl	$1, %eax
	je	LBB0_9
## %bb.6:
	movq	8(%r14), %rax
	movq	_HCTX_TYPE_POLL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_7
## %bb.8:
	movq	_HCTX_TYPE_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_HCTX_TYPE_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %r13d
	addl	(%rax,%rcx,4), %r13d
	jmp	LBB0_9
LBB0_7:
	movl	%r15d, %r13d
LBB0_9:
	movl	16(%r14), %ebx
	cmpl	%r15d, %ebx
	ja	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpl	%r13d, %ebx
	seta	%dl
	movl	%ebx, %edi
	shlq	$2, %rdi
	addq	24(%r14), %rdi
	movl	%ebx, %esi
	callq	_nvme_create_queue
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	%r15d, %ebx
	jbe	LBB0_10
## %bb.12:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %r12d
LBB0_14:
	movl	%r12d, %eax
	sarl	$31, %eax
	andl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCTX_TYPE_POLL,8,3             ## @HCTX_TYPE_POLL
	.comm	_HCTX_TYPE_DEFAULT,8,3          ## @HCTX_TYPE_DEFAULT
	.comm	_HCTX_TYPE_READ,8,3             ## @HCTX_TYPE_READ
	.no_dead_strip	_nvme_create_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_create_io_queues
_nvme_create_io_queues:                 ; @nvme_create_io_queues
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w20, [x0, #32]
	ldr	w0, [x0]
	cmp	w20, w0
	b.hi	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19, #36]
	mov	x0, x19
	mov	x1, x20
	bl	_nvme_alloc_queue
	cbnz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #1
	ldr	w0, [x19]
	cmp	w20, w0
	b.ls	LBB0_1
LBB0_3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x19]
LBB0_5:
	ldr	w8, [x19, #32]
	sub	w1, w8, #1
	bl	_min
	mov	x21, x0
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.6:
	mov	w23, #1
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _HCTX_TYPE_POLL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCTX_TYPE_POLL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_9
; %bb.8:
Lloh6:
	adrp	x9, _HCTX_TYPE_DEFAULT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HCTX_TYPE_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh9:
	adrp	x10, _HCTX_TYPE_READ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HCTX_TYPE_READ@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w8, [x8, x10, lsl #2]
	add	w23, w8, w9
	b	LBB0_10
LBB0_9:
	mov	x23, x21
LBB0_10:
	ldr	w22, [x19, #16]
	cmp	w22, w21
	b.hi	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, w23
	cset	w2, hi
	ldr	x8, [x19, #24]
	add	x0, x8, w22, uxtw #2
	mov	x1, x22
	bl	_nvme_create_queue
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	cmp	w22, w21
	b.ls	LBB0_11
; %bb.13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
	mov	x20, x0
LBB0_15:
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCTX_TYPE_POLL,8,3             ; @HCTX_TYPE_POLL
	.comm	_HCTX_TYPE_DEFAULT,8,3          ; @HCTX_TYPE_DEFAULT
	.comm	_HCTX_TYPE_READ,8,3             ; @HCTX_TYPE_READ
	.no_dead_strip	_nvme_create_io_queues
.subsections_via_symbols
