	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_change_ctrl_state         ## -- Begin function nvme_change_ctrl_state
	.p2align	4, 0x90
_nvme_change_ctrl_state:                ## @nvme_change_ctrl_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leal	-128(%r15), %ecx
	cmpl	$5, %ecx
	ja	LBB0_12
## %bb.1:
	movl	(%rbx), %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	addl	$-129, %eax
	cmpl	$2, %eax
	jb	LBB0_9
	jmp	LBB0_12
LBB0_2:
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_12
## %bb.3:
	movl	$35, %ecx
	jmp	LBB0_4
LBB0_6:
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_12
## %bb.7:
	movl	$37, %ecx
LBB0_4:
	btl	%eax, %ecx
	jae	LBB0_12
LBB0_9:
	movl	%r15d, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_wake_up_all
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %r14d
	cmpl	$130, (%rbx)
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_nvme_kick_requeue_lists
	jmp	LBB0_13
LBB0_8:
	cmpl	$131, %eax
	je	LBB0_9
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r14d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_9
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvme_change_ctrl_state         ; -- Begin function nvme_change_ctrl_state
	.p2align	2
_nvme_change_ctrl_state:                ; @nvme_change_ctrl_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	sub	w9, w21, #128
	cmp	w9, #5
	b.hi	LBB0_10
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	sub	w8, w8, #129
	cmp	w8, #2
	b.lo	LBB0_6
	b	LBB0_10
LBB0_3:
	sub	w8, w8, #128
	cmp	w8, #5
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #35
	b	LBB0_5
LBB0_4:
	sub	w8, w8, #128
	cmp	w8, #5
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #37
LBB0_5:
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_10
LBB0_6:
	str	w21, [x19]
	add	x0, x19, #8
	bl	_wake_up_all
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19]
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_nvme_kick_requeue_lists
LBB0_8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
	cmp	w8, #131
	b.eq	LBB0_6
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_6
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
.subsections_via_symbols
