	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_read_capacity
_nvme_trans_read_capacity:              ## @nvme_trans_read_capacity
	.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	$24, %rsp
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_READ_CAP_10_RESP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%rdi), %r15
	movq	%rdx, %rdi
	callq	_IS_READ_CAP_16
	movl	%r13d, %ecx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_GET_READ_CAP_16_ALLOC_LENGTH
	movl	%eax, %ecx
	movq	_READ_CAP_16_RESP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movl	(%r14), %esi
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nvme_identify
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	%r14d, %ebx
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_nvme_trans_fill_read_cap
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_min
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_nvme_trans_copy_to_user
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	(%r15), %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	%r12, %rdx
	callq	_dma_free_coherent
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %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	_READ_CAP_10_RESP_SIZE,4,2      ## @READ_CAP_10_RESP_SIZE
	.comm	_READ_CAP_16_RESP_SIZE,4,2      ## @READ_CAP_16_RESP_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvme_trans_read_capacity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_read_capacity
_nvme_trans_read_capacity:              ; @nvme_trans_read_capacity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x20, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _READ_CAP_10_RESP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_CAP_10_RESP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x19, [x0, #8]
	mov	x0, x2
	bl	_IS_READ_CAP_16
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_GET_READ_CAP_16_ALLOC_LENGTH
	mov	x24, x0
Lloh3:
	adrp	x8, _READ_CAP_16_RESP_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _READ_CAP_16_RESP_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_3
LBB0_2:
	mov	x24, x22
LBB0_3:
	ldr	x0, [x19]
Lloh6:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x2, sp, #12
	mov	w1, #4
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	w1, [x25]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_nvme_identify
	mov	x26, x0
	mov	x0, x20
	mov	x1, x26
	bl	_nvme_trans_status_code
	mov	x25, x0
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x25, x26
	cbnz	w26, LBB0_10
; %bb.6:
	ldr	w1, [x27]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.7:
	mov	x26, x0
	mov	x1, x21
	mov	x2, x23
	bl	_nvme_trans_fill_read_cap
	mov	x0, x24
	mov	x1, x22
	bl	_min
	mov	x2, x0
	mov	x0, x20
	mov	x1, x26
	bl	_nvme_trans_copy_to_user
	mov	x25, x0
	mov	x0, x26
	bl	_kfree
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_10:
	ldr	x0, [x19]
	ldr	w3, [sp, #12]
	mov	w1, #4
	mov	x2, x21
	bl	_dma_free_coherent
LBB0_11:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_READ_CAP_10_RESP_SIZE,4,2      ; @READ_CAP_10_RESP_SIZE
	.comm	_READ_CAP_16_RESP_SIZE,4,2      ; @READ_CAP_16_RESP_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvme_trans_read_capacity
.subsections_via_symbols
