	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_update_cc                ## -- Begin function nvmet_update_cc
	.p2align	4, 0x90
_nvmet_update_cc:                       ## @nvmet_update_cc
	.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, %ebx
	movq	%rdi, %r15
	callq	_mutex_lock
	movl	8(%r15), %r14d
	movl	%ebx, 8(%r15)
	movl	%ebx, %edi
	callq	_nvmet_cc_en
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	callq	_nvmet_cc_en
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_nvmet_start_ctrl
LBB0_3:
	movl	%ebx, %edi
	callq	_nvmet_cc_en
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	%r14d, %edi
	callq	_nvmet_cc_en
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_nvmet_clear_ctrl
LBB0_6:
	movl	%ebx, %edi
	callq	_nvmet_cc_shn
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%r14d, %edi
	callq	_nvmet_cc_shn
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_nvmet_clear_ctrl
	movq	_NVME_CSTS_SHST_CMPLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_9:
	movl	%ebx, %edi
	callq	_nvmet_cc_shn
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movl	%r14d, %edi
	callq	_nvmet_cc_shn
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_NVME_CSTS_SHST_CMPLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r15)
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CSTS_SHST_CMPLT,4,2       ## @NVME_CSTS_SHST_CMPLT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_update_cc                ; -- Begin function nvmet_update_cc
	.p2align	2
_nvmet_update_cc:                       ; @nvmet_update_cc
	.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
	bl	_mutex_lock
	ldr	w20, [x19, #8]
	str	w21, [x19, #8]
	mov	x0, x21
	bl	_nvmet_cc_en
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_nvmet_cc_en
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_nvmet_start_ctrl
LBB0_3:
	mov	x0, x21
	bl	_nvmet_cc_en
	cbnz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_nvmet_cc_en
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_nvmet_clear_ctrl
LBB0_6:
	mov	x0, x21
	bl	_nvmet_cc_shn
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_nvmet_cc_shn
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_nvmet_clear_ctrl
Lloh0:
	adrp	x8, _NVME_CSTS_SHST_CMPLT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_CSTS_SHST_CMPLT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_9:
	mov	x0, x21
	bl	_nvmet_cc_shn
	cbnz	x0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_nvmet_cc_shn
	cbz	x0, LBB0_12
; %bb.11:
Lloh3:
	adrp	x8, _NVME_CSTS_SHST_CMPLT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_CSTS_SHST_CMPLT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_12:
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CSTS_SHST_CMPLT,4,2       ; @NVME_CSTS_SHST_CMPLT
.subsections_via_symbols
