	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_alloc_request             ## -- Begin function nvme_alloc_request
	.p2align	4, 0x90
_nvme_alloc_request:                    ## @nvme_alloc_request
	.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
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_nvme_is_write
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_REQ_OP_DRV_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_REQ_OP_DRV_OUT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_NVME_QID_ANY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_blk_mq_alloc_request
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	subl	$1, %ebx
	cmovbl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_blk_mq_alloc_request_hctx
LBB0_6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_REQ_FAILFAST_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_nvme_clear_nvme_request
	movq	%rbx, %rdi
	callq	_nvme_req
	movq	%r14, (%rax)
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_DRV_OUT,4,2             ## @REQ_OP_DRV_OUT
	.comm	_REQ_OP_DRV_IN,4,2              ## @REQ_OP_DRV_IN
	.comm	_NVME_QID_ANY,4,2               ## @NVME_QID_ANY
	.comm	_REQ_FAILFAST_DRIVER,4,2        ## @REQ_FAILFAST_DRIVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_alloc_request             ; -- Begin function nvme_alloc_request
	.p2align	2
_nvme_alloc_request:                    ; @nvme_alloc_request
	.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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_nvme_is_write
Lloh0:
	adrp	x8, _REQ_OP_DRV_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_DRV_OUT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _REQ_OP_DRV_IN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REQ_OP_DRV_IN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _NVME_QID_ANY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVME_QID_ANY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x2, x20
	bl	_blk_mq_alloc_request
	b	LBB0_3
LBB0_2:
	sub	w8, w22, #1
	cmp	w22, #0
	csel	w3, wzr, w8, eq
	mov	x0, x21
	mov	x2, x20
	bl	_blk_mq_alloc_request_hctx
LBB0_3:
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _REQ_FAILFAST_DRIVER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REQ_FAILFAST_DRIVER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_nvme_clear_nvme_request
	mov	x0, x20
	bl	_nvme_req
	str	x19, [x0]
LBB0_5:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_DRV_OUT,4,2             ; @REQ_OP_DRV_OUT
	.comm	_REQ_OP_DRV_IN,4,2              ; @REQ_OP_DRV_IN
	.comm	_NVME_QID_ANY,4,2               ; @NVME_QID_ANY
	.comm	_REQ_FAILFAST_DRIVER,4,2        ; @REQ_FAILFAST_DRIVER
.subsections_via_symbols
