	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adapter_alloc_sq
_adapter_alloc_sq:                      ## @adapter_alloc_sq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_NVME_QUEUE_PHYS_CONTIG@GOTPCREL(%rip), %rax
	movq	_NVME_SQ_PRIO_MEDIUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	leaq	-80(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_nvme_admin_create_sq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%r13), %edi
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	(%r13), %edi
	decl	%edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movq	%r14, %rdi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	callq	_nvme_submit_admin_cmd
	movq	_EIO@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r15d
	testl	%eax, %eax
	cmovnel	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_QUEUE_PHYS_CONTIG,4,2     ## @NVME_QUEUE_PHYS_CONTIG
	.comm	_NVME_SQ_PRIO_MEDIUM,4,2        ## @NVME_SQ_PRIO_MEDIUM
	.comm	_nvme_admin_create_sq,4,2       ## @nvme_admin_create_sq
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_adapter_alloc_sq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adapter_alloc_sq
_adapter_alloc_sq:                      ; @adapter_alloc_sq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _NVME_QUEUE_PHYS_CONTIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_QUEUE_PHYS_CONTIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NVME_SQ_PRIO_MEDIUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVME_SQ_PRIO_MEDIUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh6:
	adrp	x8, _nvme_admin_create_sq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nvme_admin_create_sq@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le64
	str	w0, [sp, #40]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	ldr	w8, [x19]
	sub	w0, w8, #1
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_nvme_submit_admin_cmd
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_QUEUE_PHYS_CONTIG,4,2     ; @NVME_QUEUE_PHYS_CONTIG
	.comm	_NVME_SQ_PRIO_MEDIUM,4,2        ; @NVME_SQ_PRIO_MEDIUM
	.comm	_nvme_admin_create_sq,4,2       ; @nvme_admin_create_sq
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_adapter_alloc_sq
.subsections_via_symbols
