	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csr1212_parse_dir_entry
_csr1212_parse_dir_entry:               ## @csr1212_parse_dir_entry
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_CSR1212_KV_KEY_TYPE
	movq	%rbx, %rdi
	cmpl	$129, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.2:
	callq	_CSR1212_KV_KEY_ID
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_CSR1212_KV_VAL
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_csr1212_new_immediate
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_7:
	callq	_CSR1212_KV_KEY_ID
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_CSR1212_KV_VAL
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_csr1212_new_csr_offset
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%rax, %r15
LBB0_17:
	xorl	%edx, %edx
	jmp	LBB0_18
LBB0_8:
	callq	_CSR1212_KV_VAL
	movl	%eax, %edi
	callq	_quads_to_bytes
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	addq	%r15, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_csr1212_find_keyval_offset
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %r15
	movl	$1, %edx
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	___csr1212_attach_keyval_to_directory
	movl	%eax, %ebx
	movq	_CSR1212_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_free_keyval
	jmp	LBB0_20
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	%rbx, %rdi
	callq	_CSR1212_KV_KEY_TYPE
	movl	%eax, %r15d
	movq	_CSR1212_KV_TYPE_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_CSR1212_KV_KEY_ID
	movl	%eax, %edi
	cmpl	%r13d, %r15d
	jne	LBB0_14
## %bb.13:
	callq	_csr1212_new_directory
	jmp	LBB0_15
LBB0_14:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_csr1212_new_leaf
LBB0_15:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.16:
	movl	$0, 24(%r15)
	movq	%r12, 16(%r15)
	movq	%r14, 8(%r15)
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	(%r14), %rax
	movq	%r15, 8(%rax)
	movq	%r15, (%r14)
	jmp	LBB0_17
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR1212_SUCCESS,4,2            ## @CSR1212_SUCCESS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CSR1212_KV_TYPE_DIRECTORY,4,2  ## @CSR1212_KV_TYPE_DIRECTORY
	.no_dead_strip	_csr1212_parse_dir_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csr1212_parse_dir_entry
_csr1212_parse_dir_entry:               ; @csr1212_parse_dir_entry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_CSR1212_KV_KEY_TYPE
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_CSR1212_KV_KEY_ID
	mov	x20, x0
	mov	x0, x21
	bl	_CSR1212_KV_VAL
	mov	x1, x0
	mov	x0, x20
	bl	_csr1212_new_immediate
	cbnz	x0, LBB0_4
	b	LBB0_15
LBB0_3:
	mov	x0, x21
	bl	_CSR1212_KV_KEY_ID
	mov	x20, x0
	mov	x0, x21
	bl	_CSR1212_KV_VAL
	mov	x1, x0
	mov	x0, x20
	bl	_csr1212_new_csr_offset
	cbz	x0, LBB0_15
LBB0_4:
	mov	x20, x0
	mov	w2, #0
	b	LBB0_12
LBB0_5:
	mov	x0, x21
	bl	_CSR1212_KV_VAL
	bl	_quads_to_bytes
	cbz	x0, LBB0_8
; %bb.6:
	add	x22, x0, x20
	mov	x0, x19
	mov	x1, x22
	bl	_csr1212_find_keyval_offset
	cbz	x0, LBB0_9
; %bb.7:
	mov	x20, x0
	mov	w2, #1
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	mov	x0, x21
	bl	_CSR1212_KV_KEY_TYPE
	mov	x20, x0
Lloh2:
	adrp	x8, _CSR1212_KV_TYPE_DIRECTORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR1212_KV_TYPE_DIRECTORY@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_CSR1212_KV_KEY_ID
	cmp	w20, w23
	b.ne	LBB0_14
; %bb.10:
	bl	_csr1212_new_directory
	mov	x20, x0
	cbz	x0, LBB0_15
LBB0_11:
	mov	w2, #0
	str	wzr, [x20, #24]
	str	x22, [x20, #16]
	ldr	x8, [x19]
	stp	x8, x19, [x20]
	ldr	x8, [x19]
	str	x20, [x8, #8]
	str	x20, [x19]
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	___csr1212_attach_keyval_to_directory
	mov	x19, x0
Lloh5:
	adrp	x8, _CSR1212_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSR1212_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.13:
	mov	x0, x20
	bl	_free_keyval
	b	LBB0_17
LBB0_14:
	mov	x1, #0
	mov	w2, #0
	bl	_csr1212_new_leaf
	mov	x20, x0
	cbnz	x0, LBB0_11
LBB0_15:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_17:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR1212_SUCCESS,4,2            ; @CSR1212_SUCCESS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CSR1212_KV_TYPE_DIRECTORY,4,2  ; @CSR1212_KV_TYPE_DIRECTORY
	.no_dead_strip	_csr1212_parse_dir_entry
.subsections_via_symbols
