	.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	%ecx, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EINTR@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	subl	(%r14), %ecx
	movl	%eax, -48(%rbp)
	movl	%ecx, -56(%rbp)
	movq	_sync_completion@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movl	%r13d, %ecx
	callq	_alloc_cmdid_killable
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%ebx, (%r12)
	movq	_TASK_KILLABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvme_submit_cmd
	movl	%r13d, %edi
	callq	_schedule_timeout
	movl	-56(%rbp), %eax
	movl	(%r14), %ecx
	addl	%eax, %ecx
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nvme_abort_command
	xorl	%eax, %eax
	subl	(%r14), %eax
	jmp	LBB0_6
LBB0_1:
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_4:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movl	-52(%rbp), %ecx
	movl	%ecx, (%rdx)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_sync_completion,4,2            ## @sync_completion
	.comm	_TASK_KILLABLE,4,2              ## @TASK_KILLABLE
.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:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _EINTR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EINTR@GOTPAGEOFF]
	ldr	w9, [x24]
	neg	w9, w9
	str	w8, [sp, #8]
	str	w9, [sp]
Lloh5:
	adrp	x8, _sync_completion@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sync_completion@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_alloc_cmdid_killable
	mov	x23, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	w23, [x22]
Lloh8:
	adrp	x8, _TASK_KILLABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TASK_KILLABLE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x20
	mov	x1, x22
	bl	_nvme_submit_cmd
	mov	x0, x21
	bl	_schedule_timeout
	ldr	w0, [sp]
	ldr	w8, [x24]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	bl	_nvme_abort_command
	ldr	w8, [x24]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	mov	x0, x23
	b	LBB0_6
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w8, [sp, #4]
	str	w8, [x19]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_sync_completion,4,2            ; @sync_completion
	.comm	_TASK_KILLABLE,4,2              ; @TASK_KILLABLE
.subsections_via_symbols
