	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_ext_inq_page
_nvme_trans_ext_inq_page:               ## @nvme_trans_ext_inq_page
	.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
	movl	%edx, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_EXTENDED_INQUIRY_DATA_PAGE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	(%r14), %rdi
	movl	(%r12), %ecx
	leaq	-48(%rbp), %rdx
	movl	$16, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movl	(%rbx), %esi
	movl	-48(%rbp), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_nvme_identify
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	%ebx, %r12d
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.6:
	movl	(%r13), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r13)
	setne	-44(%rbp)                       ## 1-byte Folded Spill
	movl	-48(%rbp), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_nvme_identify
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	%ebx, %r12d
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	andl	$7, %ecx
	leaq	l___const.nvme_trans_ext_inq_page.spt_lut(%rip), %rax
	movl	(%rax,%rcx,4), %eax
	shll	$3, %eax
	xorl	%r12d, %r12d
	movb	-44(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r12b
	leal	(,%r12,4), %ecx
	orl	%eax, %ecx
	leal	(%r12,%r12), %ebx
	orl	%ecx, %ebx
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EXTENDED_INQUIRY_DATA_PAGE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_INQ_EXTENDED_INQUIRY_DATA_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movabsq	$257698037760, %rax             ## imm = 0x3C00000000
	movq	%rax, 8(%r15)
	orl	%r12d, %ebx
	orl	$128, %ebx
	movl	%ebx, 16(%r15)
	movl	$32, 20(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r15)
	movq	$1, 28(%r15)
	movl	$0, 36(%r15)
	movq	_EXTENDED_INQUIRY_DATA_PAGE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_min
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_nvme_trans_copy_to_user
	movl	%eax, %r12d
LBB0_9:
	movq	(%r14), %rdi
	movl	-48(%rbp), %ecx
	movl	$16, %esi
	movq	%r13, %rdx
	callq	_dma_free_coherent
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
LBB0_11:
	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
	.section	__TEXT,__const
	.p2align	4                               ## @__const.nvme_trans_ext_inq_page.spt_lut
l___const.nvme_trans_ext_inq_page.spt_lut:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	7                               ## 0x7

	.comm	_EXTENDED_INQUIRY_DATA_PAGE_LENGTH,4,2 ## @EXTENDED_INQUIRY_DATA_PAGE_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INQ_EXTENDED_INQUIRY_DATA_PAGE,4,2 ## @INQ_EXTENDED_INQUIRY_DATA_PAGE
	.no_dead_strip	_nvme_trans_ext_inq_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nvme_trans_ext_inq_page
lCPI0_0:
	.long	0                               ; 0x0
	.long	60                              ; 0x3c
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nvme_trans_ext_inq_page:               ; @nvme_trans_ext_inq_page
	.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	x22, x2
	mov	x21, x1
	mov	x24, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x26, _EXTENDED_INQUIRY_DATA_PAGE_LENGTH@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EXTENDED_INQUIRY_DATA_PAGE_LENGTH@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x0, [x20]
	ldr	w3, [x23]
	add	x2, sp, #12
	mov	w1, #16
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_9
; %bb.2:
	mov	x23, x0
	ldr	w1, [x24]
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	w2, #0
	bl	_nvme_identify
	mov	x25, x0
	mov	x0, x21
	mov	x1, x25
	bl	_nvme_trans_status_code
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x24, x25
	cbnz	w25, LBB0_7
; %bb.4:
	ldr	w28, [x23]
	ldr	x8, [x23, #8]
	cmp	x8, #0
	cset	w27, ne
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_nvme_identify
	mov	x25, x0
	mov	x0, x21
	mov	x1, x25
	bl	_nvme_trans_status_code
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x24, x25
	cbnz	w25, LBB0_7
; %bb.6:
	and	x8, x28, #0x7
Lloh4:
	adrp	x9, l___const.nvme_trans_ext_inq_page.spt_lut@PAGE
Lloh5:
	add	x9, x9, l___const.nvme_trans_ext_inq_page.spt_lut@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	lsl	w24, w8, #3
	lsl	w25, w27, #2
	lsl	w28, w27, #1
	ldr	w8, [x23]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w2, [x26]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
Lloh6:
	adrp	x8, _INQ_EXTENDED_INQUIRY_DATA_PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INQ_EXTENDED_INQUIRY_DATA_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	orr	w8, w25, w24
	orr	w8, w8, w28
	orr	w8, w8, w27
	orr	w8, w8, #0x80
	mov	w9, #32
	stp	w8, w9, [x19, #16]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w8, [x19, #24]
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #28]
	str	wzr, [x19, #36]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_min
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_nvme_trans_copy_to_user
	mov	x24, x0
LBB0_7:
	ldr	x0, [x20]
	ldr	w3, [sp, #12]
	mov	w1, #16
	mov	x2, x23
	bl	_dma_free_coherent
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.section	__TEXT,__const
	.p2align	2                               ; @__const.nvme_trans_ext_inq_page.spt_lut
l___const.nvme_trans_ext_inq_page.spt_lut:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	7                               ; 0x7

	.comm	_EXTENDED_INQUIRY_DATA_PAGE_LENGTH,4,2 ; @EXTENDED_INQUIRY_DATA_PAGE_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INQ_EXTENDED_INQUIRY_DATA_PAGE,4,2 ; @INQ_EXTENDED_INQUIRY_DATA_PAGE
	.no_dead_strip	_nvme_trans_ext_inq_page
.subsections_via_symbols
