	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_fmt_send_cmd
_nvme_trans_fmt_send_cmd:               ## @nvme_trans_fmt_send_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rdi), %r12
	movq	(%r12), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	$32, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_nvme_identify
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movl	%r13d, %ebx
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.4:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	8(%r15), %edx
	movq	24(%r14), %rsi
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%r13,4), %ecx
	movl	$1, %ebx
	shll	%cl, %ebx
	cmpl	%ebx, %edx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	cmpq	%r13, %rax
	jne	LBB0_7
## %bb.9:
	movl	$255, %r13d
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_5:
	movl	$255, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_10:
	cmpq	$16, %r13
	jb	LBB0_12
LBB0_11:
	movq	_SAM_STAT_CHECK_CONDITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCSI_ASC_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_nvme_trans_completion
LBB0_12:
	movq	16(%r15), %rbx
	movl	16(%r14), %edi
	callq	_le64_to_cpu
	cmpq	%rax, %rbx
	je	LBB0_14
## %bb.13:
	movq	_SAM_STAT_CHECK_CONDITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCSI_ASC_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvme_trans_completion
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	shlq	$5, %rax
	andl	$15, %r13d
	orq	%rax, %r13
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_nvme_admin_format_nvm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	(%r15), %rdi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movq	%r13, %rdi
	callq	_cpu_to_le32
	movq	%rax, -88(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_nvme_submit_admin_cmd
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	testl	%eax, %eax
	movl	%eax, %ebx
	cmovel	%r15d, %ebx
	testl	%r15d, %r15d
	cmovel	%eax, %ebx
LBB0_15:
	movq	(%r12), %rdi
	movl	-44(%rbp), %ecx
	movl	$32, %esi
	movq	%r14, %rdx
	callq	_dma_free_coherent
LBB0_16:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ## @SNTI_TRANSLATION_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SAM_STAT_CHECK_CONDITION,4,2   ## @SAM_STAT_CHECK_CONDITION
	.comm	_ILLEGAL_REQUEST,4,2            ## @ILLEGAL_REQUEST
	.comm	_SCSI_ASC_INVALID_PARAMETER,4,2 ## @SCSI_ASC_INVALID_PARAMETER
	.comm	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE,4,2 ## @SCSI_ASCQ_CAUSE_NOT_REPORTABLE
	.comm	_nvme_admin_format_nvm,4,2      ## @nvme_admin_format_nvm
	.no_dead_strip	_nvme_trans_fmt_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_fmt_send_cmd
_nvme_trans_fmt_send_cmd:               ; @nvme_trans_fmt_send_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #24]
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #28
	mov	w1, #32
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x1, [x22]
	ldr	w3, [sp, #28]
	mov	x0, x19
	mov	w2, #0
	bl	_nvme_identify
	mov	x25, x0
	mov	x0, x21
	mov	x1, x25
	bl	_nvme_trans_status_code
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.2:
	mov	x24, x25
	cbnz	w25, LBB0_14
; %bb.3:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x25, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh5:
	adrp	x26, _ILLEGAL_REQUEST@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh7:
	adrp	x28, _SCSI_ASC_INVALID_PARAMETER@GOTPAGE
Lloh8:
	ldr	x28, [x28, _SCSI_ASC_INVALID_PARAMETER@GOTPAGEOFF]
Lloh9:
	adrp	x13, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh10:
	ldr	x13, [x13, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x24, #0
	ldr	w9, [x22, #8]
	ldr	x10, [x20, #24]
	mov	w11, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x24, lsl #2]
	lsl	w12, w11, w12
	cmp	w9, w12
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x8, x24
	b.ne	LBB0_5
LBB0_7:
	mov	w24, #255
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_9:
	cmp	x24, #16
	b.lo	LBB0_11
LBB0_10:
	ldr	w1, [x25]
	ldr	w2, [x26]
	ldr	w3, [x28]
	ldr	w4, [x13]
	mov	x0, x21
	bl	_nvme_trans_completion
LBB0_11:
	mov	x27, x26
	mov	x26, x25
	ldr	x25, [x22, #16]
	ldr	w0, [x20, #16]
	bl	_le64_to_cpu
	cmp	x25, x0
	b.eq	LBB0_13
; %bb.12:
	ldr	w1, [x26]
	ldr	w2, [x27]
	ldr	w3, [x28]
Lloh14:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x0, x21
	bl	_nvme_trans_completion
LBB0_13:
	and	x24, x24, #0xf
	bfi	x24, x23, #5, #59
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh17:
	adrp	x8, _nvme_admin_format_nvm@GOTPAGE
Lloh18:
	ldr	x8, [x8, _nvme_admin_format_nvm@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x0, [x22]
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_nvme_submit_admin_cmd
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_nvme_trans_status_code
	cmp	w0, #0
	ccmp	w22, #0, #4, eq
	csel	w24, w22, w0, ne
LBB0_14:
	ldr	x0, [x19]
	ldr	w3, [sp, #28]
	mov	w1, #32
	mov	x2, x20
	bl	_dma_free_coherent
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SAM_STAT_CHECK_CONDITION,4,2   ; @SAM_STAT_CHECK_CONDITION
	.comm	_ILLEGAL_REQUEST,4,2            ; @ILLEGAL_REQUEST
	.comm	_SCSI_ASC_INVALID_PARAMETER,4,2 ; @SCSI_ASC_INVALID_PARAMETER
	.comm	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE,4,2 ; @SCSI_ASCQ_CAUSE_NOT_REPORTABLE
	.comm	_nvme_admin_format_nvm,4,2      ; @nvme_admin_format_nvm
	.no_dead_strip	_nvme_trans_fmt_send_cmd
.subsections_via_symbols
