	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_add_to_changed_ns_log
_nvmet_add_to_changed_ns_log:           ## @nvmet_add_to_changed_ns_log
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_NVME_MAX_CHANGED_NAMESPACES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_8
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdx,%rsi,8)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_4
LBB0_5:
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.6:
	movl	$-1, %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	_U32_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_8
LBB0_7:
	movq	8(%r15), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r15)
	movq	%rbx, (%rcx,%rax,8)
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_MAX_CHANGED_NAMESPACES,8,3 ## @NVME_MAX_CHANGED_NAMESPACES
	.comm	_U32_MAX,8,3                    ## @U32_MAX
	.no_dead_strip	_nvmet_add_to_changed_ns_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_add_to_changed_ns_log
_nvmet_add_to_changed_ns_log:           ; @nvmet_add_to_changed_ns_log
	.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	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NVME_MAX_CHANGED_NAMESPACES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_MAX_CHANGED_NAMESPACES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_8
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x10, [x20, #8]
	mov	x11, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x21
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x11, x11, #1
	b.ne	LBB0_3
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #-1
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	x0, [x8]
Lloh3:
	adrp	x8, _U32_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _U32_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_8
LBB0_7:
	ldr	x9, [x20, #8]
	add	x10, x8, #1
	str	x10, [x20]
	str	x21, [x9, x8, lsl #3]
LBB0_8:
	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_MAX_CHANGED_NAMESPACES,8,3 ; @NVME_MAX_CHANGED_NAMESPACES
	.comm	_U32_MAX,8,3                    ; @U32_MAX
	.no_dead_strip	_nvmet_add_to_changed_ns_log
.subsections_via_symbols
