	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_unmap
_nvme_trans_unmap:                      ## @nvme_trans_unmap
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	_UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_GET_U16_FROM_CDB
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_nvme_trans_copy_from_user
	movl	%eax, %r12d
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
## %bb.6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %edi
	callq	_be16_to_cpu
	cmpl	$16, %eax
	jb	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	cmpl	$4112, %eax                     ## imm = 0x1010
	jge	LBB0_8
## %bb.9:
	movl	%r14d, %ecx
	sarl	$4, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,8), %eax
	leal	(%rax,%rax,2), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	%ebx, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	cmpl	$16, %r14d
	jl	LBB0_13
## %bb.11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	movl	$1, %r14d
	cmovgel	%eax, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	$16, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	movq	(%r15), %rax
	movl	(%rax,%rbx,8), %edi
	callq	_be64_to_cpu
	movl	%eax, %edi
	callq	_cpu_to_le64
	movq	%rax, -8(%r12)
	movq	$0, -16(%r12)
	incq	%rbx
	addq	$24, %r12
	cmpq	%rbx, %r14
	jne	LBB0_12
LBB0_13:
	leaq	-120(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_nvme_cmd_dsm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, -96(%rbp)
	movl	-44(%rbp), %edi
	callq	_cpu_to_le64
	movq	%rax, -104(%rbp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	decl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, -112(%rbp)
	movq	_NVME_DSMGMT_AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -120(%rbp)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_get_nvmeq
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_put_nvmeq
	movq	_NVME_IO_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_nvme_submit_sync_cmd
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %r12d
	movq	(%r14), %rdi
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_free_coherent
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
LBB0_15:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET,4,2 ## @UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ## @SNTI_TRANSLATION_SUCCESS
	.comm	_nvme_cmd_dsm,4,2               ## @nvme_cmd_dsm
	.comm	_NVME_DSMGMT_AD,4,2             ## @NVME_DSMGMT_AD
	.comm	_NVME_IO_TIMEOUT,4,2            ## @NVME_IO_TIMEOUT
	.no_dead_strip	_nvme_trans_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_unmap
_nvme_trans_unmap:                      ; @nvme_trans_unmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_GET_U16_FROM_CDB
	cbz	w0, LBB0_5
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_nvme_trans_copy_from_user
	mov	x25, x0
Lloh5:
	adrp	x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNTI_TRANSLATION_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_be16_to_cpu
	cmp	w0, #16
	mov	w8, #4112
	ccmp	w0, w8, #0, hs
	b.lt	LBB0_8
; %bb.4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_13
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_14
LBB0_8:
	mov	x26, x0
	asr	w27, w0, #4
	ldr	x0, [x20]
	add	w8, w27, w27, lsl #1
	lsl	w22, w8, #3
	ldr	w3, [x24]
	add	x2, sp, #4
	mov	x1, x22
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_13
; %bb.9:
	mov	x24, x0
	cmp	w26, #16
	b.lt	LBB0_12
; %bb.10:
	mov	x25, #0
	cmp	w27, #1
	csinc	w8, w27, wzr, gt
	add	x26, x24, #16
	lsl	x28, x8, #3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x25
	ldr	w0, [x8, #4]
	bl	_be32_to_cpu
	bl	_cpu_to_le32
	str	x0, [x26]
	ldr	x8, [x19]
	ldr	w0, [x8, x25]
	bl	_be64_to_cpu
	bl	_cpu_to_le64
	stp	xzr, x0, [x26, #-16]
	add	x25, x25, #8
	add	x26, x26, #24
	cmp	x28, x25
	b.ne	LBB0_11
LBB0_12:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh15:
	adrp	x8, _nvme_cmd_dsm@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nvme_cmd_dsm@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	w0, [x23]
	bl	_cpu_to_le32
	str	x0, [sp, #32]
	ldr	w0, [sp, #4]
	bl	_cpu_to_le64
	str	x0, [sp, #24]
	sub	w0, w27, #1
	bl	_cpu_to_le32
	str	x0, [sp, #16]
Lloh18:
	adrp	x8, _NVME_DSMGMT_AD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NVME_DSMGMT_AD@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	mov	x0, x20
	bl	_get_nvmeq
	mov	x23, x0
	bl	_put_nvmeq
Lloh21:
	adrp	x8, _NVME_IO_TIMEOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NVME_IO_TIMEOUT@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x23
	mov	x2, #0
	bl	_nvme_submit_sync_cmd
	mov	x1, x0
	mov	x0, x21
	bl	_nvme_trans_status_code
	mov	x25, x0
	ldr	x0, [x20]
	ldr	w3, [sp, #4]
	mov	x1, x22
	mov	x2, x24
	bl	_dma_free_coherent
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET,4,2 ; @UNMAP_CDB_PARAM_LIST_LENGTH_OFFSET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_nvme_cmd_dsm,4,2               ; @nvme_cmd_dsm
	.comm	_NVME_DSMGMT_AD,4,2             ; @NVME_DSMGMT_AD
	.comm	_NVME_IO_TIMEOUT,4,2            ; @NVME_IO_TIMEOUT
	.no_dead_strip	_nvme_trans_unmap
.subsections_via_symbols
