	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_tree_commit                ## -- Begin function log_tree_commit
	.p2align	4, 0x90
_log_tree_commit:                       ## @log_tree_commit
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %r15d
	movq	%rsi, -32(%rbp)
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, 16(%rdi)
	movl	$0, 8(%rdi)
	cmpq	$0, 56(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_line_log_print
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_2:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.3:
	cmpl	$0, 32(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 24(%rbx)
	jne	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_6:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_log_tree_diff
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	cmpq	$0, 40(%rbx)
	je	LBB0_14
## %bb.11:
	cmpl	$0, 32(%rbx)
	jne	LBB0_14
## %bb.12:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movl	12(%rbx), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_14:
	movq	$0, 16(%rbx)
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_maybe_flush_or_die
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.15:
	movl	12(%rbx), %edi
	callq	_fclose
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.9:
	movq	$0, -40(%rbp)
	movq	%rbx, %rdi
	callq	_show_log
	movl	$1, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"stdout"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_tree_commit                ; -- Begin function log_tree_commit
	.p2align	2
_log_tree_commit:                       ; @log_tree_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0, #8]
	stp	xzr, x1, [sp]
	mov	x8, sp
	str	x8, [x0, #16]
	str	wzr, [x0, #8]
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_line_log_print
	mov	x20, x0
	b	LBB0_17
LBB0_2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
	ldr	x2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_6:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_log_tree_diff
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.9:
	str	xzr, [sp]
	mov	x0, x19
	bl	_show_log
	mov	w20, #1
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_15
; %bb.13:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w0, [x19, #12]
	ldr	x2, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_15:
	str	xzr, [x19, #16]
	ldr	w0, [x19, #12]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_maybe_flush_or_die
	cbz	w21, LBB0_17
; %bb.16:
	ldr	w0, [x19, #12]
	bl	_fclose
LBB0_17:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"stdout"

.subsections_via_symbols
