	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_op_setgetdel
_kvp_op_setgetdel:                      ## @kvp_op_setgetdel
	.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
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movl	4(%r15), %eax
	movq	_HV_S_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
	movl	(%rbx), %ecx
	xorl	%r14d, %r14d
	cmpl	$130, %ecx
	je	LBB0_8
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_13
## %bb.3:
	movq	_HV_KVP_POOL_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movq	_HV_KVP_POOL_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %edx
	callq	_KVP_LOG
	movl	$1, %eax
	jmp	LBB0_12
LBB0_7:
	movl	28(%r15), %esi
	movl	24(%r15), %edx
	movl	16(%r15), %r8d
	movl	20(%r15), %ecx
	movl	%eax, %edi
	callq	_kvp_get_value
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movl	44(%r15), %esi
	movl	40(%r15), %edx
	movl	32(%r15), %r8d
	movl	36(%r15), %ecx
	movl	%eax, %edi
	callq	_kvp_key_add_or_modify
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movl	%eax, %edi
	callq	_kvp_key_delete
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:
	movq	_HV_S_CONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
	movl	%eax, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HV_S_OK,4,2                    ## @HV_S_OK
	.comm	_HV_KVP_POOL_AUTO,4,2           ## @HV_KVP_POOL_AUTO
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ilegal to write to pool %d from host\n"

L_.str.1:                               ## @.str.1
	.asciz	"Ilegal to change pool %d from host\n"

	.comm	_HV_S_CONT,4,2                  ## @HV_S_CONT
	.no_dead_strip	_kvp_op_setgetdel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_op_setgetdel
_kvp_op_setgetdel:                      ; @kvp_op_setgetdel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _HV_S_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HV_S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x19]
	ldr	w9, [x20]
	cmp	w9, #130
	b.eq	LBB0_5
; %bb.1:
	cmp	w9, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w9, #128
	b.ne	LBB0_9
; %bb.3:
Lloh3:
	adrp	x9, _HV_KVP_POOL_AUTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HV_KVP_POOL_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x9, _HV_KVP_POOL_AUTO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HV_KVP_POOL_AUTO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
Lloh13:
	adrp	x9, _LOG_ERR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LOG_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	mov	x2, x8
	bl	_KVP_LOG
	mov	w0, #1
	b	LBB0_11
LBB0_8:
	ldp	w2, w1, [x19, #24]
	ldp	w4, w3, [x19, #16]
	mov	x0, x8
	bl	_kvp_get_value
	cbnz	w0, LBB0_11
	b	LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	ldp	w2, w1, [x19, #8]
	mov	x0, x8
	bl	_kvp_key_delete
	cbz	w0, LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _HV_S_CONT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HV_S_CONT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldp	w2, w1, [x19, #40]
	ldp	w4, w3, [x19, #32]
	mov	x0, x8
	bl	_kvp_key_add_or_modify
	cbnz	w0, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HV_S_OK,4,2                    ; @HV_S_OK
	.comm	_HV_KVP_POOL_AUTO,4,2           ; @HV_KVP_POOL_AUTO
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ilegal to write to pool %d from host\n"

l_.str.1:                               ; @.str.1
	.asciz	"Ilegal to change pool %d from host\n"

	.comm	_HV_S_CONT,4,2                  ; @HV_S_CONT
	.no_dead_strip	_kvp_op_setgetdel
.subsections_via_symbols
