	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_fill_read_cap
_nvme_trans_fill_read_cap:              ## @nvme_trans_fill_read_cap
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %eax
	andl	$15, %eax
	movq	16(%rsi), %rcx
	movb	(%rcx,%rax,4), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	leaq	8(%rsi), %rdi
	callq	_le64_to_cpup
	decl	%eax
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r15)
	setne	%r12b
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, -44(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movl	%eax, -36(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	32(%r14), %rdi
	leaq	-36(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	4(%r15), %eax
	andl	$3, %eax
	leaq	L___const.nvme_trans_fill_read_cap.p_type_lut(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	leal	(%r12,%rax,2), %eax
	movl	%eax, 48(%r14)
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %edi
	callq	_cpu_to_be32
	movl	%eax, -40(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	addq	$16, %r14
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.nvme_trans_fill_read_cap.p_type_lut
L___const.nvme_trans_fill_read_cap.p_type_lut:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2

	.no_dead_strip	_nvme_trans_fill_read_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_fill_read_cap
_nvme_trans_fill_read_cap:              ; @nvme_trans_fill_read_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	and	x8, x8, #0xf
	ldr	x9, [x1, #16]
	ldr	w8, [x9, x8, lsl #2]
	mov	w9, #1
	lsl	w21, w9, w8
	add	x0, x1, #8
	bl	_le64_to_cpup
	sub	w0, w0, #1
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w22, ne
	bl	_cpu_to_be64
	str	w0, [sp, #12]
	mov	x0, x21
	bl	_cpu_to_be32
	str	w0, [sp, #4]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #32
	add	x1, sp, #4
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20, #4]
	and	x8, x8, #0x3
Lloh0:
	adrp	x9, l___const.nvme_trans_fill_read_cap.p_type_lut@PAGE
Lloh1:
	add	x9, x9, l___const.nvme_trans_fill_read_cap.p_type_lut@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	bfi	w22, w8, #1, #31
	str	w22, [x19, #48]
	b	LBB0_3
LBB0_2:
	bl	_cpu_to_be32
	str	w0, [sp, #8]
	mov	x0, x21
	bl	_cpu_to_be32
	str	w0, [sp, #4]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #16
	add	x1, sp, #4
	mov	w2, #4
	bl	_memcpy
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.nvme_trans_fill_read_cap.p_type_lut
l___const.nvme_trans_fill_read_cap.p_type_lut:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2

	.no_dead_strip	_nvme_trans_fill_read_cap
.subsections_via_symbols
