	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csr1212_detach_keyval_from_directory ## -- Begin function csr1212_detach_keyval_from_directory
	.p2align	4, 0x90
_csr1212_detach_keyval_from_directory:  ## @csr1212_detach_keyval_from_directory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_CSR1212_KV_TYPE_DIRECTORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_csr1212_find_keyval
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	8(%rax), %rdx
	movq	%rdx, 8(%rcx)
LBB0_6:
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	%rcx, (%rdx)
LBB0_8:
	cmpq	%rax, 8(%rbx)
	je	LBB0_9
## %bb.10:
	cmpq	%rax, (%rbx)
	je	LBB0_11
LBB0_12:
	movq	%rax, %rdi
	callq	_CSR1212_FREE
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_csr1212_release_keyval         ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%rdx, 8(%rbx)
	cmpq	%rax, (%rbx)
	jne	LBB0_12
LBB0_11:
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_12
	.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_detach_keyval_from_directory ; -- Begin function csr1212_detach_keyval_from_directory
	.p2align	2
_csr1212_detach_keyval_from_directory:  ; @csr1212_detach_keyval_from_directory
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_13
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _CSR1212_KV_TYPE_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSR1212_KV_TYPE_DIRECTORY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_csr1212_find_keyval
	cbz	x0, LBB0_13
; %bb.4:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x9, [x0, #8]
	str	x9, [x8, #8]
LBB0_6:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_8
; %bb.7:
	str	x8, [x9]
LBB0_8:
	ldr	x8, [x20, #8]
	cmp	x8, x0
	b.ne	LBB0_10
; %bb.9:
	str	x9, [x20, #8]
LBB0_10:
	ldr	x8, [x20]
	cmp	x8, x0
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x0]
	str	x8, [x20]
LBB0_12:
	bl	_CSR1212_FREE
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_csr1212_release_keyval
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_KV_TYPE_DIRECTORY,8,3  ; @CSR1212_KV_TYPE_DIRECTORY
.subsections_via_symbols
