	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_cmdid
_free_cmdid:                            ## @free_cmdid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_nvme_cmd_info
	cmpl	%r15d, (%rbx)
	jle	LBB0_1
## %bb.2:
	movslq	%r15d, %rdi
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%rdi, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rcx
	movq	%rcx, (%r14)
LBB0_4:
	movq	%rdi, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %r14
	movq	_special_completion@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax,%rcx)
	movq	_CMD_CTX_COMPLETED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax,%rcx)
	movl	8(%rbx), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_clear_bit
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	jmp	LBB0_5
LBB0_1:
	movq	_special_completion@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_CMD_CTX_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_special_completion,8,3         ## @special_completion
	.comm	_CMD_CTX_INVALID,8,3            ## @CMD_CTX_INVALID
	.comm	_CMD_CTX_COMPLETED,8,3          ## @CMD_CTX_COMPLETED
	.no_dead_strip	_free_cmdid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_cmdid
_free_cmdid:                            ; @free_cmdid
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_nvme_cmd_info
	ldr	w8, [x19]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.1:
	sxtw	x8, w20
	cbz	x21, LBB0_3
; %bb.2:
	add	x9, x0, x8, lsl #4
	ldr	x9, [x9, #8]
	str	x9, [x21]
LBB0_3:
	add	x8, x0, x8, lsl #4
	ldr	x21, [x8]
Lloh0:
	adrp	x9, _special_completion@GOTPAGE
Lloh1:
	ldr	x9, [x9, _special_completion@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [x8, #8]
Lloh3:
	adrp	x9, _CMD_CTX_COMPLETED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_CTX_COMPLETED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [x8]
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_clear_bit
	add	x0, x19, #4
	bl	_wake_up
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _special_completion@GOTPAGE
Lloh7:
	ldr	x8, [x8, _special_completion@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh9:
	adrp	x8, _CMD_CTX_INVALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_CTX_INVALID@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
LBB0_5:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_special_completion,8,3         ; @special_completion
	.comm	_CMD_CTX_INVALID,8,3            ; @CMD_CTX_INVALID
	.comm	_CMD_CTX_COMPLETED,8,3          ; @CMD_CTX_COMPLETED
	.no_dead_strip	_free_cmdid
.subsections_via_symbols
