	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_modesel_data
_nvme_trans_modesel_data:               ## @nvme_trans_modesel_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_nvme_trans_copy_from_user
	movl	%eax, %r12d
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_13
## %bb.3:
	movl	16(%rbp), %ebx
	leaq	-72(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_nvme_trans_modesel_get_bd_len
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.5:
	movq	_MODE_SELECT_6_MPH_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_4:
	movq	_MODE_SELECT_10_MPH_SIZE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rbx
	movq	-72(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_nvme_trans_modesel_save_bd
	addq	-72(%rbp), %rbx
LBB0_8:
	movq	_MODE_SELECT_PAGE_CODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MODE_PAGE_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MODE_PAGE_CONTROL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_MODE_PAGE_POWER_CONDITION@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	%rbx, %rdi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	4(%r13,%rdi,4), %rsi
	addq	%rsi, %rdi
	addq	$2, %rdi
	cmpq	%r15, %rdi
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rdi,4), %esi
	andl	%ecx, %esi
	cmpl	%eax, %esi
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%edx, %esi
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r8d, %esi
	je	LBB0_15
## %bb.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	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvme_trans_completion
	movl	%eax, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_MODE_SELECT_PAGE_CODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %rdx
	addq	%r13, %rdx
	andl	(%r13,%rbx,4), %ecx
	movl	4(%r13,%rbx,4), %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nvme_trans_modesel_get_mp
	movl	%eax, %r12d
	movq	_SNTI_TRANSLATION_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %rbx
	addq	$2, %rbx
	cmpq	%r15, %rbx
	jl	LBB0_18
LBB0_13:
	movq	%r13, %rdi
	callq	_kfree
LBB0_14:
	movl	%r12d, %eax
	addq	$40, %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
	.comm	_MODE_SELECT_10_MPH_SIZE,8,3    ## @MODE_SELECT_10_MPH_SIZE
	.comm	_MODE_SELECT_6_MPH_SIZE,8,3     ## @MODE_SELECT_6_MPH_SIZE
	.comm	_MODE_SELECT_PAGE_CODE_MASK,4,2 ## @MODE_SELECT_PAGE_CODE_MASK
	.comm	_MODE_PAGE_CACHING,4,2          ## @MODE_PAGE_CACHING
	.comm	_MODE_PAGE_CONTROL,4,2          ## @MODE_PAGE_CONTROL
	.comm	_MODE_PAGE_POWER_CONDITION,4,2  ## @MODE_PAGE_POWER_CONDITION
	.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
	.no_dead_strip	_nvme_trans_modesel_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_modesel_data
_nvme_trans_modesel_data:               ; @nvme_trans_modesel_data
	.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	x23, x6
	mov	x21, x3
	mov	x20, x1
	mov	x22, x0
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x3
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_nvme_trans_copy_from_user
	mov	x24, x0
Lloh3:
	adrp	x25, _SNTI_TRANSLATION_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SNTI_TRANSLATION_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.2:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	mov	x1, x23
	bl	_nvme_trans_modesel_get_bd_len
Lloh5:
	adrp	x8, _MODE_SELECT_10_MPH_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_SELECT_10_MPH_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MODE_SELECT_6_MPH_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODE_SELECT_6_MPH_SIZE@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x9, x8, eq
	ldr	x23, [x8]
	ldr	x3, [sp, #8]
	cbz	x3, LBB0_4
; %bb.3:
	ldr	w4, [sp, #4]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	bl	_nvme_trans_modesel_save_bd
	ldr	x8, [sp, #8]
	add	x23, x8, x23
LBB0_4:
Lloh9:
	adrp	x26, _MODE_SELECT_PAGE_CODE_MASK@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MODE_SELECT_PAGE_CODE_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh11:
	adrp	x9, _MODE_PAGE_CACHING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MODE_PAGE_CACHING@GOTPAGEOFF]
Lloh13:
	adrp	x10, _MODE_PAGE_CONTROL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MODE_PAGE_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _MODE_PAGE_POWER_CONDITION@GOTPAGE
Lloh18:
	ldr	x11, [x11, _MODE_PAGE_POWER_CONDITION@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	mov	x12, x23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x19, x12, lsl #2]
	and	w13, w8, w13
	cmp	w13, w9
	ccmp	w13, w10, #4, ne
	ccmp	w13, w11, #4, ne
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x19, x12, lsl #2
	ldrsw	x13, [x13, #4]
	add	x12, x13, x12
	add	x12, x12, #2
	cmp	x12, x21
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x19, x23, lsl #2
	ldp	w9, w27, [x2]
	and	w3, w8, w9
	mov	x0, x22
	mov	x1, x20
	bl	_nvme_trans_modesel_get_mp
	mov	x24, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w27, #2
	add	x23, x23, w8, sxtw
	cmp	x23, x21
	b.lt	LBB0_7
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x8, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _SCSI_ASC_INVALID_CDB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SCSI_ASC_INVALID_CDB@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh34:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_nvme_trans_completion
	mov	x24, x0
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x24
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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
	.comm	_MODE_SELECT_10_MPH_SIZE,8,3    ; @MODE_SELECT_10_MPH_SIZE
	.comm	_MODE_SELECT_6_MPH_SIZE,8,3     ; @MODE_SELECT_6_MPH_SIZE
	.comm	_MODE_SELECT_PAGE_CODE_MASK,4,2 ; @MODE_SELECT_PAGE_CODE_MASK
	.comm	_MODE_PAGE_CACHING,4,2          ; @MODE_PAGE_CACHING
	.comm	_MODE_PAGE_CONTROL,4,2          ; @MODE_PAGE_CONTROL
	.comm	_MODE_PAGE_POWER_CONDITION,4,2  ; @MODE_PAGE_POWER_CONDITION
	.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
	.no_dead_strip	_nvme_trans_modesel_data
.subsections_via_symbols
