	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_mode_page_create
_nvme_trans_mode_page_create:           ## @nvme_trans_mode_page_create
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_GET_MODE_SENSE_DBD
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_GET_MODE_SENSE_LLBAA
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_GET_MODE_SENSE_MPH_SIZE
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_nvme_trans_get_blk_desc_len
	movq	%rax, %r15
	movslq	%ebx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	leaq	(%rcx,%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leal	(%r13,%r13,2), %eax
	cltq
	addq	16(%rbp), %rax
	leaq	(%r15,%rax), %r8
	addq	$3, %r8
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%r15, %r9
	callq	_nvme_trans_fill_mode_parm_hdr
	movl	%eax, %ebx
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.3:
	testq	%r15, %r15
	jle	LBB0_5
## %bb.4:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%r12d, %r8d
	callq	_nvme_trans_fill_blk_desc
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jne	LBB0_7
LBB0_5:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	*-96(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.6:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_nvme_trans_copy_to_user
	movl	%eax, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$56, %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	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvme_trans_mode_page_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_mode_page_create
_nvme_trans_mode_page_create:           ; @nvme_trans_mode_page_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x6
	stp	x5, x1, [sp, #16]               ; 16-byte Folded Spill
	mov	x27, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x0
	mov	x0, x2
	bl	_GET_MODE_SENSE_DBD
	mov	x24, x0
	mov	x0, x20
	bl	_GET_MODE_SENSE_LLBAA
	mov	x26, x0
	mov	x0, x27
	bl	_GET_MODE_SENSE_MPH_SIZE
	mov	x20, x0
	mov	x0, x24
	mov	x1, x26
	bl	_nvme_trans_get_blk_desc_len
	mov	x28, x0
	sxtw	x20, w20
	add	x21, x0, x20
	add	x25, x21, x22
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x24, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	w8, w27, w27, lsl #1
	add	w8, w8, #3
	add	x8, x22, w8, sxtw
	add	x4, x8, x28
	mov	x1, x20
	mov	x2, x27
	mov	x3, x26
	mov	x5, x28
	bl	_nvme_trans_fill_mode_parm_hdr
	mov	x27, x0
Lloh3:
	adrp	x19, _SNTI_TRANSLATION_SUCCESS@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SNTI_TRANSLATION_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.2:
	cmp	x28, #1
	b.lt	LBB0_4
; %bb.3:
	add	x2, x24, x20, lsl #2
	mov	x0, x23
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x3, x28
	mov	x4, x26
	bl	_nvme_trans_fill_blk_desc
	mov	x27, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_4:
	add	x2, x24, x21, lsl #2
	mov	x0, x23
	ldp	x8, x1, [sp, #16]               ; 16-byte Folded Reload
	mov	x3, x22
	blr	x8
	mov	x27, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x25
	bl	_min
	mov	x2, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_nvme_trans_copy_to_user
	mov	x27, x0
LBB0_6:
	mov	x0, x24
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_8:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvme_trans_mode_page_create
.subsections_via_symbols
