	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvp_key_delete
_kvp_key_delete:                        ## @kvp_key_delete
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_KVP_LOG
	movl	%r14d, %edi
	callq	_kvp_update_mem_state
	movq	_kvp_pools@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%r13,8), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_2
LBB0_8:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_KVP_LOG
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_KVP_LOG
	leal	1(%r13), %eax
	cmpl	%r12d, %eax
	jge	LBB0_6
## %bb.4:
	decl	%r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14,%r13,8), %edi
	movl	12(%r14,%r13,8), %esi
	callq	_strcpy
	movl	(%r14,%r13,8), %edi
	movl	8(%r14,%r13,8), %esi
	callq	_strcpy
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_5
LBB0_6:
	movq	_kvp_pools@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	decl	(%rax,%rcx)
	movl	%r15d, %edi
	callq	_kvp_update_file
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kvp_key_delete: pool =  %d, key = %s\n"

	.comm	_kvp_pools,8,3                  ## @kvp_pools
L_.str.1:                               ## @.str.1
	.asciz	"Found delete key in pool %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Not found delete key in pool %d.\n"

	.no_dead_strip	_kvp_key_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvp_key_delete
_kvp_key_delete:                        ; @kvp_key_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LOG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	str	x1, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_KVP_LOG
	mov	x0, x19
	bl	_kvp_update_mem_state
Lloh4:
	adrp	x22, _kvp_pools@GOTPAGE
Lloh5:
	ldr	x22, [x22, _kvp_pools@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, w19, sxtw #4
	ldr	w26, [x8]
	cmp	w26, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x27, #0
	sxtw	x23, w19
	ldr	x8, [x8, #8]
	add	x24, x8, #8
	sub	w28, w26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x24, #-4]
	mov	x0, x21
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
	add	x24, x24, #8
	cmp	x26, x27
	b.ne	LBB0_2
LBB0_4:
	ldr	w0, [x25]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_KVP_LOG
	mov	w0, #1
	b	LBB0_9
LBB0_5:
	ldr	w0, [x25]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_KVP_LOG
	add	w8, w27, #1
	cmp	w8, w26
	b.ge	LBB0_8
; %bb.6:
	sub	x20, x28, x27
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x24, #-4]
	ldr	w1, [x24, #4]
	bl	_strcpy
	ldur	w0, [x24, #-8]
	ldr	w1, [x24], #8
	bl	_strcpy
	subs	x20, x20, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	x8, [x22]
	lsl	x9, x23, #4
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x19
	bl	_kvp_update_file
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kvp_key_delete: pool =  %d, key = %s\n"

	.comm	_kvp_pools,8,3                  ; @kvp_pools
l_.str.1:                               ; @.str.1
	.asciz	"Found delete key in pool %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Not found delete key in pool %d.\n"

	.no_dead_strip	_kvp_key_delete
.subsections_via_symbols
