	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csr1212_release_keyval         ## -- Begin function csr1212_release_keyval
	.p2align	4, 0x90
_csr1212_release_keyval:                ## @csr1212_release_keyval
	.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
	movq	%rdi, %r13
	addq	$32, %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	%r13, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %r12
	movq	%r13, %r14
	movq	%r12, %r15
	testq	%r14, %r14
	jne	LBB0_3
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_free_keyval
	testq	%r14, %r14
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rbx
	cmpq	%r13, %r14
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	32(%rbx), %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	je	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rax
	movq	24(%rbx), %r14
	movq	_CSR1212_KV_TYPE_DIRECTORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 8(%r15)
	movq	%r15, (%rax)
	movq	(%rbx), %r15
	jmp	LBB0_8
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rdi
	leaq	-64(%rbp), %rax
	cmpq	%rax, %rdi
	sete	%al
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	testb	%al, %al
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_CSR1212_FREE
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%r12)
	movq	16(%r12), %r14
	testq	%r14, %r14
	jne	LBB0_3
	jmp	LBB0_9
LBB0_14:
	leaq	-64(%rbp), %rax
	cmpq	%rax, %r15
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_CSR1212_FREE
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_KV_TYPE_DIRECTORY,8,3  ## @CSR1212_KV_TYPE_DIRECTORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csr1212_release_keyval         ; -- Begin function csr1212_release_keyval
	.p2align	2
_csr1212_release_keyval:                ; @csr1212_release_keyval
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	add	x0, x0, #32
	bl	_atomic_dec_and_test
	cbz	w0, LBB0_16
; %bb.1:
	stp	xzr, x19, [sp, #16]
	add	x22, sp, #8
	mov	x25, x19
	str	xzr, [sp, #8]
	add	x20, sp, #8
	add	x23, sp, #8
Lloh0:
	adrp	x24, _CSR1212_KV_TYPE_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CSR1212_KV_TYPE_DIRECTORY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x23]
	ldr	x25, [x23, #16]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cbnz	x25, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	cmp	x0, x22
	cset	w8, eq
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w8, #0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_CSR1212_FREE
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_free_keyval
	cbz	x25, LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x21, x25
	cmp	x25, x19
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x0, x21, #32
	bl	_atomic_dec_and_test
	cbz	w0, LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	ldp	x8, x25, [x21, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	str	x8, [x20, #8]
	str	x20, [x8]
	ldr	x20, [x21]
	b	LBB0_8
LBB0_14:
	add	x8, sp, #8
	cmp	x20, x8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_CSR1212_FREE
LBB0_16:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_KV_TYPE_DIRECTORY,8,3  ; @CSR1212_KV_TYPE_DIRECTORY
.subsections_via_symbols
