	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_format_unit
_nvme_trans_format_unit:                ## @nvme_trans_format_unit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_GET_U8_FROM_CDB
	movq	%rax, %r13
	movq	_FORMAT_UNIT_CDB_LONG_LIST_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GET_U8_FROM_CDB
	movq	%rax, %r12
	movq	_FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GET_U8_FROM_CDB
	movq	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r13
	movq	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %r13
	movq	_FORMAT_UNIT_CDB_FORMAT_DATA_MASK@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_10
## %bb.1:
	testq	%r13, %r13
	je	LBB0_7
## %bb.2:
	movq	_FORMAT_UNIT_CDB_LONG_LIST_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r12
	jne	LBB0_3
## %bb.4:
	movq	_FORMAT_UNIT_SHORT_PARM_LIST_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	testq	%r13, %r13
	je	LBB0_7
## %bb.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_CDB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_trans_completion          ## TAILCALL
LBB0_3:
	movq	_FORMAT_UNIT_LONG_PARM_LIST_LEN@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.6:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_nvme_trans_fmt_get_parm_header
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_7:
	movq	_nvme_admin_activate_fw@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nvme_trans_send_fw_cmd
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nvme_trans_fmt_set_blk_size_count
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nvme_trans_fmt_send_cmd
LBB0_9:
	addq	$8, %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	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET,4,2 ## @FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET
	.comm	_FORMAT_UNIT_CDB_LONG_LIST_OFFSET,4,2 ## @FORMAT_UNIT_CDB_LONG_LIST_OFFSET
	.comm	_FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET,4,2 ## @FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET
	.comm	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK,8,3 ## @FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK
	.comm	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT,8,3 ## @FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT
	.comm	_FORMAT_UNIT_CDB_LONG_LIST_MASK,8,3 ## @FORMAT_UNIT_CDB_LONG_LIST_MASK
	.comm	_FORMAT_UNIT_CDB_FORMAT_DATA_MASK,8,3 ## @FORMAT_UNIT_CDB_FORMAT_DATA_MASK
	.comm	_FORMAT_UNIT_SHORT_PARM_LIST_LEN,8,3 ## @FORMAT_UNIT_SHORT_PARM_LIST_LEN
	.comm	_FORMAT_UNIT_LONG_PARM_LIST_LEN,8,3 ## @FORMAT_UNIT_LONG_PARM_LIST_LEN
	.comm	_SAM_STAT_CHECK_CONDITION,4,2   ## @SAM_STAT_CHECK_CONDITION
	.comm	_ILLEGAL_REQUEST,4,2            ## @ILLEGAL_REQUEST
	.comm	_SCSI_ASC_INVALID_CDB,4,2       ## @SCSI_ASC_INVALID_CDB
	.comm	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE,4,2 ## @SCSI_ASCQ_CAUSE_NOT_REPORTABLE
	.comm	_nvme_admin_activate_fw,4,2     ## @nvme_admin_activate_fw
	.no_dead_strip	_nvme_trans_format_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_format_unit
_nvme_trans_format_unit:                ; @nvme_trans_format_unit
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_GET_U8_FROM_CDB
	mov	x23, x0
Lloh3:
	adrp	x8, _FORMAT_UNIT_CDB_LONG_LIST_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FORMAT_UNIT_CDB_LONG_LIST_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GET_U8_FROM_CDB
	mov	x21, x0
Lloh6:
	adrp	x8, _FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_GET_U8_FROM_CDB
Lloh9:
	adrp	x8, _FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	and	x8, x8, x23
Lloh12:
	adrp	x9, _FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	asr	x2, x8, x9
Lloh15:
	adrp	x8, _FORMAT_UNIT_CDB_FORMAT_DATA_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FORMAT_UNIT_CDB_FORMAT_DATA_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_4
; %bb.1:
	cbz	x2, LBB0_6
; %bb.2:
Lloh18:
	adrp	x8, _FORMAT_UNIT_CDB_LONG_LIST_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FORMAT_UNIT_CDB_LONG_LIST_MASK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	and	x8, x8, x21
Lloh21:
	adrp	x9, _FORMAT_UNIT_SHORT_PARM_LIST_LEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FORMAT_UNIT_SHORT_PARM_LIST_LEN@GOTPAGEOFF]
Lloh23:
	adrp	x10, _FORMAT_UNIT_LONG_PARM_LIST_LEN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _FORMAT_UNIT_LONG_PARM_LIST_LEN@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x1, [x8]
	cmp	x1, #0
	b.le	LBB0_6
; %bb.3:
	add	x3, sp, #8
	mov	x0, x19
	bl	_nvme_trans_fmt_get_parm_header
Lloh25:
	adrp	x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
	b	LBB0_8
LBB0_4:
	cbz	x2, LBB0_6
; %bb.5:
Lloh28:
	adrp	x8, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _SCSI_ASC_INVALID_CDB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SCSI_ASC_INVALID_CDB@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh39:
	ldr	w4, [x8]
	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
	add	sp, sp, #80
	b	_nvme_trans_completion
LBB0_6:
Lloh40:
	adrp	x8, _nvme_admin_activate_fw@GOTPAGE
Lloh41:
	ldr	x8, [x8, _nvme_admin_activate_fw@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_nvme_trans_send_fw_cmd
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_trans_fmt_set_blk_size_count
Lloh43:
	adrp	x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	x2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_trans_fmt_send_cmd
LBB0_8:
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET,4,2 ; @FORMAT_UNIT_CDB_FORMAT_PROT_INFO_OFFSET
	.comm	_FORMAT_UNIT_CDB_LONG_LIST_OFFSET,4,2 ; @FORMAT_UNIT_CDB_LONG_LIST_OFFSET
	.comm	_FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET,4,2 ; @FORMAT_UNIT_CDB_FORMAT_DATA_OFFSET
	.comm	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK,8,3 ; @FORMAT_UNIT_CDB_FORMAT_PROT_INFO_MASK
	.comm	_FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT,8,3 ; @FORMAT_UNIT_CDB_FORMAT_PROT_INFO_SHIFT
	.comm	_FORMAT_UNIT_CDB_LONG_LIST_MASK,8,3 ; @FORMAT_UNIT_CDB_LONG_LIST_MASK
	.comm	_FORMAT_UNIT_CDB_FORMAT_DATA_MASK,8,3 ; @FORMAT_UNIT_CDB_FORMAT_DATA_MASK
	.comm	_FORMAT_UNIT_SHORT_PARM_LIST_LEN,8,3 ; @FORMAT_UNIT_SHORT_PARM_LIST_LEN
	.comm	_FORMAT_UNIT_LONG_PARM_LIST_LEN,8,3 ; @FORMAT_UNIT_LONG_PARM_LIST_LEN
	.comm	_SAM_STAT_CHECK_CONDITION,4,2   ; @SAM_STAT_CHECK_CONDITION
	.comm	_ILLEGAL_REQUEST,4,2            ; @ILLEGAL_REQUEST
	.comm	_SCSI_ASC_INVALID_CDB,4,2       ; @SCSI_ASC_INVALID_CDB
	.comm	_SCSI_ASCQ_CAUSE_NOT_REPORTABLE,4,2 ; @SCSI_ASCQ_CAUSE_NOT_REPORTABLE
	.comm	_nvme_admin_activate_fw,4,2     ; @nvme_admin_activate_fw
	.no_dead_strip	_nvme_trans_format_unit
.subsections_via_symbols
