	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function nvme_trans_device_id_page
LCPI0_0:
	.long	20                              ## 0x14
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_nvme_trans_device_id_page:             ## @nvme_trans_device_id_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	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_cpu_to_be32
	movl	%eax, -60(%rbp)
	movq	16(%r14), %rdi
	addq	$4, %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_1
## %bb.2:
	movq	%rax, %r13
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_nvme_identify
	movl	%eax, %r15d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	%r15d, %r12d
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.4:
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	%ecx, %esi
	shll	$4, %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	sarl	$4, %ecx
	movl	%edx, %esi
	shll	$4, %esi
	orl	%ecx, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	sarl	$4, %edx
	movl	8(%rax), %r12d
	movl	%r12d, %r15d
	shll	$4, %r15d
	orl	%edx, %r15d
	sarl	$4, %r12d
	movq	_STANDARD_INQUIRY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_INQ_DEVICE_IDENTIFICATION_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [20,1,3,0]
	movups	%xmm0, 12(%rbx)
	movl	$16, 28(%rbx)
	orl	$96, %r12d
	movl	%r12d, 32(%rbx)
	movl	%r15d, 36(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 40(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 44(%rbx)
	movq	16(%r14), %rax
	movzbl	1(%rax), %ecx
	movl	%ecx, 48(%rbx)
	movzbl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 56(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 64(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 68(%rbx)
	leaq	72(%rbx), %rdi
	leaq	-60(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_STANDARD_INQUIRY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_min
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_nvme_trans_copy_to_user
	movl	%eax, %r12d
LBB0_5:
	movq	16(%r14), %rdi
	addq	$4, %rdi
	movl	-44(%rbp), %ecx
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_dma_free_coherent
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_6:
	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	_STANDARD_INQUIRY_LENGTH,4,2    ## @STANDARD_INQUIRY_LENGTH
	.comm	_INQ_DEVICE_IDENTIFICATION_PAGE,4,2 ## @INQ_DEVICE_IDENTIFICATION_PAGE
	.no_dead_strip	_nvme_trans_device_id_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function nvme_trans_device_id_page
lCPI0_0:
	.long	20                              ; 0x14
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nvme_trans_device_id_page:             ; @nvme_trans_device_id_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
	bl	_cpu_to_be32
	str	w0, [sp, #8]
	ldr	x8, [x19, #16]
	add	x0, x8, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	w1, #4
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	w3, [sp, #12]
	mov	x0, x19
	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_4
; %bb.2:
	mov	x24, x25
	cbnz	w25, LBB0_4
; %bb.3:
	ldr	x8, [x23]
	ldr	w9, [x8]
	lsl	w24, w9, #4
Lloh3:
	adrp	x25, _STANDARD_INQUIRY_LENGTH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _STANDARD_INQUIRY_LENGTH@GOTPAGEOFF]
	ldr	w2, [x25]
	ldur	d0, [x8, #4]
	mov.s	w8, v0[1]
	shl.2s	v1, v0, #4
	mov.s	v0[1], w9
	sshr.2s	v0, v0, #4
	rev64.2s	v1, v1
	orr.8b	v8, v1, v0
	asr	w26, w8, #4
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh5:
	adrp	x8, _INQ_DEVICE_IDENTIFICATION_PAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INQ_DEVICE_IDENTIFICATION_PAGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x20, #12]
	mov	w8, #16
	orr	w9, w26, #0x60
	stp	w8, w9, [x20, #28]
	stur	d8, [x20, #36]
	str	w24, [x20, #44]
	ldr	x8, [x19, #16]
	ldrb	w9, [x8, #1]
	str	w9, [x20, #48]
	ldrb	w8, [x8]
	str	w8, [x20, #52]
	ldp	x8, x9, [x19]
	ldr	w10, [x8]
	str	w10, [x20, #56]
	ldr	w8, [x8, #4]
	str	w8, [x20, #60]
	ldr	w8, [x9]
	str	w8, [x20, #64]
	ldr	w8, [x9, #4]
	str	w8, [x20, #68]
	add	x0, x20, #72
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x25]
	mov	x0, x22
	bl	_min
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_nvme_trans_copy_to_user
	mov	x24, x0
LBB0_4:
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	ldr	w3, [sp, #12]
	mov	w1, #4
	mov	x2, x23
	bl	_dma_free_coherent
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_6:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_STANDARD_INQUIRY_LENGTH,4,2    ; @STANDARD_INQUIRY_LENGTH
	.comm	_INQ_DEVICE_IDENTIFICATION_PAGE,4,2 ; @INQ_DEVICE_IDENTIFICATION_PAGE
	.no_dead_strip	_nvme_trans_device_id_page
.subsections_via_symbols
