	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nvme_submit_sync_cmd         ## -- Begin function __nvme_submit_sync_cmd
	.p2align	4, 0x90
___nvme_submit_sync_cmd:                ## @__nvme_submit_sync_cmd
	.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	%r9d, %r15d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	40(%rbp), %r12d
	movl	24(%rbp), %r13d
	movl	32(%rbp), %edx
	movl	16(%rbp), %ecx
	callq	_nvme_alloc_request
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.2:
	movq	_ADMIN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movl	%r15d, (%rbx)
	testq	%rdx, %rdx
	movl	%ecx, %r15d
	je	LBB0_6
## %bb.4:
	movl	%esi, %ecx
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_blk_rq_map_kern
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_6:
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_nvme_execute_rq_polled
	testq	%r12, %r12
	je	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_nvme_req
	movl	8(%rax), %eax
	movl	%eax, (%r12)
LBB0_11:
	movq	%rbx, %rdi
	callq	_nvme_req
	movq	_NVME_REQ_CANCELLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_blk_execute_rq
	testq	%r12, %r12
	jne	LBB0_10
	jmp	LBB0_11
LBB0_13:
	movq	%rbx, %rdi
	callq	_nvme_req
	movl	4(%rax), %r14d
LBB0_14:
	movq	%rbx, %rdi
	callq	_blk_mq_free_request
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADMIN_TIMEOUT,4,2              ## @ADMIN_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NVME_REQ_CANCELLED,4,2         ## @NVME_REQ_CANCELLED
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nvme_submit_sync_cmd         ; -- Begin function __nvme_submit_sync_cmd
	.p2align	2
___nvme_submit_sync_cmd:                ; @__nvme_submit_sync_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x7
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x0
	ldp	w2, w26, [x29, #16]
	mov	x3, x6
	bl	_nvme_alloc_request
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _ADMIN_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADMIN_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w25, #0
	csel	w8, w8, w25, eq
	str	w8, [x19]
	cbz	x23, LBB0_5
; %bb.3:
	cbz	w22, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_blk_rq_map_kern
	mov	x22, x0
	cbnz	w0, LBB0_12
LBB0_5:
	ldr	w0, [x19, #4]
	mov	x1, #0
	mov	x2, x19
	mov	x3, x21
	cbz	w26, LBB0_10
; %bb.6:
	bl	_nvme_execute_rq_polled
	cbz	x20, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_nvme_req
	ldr	w8, [x0, #8]
	str	w8, [x20]
LBB0_8:
	mov	x0, x19
	bl	_nvme_req
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _NVME_REQ_CANCELLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVME_REQ_CANCELLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
Lloh9:
	adrp	x8, _EINTR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_10:
	bl	_blk_execute_rq
	cbnz	x20, LBB0_7
	b	LBB0_8
LBB0_11:
	mov	x0, x19
	bl	_nvme_req
	ldr	w22, [x0, #4]
LBB0_12:
	mov	x0, x19
	bl	_blk_mq_free_request
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ADMIN_TIMEOUT,4,2              ; @ADMIN_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NVME_REQ_CANCELLED,4,2         ; @NVME_REQ_CANCELLED
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
