	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_trans_power_state
_nvme_trans_power_state:                ## @nvme_trans_power_state
	.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	%r8d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-60(%rbp), %rdx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_nvme_identify
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.2:
	movl	%r13d, %r12d
	testl	%r13d, %r13d
	jne	LBB0_27
## %bb.3:
	addl	$-128, %r15d
	cmpl	$4, %r15d
	ja	LBB0_16
## %bb.4:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	decl	%esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	xorl	$1, %eax
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, %eax
	jne	LBB0_7
## %bb.6:
	movq	_POWER_STATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	orl	%ecx, %edi
	cmovel	%esi, %edx
	jmp	LBB0_25
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	je	LBB0_21
## %bb.10:
	cmpl	$1, %eax
	je	LBB0_22
## %bb.11:
	xorl	%edx, %edx
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_26
## %bb.12:
	movq	_POWER_STATE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$-2, %esi
	callq	_min
	movl	%eax, %edx
	jmp	LBB0_26
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$1, %eax
	je	LBB0_20
## %bb.14:
	xorl	%edx, %edx
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_26
## %bb.15:
	addl	$-3, %esi
	xorl	%edi, %edi
	callq	_max
	movl	%eax, %edx
	jmp	LBB0_26
LBB0_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	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_nvme_trans_completion
	xorl	%edx, %edx
	jmp	LBB0_26
LBB0_17:
	xorl	%edx, %edx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.18:
	movq	_POWER_STATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_25
LBB0_20:
	addl	$-2, %esi
	xorl	%edi, %edi
	callq	_max
	jmp	LBB0_24
LBB0_21:
	movq	_POWER_STATE_3@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_POWER_STATE_2@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %edi
	addl	$-2, %esi
	callq	_min
LBB0_24:
	movl	%eax, %edx
LBB0_25:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_26:
	movq	_NVME_FEAT_POWER_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nvme_set_features
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_nvme_trans_status_code
	testl	%eax, %eax
	movl	%eax, %r12d
	cmovel	%r15d, %r12d
	testl	%r15d, %r15d
	cmovel	%eax, %r12d
LBB0_27:
	movq	(%r14), %rdi
	movl	-60(%rbp), %ecx
	movl	$4, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_free_coherent
LBB0_28:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_9
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ## @SNTI_TRANSLATION_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_POWER_STATE_0,4,2              ## @POWER_STATE_0
	.comm	_POWER_STATE_1,4,2              ## @POWER_STATE_1
	.comm	_POWER_STATE_2,4,2              ## @POWER_STATE_2
	.comm	_POWER_STATE_3,4,2              ## @POWER_STATE_3
	.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	_NVME_FEAT_POWER_MGMT,4,2       ## @NVME_FEAT_POWER_MGMT
	.no_dead_strip	_nvme_trans_power_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_trans_power_state
_nvme_trans_power_state:                ; @nvme_trans_power_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x0, [x19]
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_6
; %bb.1:
	mov	x20, x0
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_nvme_identify
	mov	x26, x0
	mov	x0, x21
	mov	x1, x26
	bl	_nvme_trans_status_code
	mov	x25, x0
	cbnz	w0, LBB0_24
; %bb.2:
	mov	x25, x26
	cbnz	w26, LBB0_24
; %bb.3:
	sub	w9, w24, #128
	cmp	w9, #4
	b.hi	LBB0_14
; %bb.4:
	ldr	w8, [x20]
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	sub	w8, w8, #1
	cmp	w23, #1
Lloh5:
	adrp	x9, _POWER_STATE_0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _POWER_STATE_0@GOTPAGEOFF]
	ccmp	w22, #0, #0, eq
Lloh7:
	ldr	w9, [x9]
	csel	w9, w9, wzr, eq
	orr	w10, w23, w22
	cmp	w10, #0
	csel	w2, w8, w9, eq
	b	LBB0_23
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_25
LBB0_7:
	cmp	w22, #2
	b.eq	LBB0_19
; %bb.8:
	cmp	w22, #1
	b.eq	LBB0_20
; %bb.9:
	cbnz	w22, LBB0_15
; %bb.10:
Lloh11:
	adrp	x9, _POWER_STATE_1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _POWER_STATE_1@GOTPAGEOFF]
	b	LBB0_21
LBB0_11:
	cmp	w22, #1
	b.eq	LBB0_17
; %bb.12:
	cbnz	w22, LBB0_15
; %bb.13:
	sub	w1, w8, #3
	b	LBB0_18
LBB0_14:
Lloh13:
	adrp	x8, _SAM_STAT_CHECK_CONDITION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SAM_STAT_CHECK_CONDITION@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _SCSI_ASC_INVALID_CDB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SCSI_ASC_INVALID_CDB@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SCSI_ASCQ_CAUSE_NOT_REPORTABLE@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x0, x21
	bl	_nvme_trans_completion
LBB0_15:
	mov	w2, #0
	b	LBB0_23
LBB0_16:
Lloh25:
	adrp	x8, _POWER_STATE_0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _POWER_STATE_0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w2, w8, wzr, eq
	b	LBB0_23
LBB0_17:
	sub	w1, w8, #2
LBB0_18:
	mov	w0, #0
	bl	_max
	b	LBB0_22
LBB0_19:
Lloh28:
	adrp	x9, _POWER_STATE_3@GOTPAGE
Lloh29:
	ldr	x9, [x9, _POWER_STATE_3@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh30:
	adrp	x9, _POWER_STATE_2@GOTPAGE
Lloh31:
	ldr	x9, [x9, _POWER_STATE_2@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x9]
	sub	w1, w8, #2
	bl	_min
LBB0_22:
	mov	x2, x0
LBB0_23:
Lloh32:
	adrp	x8, _NVME_FEAT_POWER_MGMT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NVME_FEAT_POWER_MGMT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, #0
	bl	_nvme_set_features
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_nvme_trans_status_code
	cmp	w0, #0
	ccmp	w22, #0, #4, eq
	csel	w25, w22, w0, ne
LBB0_24:
	ldr	x0, [x19]
	ldr	w3, [sp, #12]
	mov	w1, #4
	mov	x2, x20
	bl	_dma_free_coherent
LBB0_25:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
                                        ; -- End function
	.comm	_SNTI_TRANSLATION_SUCCESS,4,2   ; @SNTI_TRANSLATION_SUCCESS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_POWER_STATE_0,4,2              ; @POWER_STATE_0
	.comm	_POWER_STATE_1,4,2              ; @POWER_STATE_1
	.comm	_POWER_STATE_2,4,2              ; @POWER_STATE_2
	.comm	_POWER_STATE_3,4,2              ; @POWER_STATE_3
	.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	_NVME_FEAT_POWER_MGMT,4,2       ; @NVME_FEAT_POWER_MGMT
	.no_dead_strip	_nvme_trans_power_state
.subsections_via_symbols
