	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_tree
_load_tree:                             ## @load_tree
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	addq	$8, %r12
	movl	$8, %edi
	callq	_new_tree_content
	movq	%rax, %r15
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	movq	%r12, %rdi
	callq	_find_object
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_MAX_PACK_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_7:
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_read_object_file
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	-52(%rbp), %eax
	movq	_OBJ_TREE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_die
	jmp	LBB0_10
LBB0_3:
	movq	8(%r14), %rax
	movq	_OBJ_TREE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_die
LBB0_5:
	movl	16(%r14), %eax
	movl	%eax, 24(%r15)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_gfi_unpack_entry
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_die
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, -48(%rbp)
	je	LBB0_17
## %bb.11:
	movq	%r14, %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r13), %rax
	movl	12(%rax), %ecx
	movl	%ecx, 4(%rax)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_to_atom
	movq	%rax, 8(%r13)
	movq	(%rax), %rax
	leaq	(%rax,%rbx), %r12
	addq	%rax, %rbx
	incq	%rbx
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_hashcpy
	movq	(%r13), %rax
	movl	8(%rax), %edi
	movq	%rbx, %rsi
	callq	_hashcpy
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	addq	%rax, %r12
	incq	%r12
	movq	-48(%rbp), %rax
	addq	%r14, %rax
	cmpq	%rax, %r12
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_new_tree_entry
	movq	%rax, %r13
	movq	(%r15), %rsi
	cmpq	8(%r15), %rsi
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_grow_tree_content
	movq	%rax, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 16(%rax)
	movq	(%r15), %rsi
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r15), %rax
	leaq	1(%rsi), %rcx
	movq	%rcx, (%r15)
	movq	%r13, (%rax,%rsi,8)
	movq	$0, 16(%r13)
	movq	(%r13), %rsi
	addq	$12, %rsi
	movq	%r12, %rdi
	callq	_get_mode
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_die
	jmp	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_free
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PACK_ID,8,3                ## @MAX_PACK_ID
	.comm	_OBJ_TREE,8,3                   ## @OBJ_TREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a tree: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Can't load tree %s"

L_.str.2:                               ## @.str.2
	.asciz	"Corrupt mode in %s"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.no_dead_strip	_load_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_tree
_load_tree:                             ; @load_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0]
	add	x20, x8, #8
	mov	w0, #8
	bl	_new_tree_content
	mov	x21, x0
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_is_null_oid
	cbnz	x0, LBB0_14
; %bb.1:
	mov	x0, x20
	bl	_find_object
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_PACK_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PACK_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_3:
	add	x1, sp, #4
	add	x2, sp, #8
	mov	x0, x20
	bl	_read_object_file
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #4]
Lloh3:
	adrp	x9, _OBJ_TREE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OBJ_TREE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_oid_to_hex
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_6:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_13
; %bb.7:
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh10:
	adrp	x26, _the_hash_algo@GOTPAGE
Lloh11:
	ldr	x26, [x26, _the_hash_algo@GOTPAGEOFF]
	mov	x25, x22
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	ldr	w9, [x8, #12]
	str	w9, [x8, #4]
	mov	x0, x25
	bl	_strlen
	mov	x1, x0
	mov	x0, x25
	bl	_to_atom
	str	x0, [x24, #8]
	ldr	x8, [x0]
	add	x8, x8, x25
	add	x25, x8, #1
	ldr	x8, [x24]
	ldr	w0, [x8]
	mov	x1, x25
	bl	_hashcpy
	ldr	x8, [x24]
	ldr	w0, [x8, #8]
	mov	x1, x25
	bl	_hashcpy
	ldr	x8, [x26]
	ldrsw	x8, [x8]
	add	x25, x25, x8
	ldr	x8, [sp, #8]
	add	x8, x22, x8
	cmp	x25, x8
	b.eq	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_new_tree_entry
	mov	x24, x0
	ldp	x1, x8, [x21]
	cmp	x1, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_grow_tree_content
	mov	x21, x0
	str	x0, [x19, #16]
	ldr	x1, [x0]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21, #16]
	add	x9, x1, #1
	str	x9, [x21]
	str	x24, [x8, x1, lsl #3]
	str	xzr, [x24, #16]
	ldr	x8, [x24]
	add	x1, x8, #12
	mov	x0, x25
	bl	_get_mode
	mov	x25, x0
	cbnz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x23
	bl	_die
	b	LBB0_8
LBB0_13:
	mov	x0, x22
	bl	_free
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	x8, [x22, #8]
Lloh12:
	adrp	x9, _OBJ_TREE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OBJ_TREE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_oid_to_hex
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_17:
	ldr	w8, [x22, #16]
	str	w8, [x21, #24]
	add	x1, sp, #8
	mov	x0, x22
	bl	_gfi_unpack_entry
	mov	x22, x0
	cbnz	x0, LBB0_6
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PACK_ID,8,3                ; @MAX_PACK_ID
	.comm	_OBJ_TREE,8,3                   ; @OBJ_TREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a tree: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Can't load tree %s"

l_.str.2:                               ; @.str.2
	.asciz	"Corrupt mode in %s"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.no_dead_strip	_load_tree
.subsections_via_symbols
