	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_subsys_attr_allow_any_host_store
_nvmet_subsys_attr_allow_any_host_store: ## @nvmet_subsys_attr_allow_any_host_store
	.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	%rdx, %r15
	movq	%rsi, %rbx
	callq	_to_subsys
	movq	%rax, %r14
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtobool
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_2:
	movq	_nvmet_config_sem@GOTPCREL(%rip), %rdi
	callq	_down_write
	cmpl	$0, -28(%rbp)
	je	LBB0_3
## %bb.4:
	leaq	4(%r14), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	-28(%rbp), %eax
	cmpl	%eax, (%r14)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	cmpl	%eax, (%r14)
	je	LBB0_8
LBB0_7:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nvmet_subsys_disc_changed
LBB0_8:
	movq	_nvmet_config_sem@GOTPCREL(%rip), %rdi
	callq	_up_write
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_nvmet_config_sem@GOTPCREL(%rip), %rdi
	callq	_up_write
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	negl	%ebx
	movq	%rbx, %r15
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvmet_config_sem,4,2           ## @nvmet_config_sem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't set allow_any_host when explicit hosts are set!\n"

	.no_dead_strip	_nvmet_subsys_attr_allow_any_host_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_subsys_attr_allow_any_host_store
_nvmet_subsys_attr_allow_any_host_store: ; @nvmet_subsys_attr_allow_any_host_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_to_subsys
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x21
	bl	_strtobool
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x0, _nvmet_config_sem@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nvmet_config_sem@GOTPAGEOFF]
	bl	_down_write
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.3:
	add	x0, x20, #4
	bl	_list_empty
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
LBB0_5:
	ldr	w9, [x20]
	cmp	w9, w8
	b.eq	LBB0_7
; %bb.6:
	str	w8, [x20]
	mov	x0, x20
	mov	x1, #0
	bl	_nvmet_subsys_disc_changed
LBB0_7:
Lloh5:
	adrp	x0, _nvmet_config_sem@GOTPAGE
Lloh6:
	ldr	x0, [x0, _nvmet_config_sem@GOTPAGEOFF]
	bl	_up_write
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x0, _nvmet_config_sem@GOTPAGE
Lloh13:
	ldr	x0, [x0, _nvmet_config_sem@GOTPAGEOFF]
	bl	_up_write
	cbz	w20, LBB0_8
; %bb.10:
	neg	w19, w20
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvmet_config_sem,4,2           ; @nvmet_config_sem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't set allow_any_host when explicit hosts are set!\n"

	.no_dead_strip	_nvmet_subsys_attr_allow_any_host_store
.subsections_via_symbols
