	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_one
_read_one:                              ## @read_one
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r12
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	(%rsi), %r14
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	$0, -64(%rbp)
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r12,%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_2
	jmp	LBB0_4
LBB0_5:
	leaq	(%r12,%r13), %r15
	incq	%r15
	movq	%r15, -48(%rbp)
	movq	%r14, %rax
	subq	%r13, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	decq	%rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	callq	_cache_tree
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	-80(%rbp), %rbx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r15
	je	LBB0_4
## %bb.6:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	-80(%rbp), %rbx
	je	LBB0_4
## %bb.7:
	leaq	-1(%r14), %rax
	cmpq	%r13, %rax
	je	LBB0_13
## %bb.8:
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	addq	%r12, %rdx
	addq	%r13, %rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%r12,%r13), %ecx
	testb	%cl, %cl
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, %cl
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	cmpq	%r13, %rax
	jne	LBB0_9
## %bb.12:
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
LBB0_13:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
LBB0_4:
	leaq	-64(%rbp), %rdi
	callq	_cache_tree_free
	xorl	%ebx, %ebx
LBB0_26:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	(%r12,%r13), %r15
	addq	$2, %r15
	movq	%r15, -48(%rbp)
	movq	%r14, %rax
	subq	%r13, %rax
	addq	$-2, %rax
	movq	%rax, -56(%rbp)
	cmpq	$0, (%rbx)
	js	LBB0_17
## %bb.15:
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	jb	LBB0_4
## %bb.16:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	addq	$20, %rdi
	movq	%r15, %rsi
	callq	_oidread
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r12
	leaq	(%r12,%r13), %r15
	addq	$2, %r15
	movq	%r15, -48(%rbp)
	subq	%rax, %r14
	subq	%r13, %r14
	addq	$-2, %r14
	movq	%r14, -56(%rbp)
LBB0_17:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leal	2(%r14), %edi
	movl	%edi, 8(%rbx)
	movl	$8, %esi
	callq	_xcalloc
	movl	%eax, 16(%rbx)
	testl	%r14d, %r14d
	jle	LBB0_23
## %bb.18:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_read_one
	testq	%rax, %rax
	je	LBB0_4
## %bb.19:
	movq	%rax, %r14
	leaq	-48(%rbp), %r12
	leaq	-56(%rbp), %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_cache_tree_sub
	movq	%r14, (%rax)
	decl	%ebx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_read_one
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_4
LBB0_22:
	movq	-64(%rbp), %rbx
LBB0_23:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, 12(%rbx)
	je	LBB0_25
## %bb.24:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_25:
	movq	-48(%rbp), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache-tree: internal error"

	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_read_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_one
_read_one:                              ; @read_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x27, [x0]
	ldr	x25, [x1]
Lloh0:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	stp	x8, xzr, [sp, #8]               ; 8-byte Folded Spill
	cbz	x25, LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x28, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x27, x28]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x28, x28, #1
	cmp	x25, x28
	b.ne	LBB0_2
	b	LBB0_11
LBB0_4:
	add	x21, x27, x28
	add	x23, x21, #1
	sub	x26, x25, x28
	sub	x8, x26, #1
	stp	x8, x23, [sp, #32]
	bl	_cache_tree
	mov	x22, x0
	str	x0, [sp, #16]
	add	x1, sp, #24
	mov	x0, x23
	mov	w2, #10
	bl	_strtol
	str	x0, [x22]
	ldr	x24, [sp, #24]
	cmp	x23, x24
	b.eq	LBB0_11
; %bb.5:
	add	x1, sp, #24
	mov	x0, x24
	mov	w2, #10
	bl	_strtol
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [sp, #24]
	cmp	x24, x8
	b.eq	LBB0_11
; %bb.6:
	sub	x8, x25, #1
	cmp	x8, x28
	b.eq	LBB0_10
; %bb.7:
	add	x23, x21, x26
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x27, x28
	ldrb	w10, [x9, #1]
	cmp	w10, #0
	ccmp	w10, #10, #4, ne
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	cmp	x8, x28
	b.ne	LBB0_8
LBB0_10:
	stp	xzr, x23, [sp, #32]
LBB0_11:
	add	x0, sp, #16
	bl	_cache_tree_free
	mov	x22, #0
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	add	x23, x9, #2
	sub	x8, x25, x28
	sub	x8, x8, #2
	stp	x8, x23, [sp, #32]
	ldr	x9, [x22]
	tbnz	x9, #63, LBB0_16
; %bb.14:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	b.lo	LBB0_11
; %bb.15:
	add	x0, x22, #20
	mov	x1, x23
	bl	_oidread
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x9, x27
	add	x8, x8, x28
	add	x23, x8, #2
	sub	x8, x25, x9
	sub	x8, x8, x28
	sub	x8, x8, #2
	stp	x8, x23, [sp, #32]
LBB0_16:
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	add	w0, w21, #2
	str	w0, [x22, #8]
	mov	w1, #8
	bl	_xcalloc
	str	w0, [x22, #16]
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.17:
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_read_one
	cbz	x0, LBB0_11
; %bb.18:
	mov	x22, x0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	mov	x21, x8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x23
	bl	_cache_tree_sub
	str	x22, [x0]
	subs	w21, w21, #1
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x23, [sp, #40]
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_read_one
	mov	x22, x0
	cbnz	x0, LBB0_19
	b	LBB0_11
LBB0_21:
	ldr	x22, [sp, #16]
LBB0_22:
	ldr	w8, [x22, #12]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.23:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_24:
	ldr	x8, [sp, #40]
	str	x8, [x20]
	ldr	x8, [sp, #32]
	str	x8, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache-tree: internal error"

	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_read_one
.subsections_via_symbols
