	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_tree_gently              ## -- Begin function parse_tree_gently
	.p2align	4, 0x90
_parse_tree_gently:                     ## @parse_tree_gently
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	jne	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_read_object_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movl	-20(%rbp), %ecx
	movq	_OBJ_TREE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.7:
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_parse_tree_buffer
	jmp	LBB0_8
LBB0_2:
	movl	$-1, %eax
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	movq	%rax, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_oid_to_hex
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	%eax, %esi
	callq	_error
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read %s"

	.comm	_OBJ_TREE,4,2                   ## @OBJ_TREE
L_.str.1:                               ## @.str.1
	.asciz	"Object %s not a tree"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_tree_gently              ; -- Begin function parse_tree_gently
	.p2align	2
_parse_tree_gently:                     ; @parse_tree_gently
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #12
	mov	x2, sp
	bl	_read_object_file
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _OBJ_TREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_TREE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	ldr	x2, [sp]
	mov	x0, x19
	bl	_parse_tree_buffer
	b	LBB0_2
LBB0_6:
	cbz	w20, LBB0_9
; %bb.7:
	mov	w0, #-1
	b	LBB0_2
LBB0_8:
	mov	x0, x1
	bl	_free
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_2
LBB0_9:
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read %s"

	.comm	_OBJ_TREE,4,2                   ; @OBJ_TREE
l_.str.1:                               ; @.str.1
	.asciz	"Object %s not a tree"

.subsections_via_symbols
