	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_report_luns
_nvme_trans_report_luns:                ## @nvme_trans_report_luns
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	_REPORT_LUNS_FIRST_LUN_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rdx, %rdi
	callq	_GET_REPORT_LUNS_ALLOC_LENGTH
	movq	%rax, %r13
	movq	_REPORT_LUNS_SR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GET_U8_FROM_CDB
	movq	_ALL_LUNS_RETURNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_ALL_WELL_KNOWN_LUNS_RETURNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_RESTRICTED_LUNS_RETURNED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.16:
	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	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_trans_completion          ## TAILCALL
LBB0_3:
	movq	(%r12), %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_4
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_nvme_identify
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	%ebx, %r13d
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.7:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movq	_LUN_ENTRY_SIZE@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	movq	_LUN_DATA_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	%rax, %rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_9
## %bb.8:
	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	%r14, %rdi
	callq	_nvme_trans_completion
	movl	%eax, %r13d
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_9:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_le32_to_cpu
	testq	%rax, %rax
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_cpu_to_be64
	movl	%eax, -48(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %rdi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_LUN_ENTRY_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	incq	%rbx
	movl	(%r13), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_be32
	movl	%eax, -52(%rbp)
	leaq	-52(%rbp), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_nvme_trans_copy_to_user
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_14:
	movq	(%r12), %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_free_coherent
LBB0_15:
	movl	%r13d, %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	_REPORT_LUNS_FIRST_LUN_OFFSET,8,3 ## @REPORT_LUNS_FIRST_LUN_OFFSET
	.comm	_REPORT_LUNS_SR_OFFSET,4,2      ## @REPORT_LUNS_SR_OFFSET
	.comm	_ALL_LUNS_RETURNED,8,3          ## @ALL_LUNS_RETURNED
	.comm	_ALL_WELL_KNOWN_LUNS_RETURNED,8,3 ## @ALL_WELL_KNOWN_LUNS_RETURNED
	.comm	_RESTRICTED_LUNS_RETURNED,8,3   ## @RESTRICTED_LUNS_RETURNED
	.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
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LUN_ENTRY_SIZE,8,3             ## @LUN_ENTRY_SIZE
	.comm	_LUN_DATA_HEADER_SIZE,8,3       ## @LUN_DATA_HEADER_SIZE
	.no_dead_strip	_nvme_trans_report_luns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_report_luns
_nvme_trans_report_luns:                ; @nvme_trans_report_luns
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _REPORT_LUNS_FIRST_LUN_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REPORT_LUNS_FIRST_LUN_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x8]
	mov	x0, x2
	bl	_GET_REPORT_LUNS_ALLOC_LENGTH
	mov	x22, x0
Lloh3:
	adrp	x8, _REPORT_LUNS_SR_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPORT_LUNS_SR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GET_U8_FROM_CDB
Lloh6:
	adrp	x8, _ALL_LUNS_RETURNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ALL_LUNS_RETURNED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ALL_WELL_KNOWN_LUNS_RETURNED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ALL_WELL_KNOWN_LUNS_RETURNED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _RESTRICTED_LUNS_RETURNED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RESTRICTED_LUNS_RETURNED@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	ldr	x0, [x19]
Lloh15:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x2, sp, #12
	mov	w1, #4
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_nvme_identify
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_nvme_trans_status_code
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.3:
	mov	x24, x23
	cbnz	w23, LBB0_14
; %bb.4:
	ldr	w0, [x21]
	bl	_le32_to_cpu
Lloh17:
	adrp	x28, _LUN_ENTRY_SIZE@GOTPAGE
Lloh18:
	ldr	x28, [x28, _LUN_ENTRY_SIZE@GOTPAGEOFF]
	ldr	x8, [x28]
	mul	x25, x8, x0
Lloh19:
	adrp	x8, _LUN_DATA_HEADER_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LUN_DATA_HEADER_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x24, x25, x8
	cmp	x22, x24
	b.ge	LBB0_8
; %bb.5:
Lloh22:
	adrp	x8, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _SCSI_ASC_INVALID_CDB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SCSI_ASC_INVALID_CDB@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_nvme_trans_completion
	mov	x24, x0
	b	LBB0_14
LBB0_6:
Lloh34:
	adrp	x8, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _SCSI_ASC_INVALID_CDB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SCSI_ASC_INVALID_CDB@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	mov	x0, x20
	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
	b	_nvme_trans_completion
LBB0_7:
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_8:
	ldr	w1, [x26]
	mov	x0, x24
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.9:
	mov	x23, x0
	ldr	w0, [x21]
	bl	_le32_to_cpu
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x26, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_cpu_to_be64
	str	w0, [sp, #4]
	add	x0, x23, x27, lsl #3
	add	x1, sp, #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x28]
	add	x27, x8, x27
	add	x26, x26, #1
	ldr	w0, [x21]
	bl	_le32_to_cpu
	cmp	x26, x0
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x25
	bl	_cpu_to_be32
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #8
	bl	_memcpy
	mov	x0, x22
	mov	x1, x24
	bl	_min
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_nvme_trans_copy_to_user
	mov	x24, x0
	mov	x0, x23
	bl	_kfree
	b	LBB0_14
LBB0_13:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_14:
	ldr	x0, [x19]
	ldr	w3, [sp, #12]
	mov	w1, #4
	mov	x2, x21
	bl	_dma_free_coherent
LBB0_15:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_REPORT_LUNS_FIRST_LUN_OFFSET,8,3 ; @REPORT_LUNS_FIRST_LUN_OFFSET
	.comm	_REPORT_LUNS_SR_OFFSET,4,2      ; @REPORT_LUNS_SR_OFFSET
	.comm	_ALL_LUNS_RETURNED,8,3          ; @ALL_LUNS_RETURNED
	.comm	_ALL_WELL_KNOWN_LUNS_RETURNED,8,3 ; @ALL_WELL_KNOWN_LUNS_RETURNED
	.comm	_RESTRICTED_LUNS_RETURNED,8,3   ; @RESTRICTED_LUNS_RETURNED
	.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
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LUN_ENTRY_SIZE,8,3             ; @LUN_ENTRY_SIZE
	.comm	_LUN_DATA_HEADER_SIZE,8,3       ; @LUN_DATA_HEADER_SIZE
	.no_dead_strip	_nvme_trans_report_luns
.subsections_via_symbols
