	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_tree_diff_flush            ## -- Begin function log_tree_diff_flush
	.p2align	4, 0x90
_log_tree_diff_flush:                   ## @log_tree_diff_flush
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, 32(%rdi)
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_diffcore_std
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_diff_queue_is_empty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %r14d
	movq	_DIFF_FORMAT_NO_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_diff_flush
	movl	%r14d, (%r15)
	jmp	LBB0_15
LBB0_2:
	cmpq	$0, 56(%r14)
	je	LBB0_14
## %bb.3:
	cmpl	$0, 48(%r14)
	je	LBB0_4
LBB0_14:
	movq	%r15, %rdi
	callq	_diff_flush
	movl	$1, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_show_log
	movq	_DIFF_FORMAT_NO_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 8(%r14)
	je	LBB0_14
## %bb.5:
	cmpq	$0, 40(%r14)
	je	LBB0_14
## %bb.6:
	movq	(%r14), %rdi
	movq	_CMIT_FMT_ONELINE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_14
## %bb.7:
	callq	_commit_format_is_empty
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	_DIFF_FORMAT_DIFFSTAT@GOTPCREL(%rip), %rax
	movq	_DIFF_FORMAT_PATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	*%rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movl	12(%r14), %ecx
	movl	$1, %edx
	callq	_fwrite
LBB0_10:
	cmpq	$0, 32(%r14)
	jne	LBB0_13
## %bb.11:
	movl	(%r15), %eax
	notl	%eax
	testl	%eax, %ebx
	jne	LBB0_13
## %bb.12:
	movl	12(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_13:
	movl	12(%r14), %esi
	movl	$10, %edi
	callq	_putc
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DIFF_FORMAT_NO_OUTPUT,4,2      ## @DIFF_FORMAT_NO_OUTPUT
	.comm	_CMIT_FMT_ONELINE,8,3           ## @CMIT_FMT_ONELINE
	.comm	_DIFF_FORMAT_DIFFSTAT,4,2       ## @DIFF_FORMAT_DIFFSTAT
	.comm	_DIFF_FORMAT_PATCH,4,2          ## @DIFF_FORMAT_PATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"---"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_tree_diff_flush            ; -- Begin function log_tree_diff_flush
	.p2align	2
_log_tree_diff_flush:                   ; @log_tree_diff_flush
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	str	xzr, [x0, #32]
	add	x19, x0, #8
	mov	x0, x19
	bl	_diffcore_std
	bl	_diff_queue_is_empty
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19]
Lloh0:
	adrp	x8, _DIFF_FORMAT_NO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIFF_FORMAT_NO_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_diff_flush
	mov	w0, #0
	str	w20, [x19]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x20, #48]
	cbz	w8, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_diff_flush
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	bl	_show_log
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _DIFF_FORMAT_NO_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIFF_FORMAT_NO_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_4
; %bb.7:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.8:
	ldr	x0, [x20]
Lloh6:
	adrp	x8, _CMIT_FMT_ONELINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMIT_FMT_ONELINE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.9:
	bl	_commit_format_is_empty
	cbnz	w0, LBB0_4
; %bb.10:
Lloh9:
	adrp	x8, _DIFF_FORMAT_DIFFSTAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DIFF_FORMAT_DIFFSTAT@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _DIFF_FORMAT_PATCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIFF_FORMAT_PATCH@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w1, [x20, #16]
	mov	x0, x19
	blr	x8
	ldp	w1, w8, [x0]
	ldr	w3, [x20, #12]
	mov	x0, x8
	mov	w2, #1
	bl	_fwrite
LBB0_12:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_15
; %bb.13:
	orr	w8, w22, w21
	ldr	w9, [x19]
	bics	wzr, w8, w9
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x20, #12]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_15:
	ldr	w1, [x20, #12]
	mov	w0, #10
	bl	_putc
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DIFF_FORMAT_NO_OUTPUT,4,2      ; @DIFF_FORMAT_NO_OUTPUT
	.comm	_CMIT_FMT_ONELINE,8,3           ; @CMIT_FMT_ONELINE
	.comm	_DIFF_FORMAT_DIFFSTAT,4,2       ; @DIFF_FORMAT_DIFFSTAT
	.comm	_DIFF_FORMAT_PATCH,4,2          ; @DIFF_FORMAT_PATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"---"

.subsections_via_symbols
