	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_write_buffer
_nvme_trans_write_buffer:               ## @nvme_trans_write_buffer
	.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, %r14
	movq	%rdi, %r15
	movq	_WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_GET_U24_FROM_CDB
	movl	%eax, %r13d
	movq	_BYTES_TO_DWORDS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_12
## %bb.1:
	movq	_WRITE_BUFFER_CDB_BUFFER_ID_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GET_U8_FROM_CDB
	movq	_NVME_MAX_FIRMWARE_SLOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_12
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_WRITE_BUFFER_CDB_MODE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GET_U8_FROM_CDB
	movq	%rax, %r12
	movq	_WRITE_BUFFER_CDB_MODE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r12
	movq	_WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GET_U24_FROM_CDB
	movl	%eax, %ebx
	cmpq	$128, %r12
	je	LBB0_7
## %bb.3:
	cmpq	$130, %r12
	je	LBB0_10
## %bb.4:
	cmpq	$129, %r12
	jne	LBB0_12
## %bb.5:
	movq	_nvme_admin_download_fw@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r9
	callq	_nvme_trans_send_fw_cmd
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.6:
	movq	_nvme_admin_activate_fw@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movq	%r12, %r9
	jmp	LBB0_9
LBB0_12:
	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	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_trans_completion          ## TAILCALL
LBB0_7:
	movq	_nvme_admin_download_fw@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_nvme_admin_activate_fw@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_trans_send_fw_cmd         ## TAILCALL
LBB0_11:
	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	_WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET,4,2 ## @WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET
	.comm	_BYTES_TO_DWORDS,4,2            ## @BYTES_TO_DWORDS
	.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	_WRITE_BUFFER_CDB_BUFFER_ID_OFFSET,4,2 ## @WRITE_BUFFER_CDB_BUFFER_ID_OFFSET
	.comm	_NVME_MAX_FIRMWARE_SLOT,8,3     ## @NVME_MAX_FIRMWARE_SLOT
	.comm	_WRITE_BUFFER_CDB_MODE_OFFSET,4,2 ## @WRITE_BUFFER_CDB_MODE_OFFSET
	.comm	_WRITE_BUFFER_CDB_MODE_MASK,8,3 ## @WRITE_BUFFER_CDB_MODE_MASK
	.comm	_WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET,4,2 ## @WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET
	.comm	_nvme_admin_download_fw,4,2     ## @nvme_admin_download_fw
	.comm	_nvme_admin_activate_fw,4,2     ## @nvme_admin_activate_fw
	.no_dead_strip	_nvme_trans_write_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_write_buffer
_nvme_trans_write_buffer:               ; @nvme_trans_write_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_GET_U24_FROM_CDB
Lloh3:
	adrp	x8, _BYTES_TO_DWORDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BYTES_TO_DWORDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	cbnz	w8, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _WRITE_BUFFER_CDB_BUFFER_ID_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE_BUFFER_CDB_BUFFER_ID_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_GET_U8_FROM_CDB
Lloh9:
	adrp	x8, _NVME_MAX_FIRMWARE_SLOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVME_MAX_FIRMWARE_SLOT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_7
; %bb.2:
	mov	x22, x0
Lloh12:
	adrp	x8, _WRITE_BUFFER_CDB_MODE_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WRITE_BUFFER_CDB_MODE_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_GET_U8_FROM_CDB
Lloh15:
	adrp	x8, _WRITE_BUFFER_CDB_MODE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WRITE_BUFFER_CDB_MODE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	and	x24, x8, x0
Lloh18:
	adrp	x8, _WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_GET_U24_FROM_CDB
	mov	x23, x0
	cmp	x24, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	x24, #130
	b.eq	LBB0_6
; %bb.4:
	cmp	x24, #129
	b.ne	LBB0_7
; %bb.5:
Lloh21:
	adrp	x8, _nvme_admin_download_fw@GOTPAGE
Lloh22:
	ldr	x8, [x8, _nvme_admin_download_fw@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	mov	x4, x23
	mov	x5, x22
	bl	_nvme_trans_send_fw_cmd
Lloh24:
	adrp	x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_6:
Lloh27:
	adrp	x8, _nvme_admin_activate_fw@GOTPAGE
Lloh28:
	ldr	x8, [x8, _nvme_admin_activate_fw@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh29:
	adrp	x8, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x8, _SCSI_ASC_INVALID_CDB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SCSI_ASC_INVALID_CDB@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
Lloh38:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh40:
	ldr	w4, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvme_trans_completion
LBB0_8:
Lloh41:
	adrp	x8, _nvme_admin_download_fw@GOTPAGE
Lloh42:
	ldr	x8, [x8, _nvme_admin_download_fw@GOTPAGEOFF]
LBB0_9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	mov	x4, x23
	mov	x5, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvme_trans_send_fw_cmd
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET,4,2 ; @WRITE_BUFFER_CDB_PARM_LIST_LENGTH_OFFSET
	.comm	_BYTES_TO_DWORDS,4,2            ; @BYTES_TO_DWORDS
	.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	_WRITE_BUFFER_CDB_BUFFER_ID_OFFSET,4,2 ; @WRITE_BUFFER_CDB_BUFFER_ID_OFFSET
	.comm	_NVME_MAX_FIRMWARE_SLOT,8,3     ; @NVME_MAX_FIRMWARE_SLOT
	.comm	_WRITE_BUFFER_CDB_MODE_OFFSET,4,2 ; @WRITE_BUFFER_CDB_MODE_OFFSET
	.comm	_WRITE_BUFFER_CDB_MODE_MASK,8,3 ; @WRITE_BUFFER_CDB_MODE_MASK
	.comm	_WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET,4,2 ; @WRITE_BUFFER_CDB_BUFFER_OFFSET_OFFSET
	.comm	_nvme_admin_download_fw,4,2     ; @nvme_admin_download_fw
	.comm	_nvme_admin_activate_fw,4,2     ; @nvme_admin_activate_fw
	.no_dead_strip	_nvme_trans_write_buffer
.subsections_via_symbols
