	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_execute_get_log_changed_ns
_nvmet_execute_get_log_changed_ns:      ## @nvmet_execute_get_log_changed_ns
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movslq	(%rdi), %rax
	movq	_NVME_MAX_CHANGED_NAMESPACES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$2, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %r13
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movslq	(%r13), %rax
	movq	_U32_MAX@GOTPCREL(%rip), %rcx
	movq	%rax, %rdx
	shlq	$2, %rdx
	cmpl	(%rcx), %eax
	movl	$4, %r12d
	cmovneq	%rdx, %r12
	movl	8(%r13), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_nvmet_copy_to_sgl
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %edx
	subl	%r12d, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvmet_zero_sgl
	movq	%rax, %rbx
LBB0_4:
	movl	$0, (%r13)
	movq	_NVME_AEN_BIT_NS_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvmet_clear_aen_bit
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_1:
	movq	_NVME_SC_INTERNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_req_complete             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_SC_INTERNAL,8,3           ## @NVME_SC_INTERNAL
	.comm	_NVME_MAX_CHANGED_NAMESPACES,4,2 ## @NVME_MAX_CHANGED_NAMESPACES
	.comm	_U32_MAX,4,2                    ## @U32_MAX
	.comm	_NVME_AEN_BIT_NS_ATTR,4,2       ## @NVME_AEN_BIT_NS_ATTR
	.no_dead_strip	_nvmet_execute_get_log_changed_ns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_execute_get_log_changed_ns
_nvmet_execute_get_log_changed_ns:      ; @nvmet_execute_get_log_changed_ns
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldrsw	x8, [x0]
Lloh0:
	adrp	x9, _NVME_MAX_CHANGED_NAMESPACES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_MAX_CHANGED_NAMESPACES@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsl #2
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x23, [x8]
	add	x20, x23, #4
	mov	x0, x20
	bl	_mutex_lock
	ldrsw	x8, [x23]
Lloh3:
	adrp	x9, _U32_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _U32_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	x10, x8, #2
	cmp	w8, w9
	mov	w8, #4
	csel	x22, x8, x10, eq
	ldr	w2, [x23, #8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	bl	_nvmet_copy_to_sgl
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	sub	w2, w8, w22
	mov	x0, x19
	mov	x1, x22
	bl	_nvmet_zero_sgl
	mov	x21, x0
LBB0_3:
	str	wzr, [x23]
Lloh6:
	adrp	x8, _NVME_AEN_BIT_NS_ATTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_AEN_BIT_NS_ATTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvmet_clear_aen_bit
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _NVME_SC_INTERNAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVME_SC_INTERNAL@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvmet_req_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_SC_INTERNAL,8,3           ; @NVME_SC_INTERNAL
	.comm	_NVME_MAX_CHANGED_NAMESPACES,4,2 ; @NVME_MAX_CHANGED_NAMESPACES
	.comm	_U32_MAX,4,2                    ; @U32_MAX
	.comm	_NVME_AEN_BIT_NS_ATTR,4,2       ; @NVME_AEN_BIT_NS_ATTR
	.no_dead_strip	_nvmet_execute_get_log_changed_ns
.subsections_via_symbols
