	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_buffer
_flush_buffer:                          ## @flush_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	callq	_FFMAX
	movq	%rax, (%rbx)
	cmpq	$0, 40(%rbx)
	movq	16(%rbx), %rsi
	je	LBB0_1
## %bb.2:
	subq	%rsi, %rax
	jle	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_writeout
	movq	56(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movl	48(%rbx), %edi
	movq	(%rbx), %rdx
	movq	24(%rbx), %rsi
	subq	%rsi, %rdx
	callq	*%rcx
	movl	%eax, 48(%rbx)
	movq	16(%rbx), %rsi
	movq	%rsi, 24(%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	%rsi, (%rbx)
	movq	%rsi, 8(%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	16(%rbx), %rsi
LBB0_6:
	movq	%rsi, (%rbx)
	movq	%rsi, 8(%rbx)
	cmpq	$0, 40(%rbx)
	jne	LBB0_8
LBB0_7:
	movq	%rsi, 32(%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flush_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_buffer
_flush_buffer:                          ; @flush_buffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x19]
	bl	_FFMAX
	str	x0, [x19]
	ldr	x8, [x19, #40]
	ldr	x1, [x19, #16]
	cbz	x8, LBB0_4
; %bb.1:
	subs	x2, x0, x1
	b.le	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_writeout
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x19, #48]
	ldr	x1, [x19, #24]
	ldr	x9, [x19]
	sub	x2, x9, x1
	blr	x8
	str	w0, [x19, #48]
	ldr	x1, [x19, #16]
	str	x1, [x19, #24]
	b	LBB0_6
LBB0_4:
	stp	x1, x1, [x19]
	b	LBB0_7
LBB0_5:
	ldr	x1, [x19, #16]
LBB0_6:
	ldr	x8, [x19, #40]
	stp	x1, x1, [x19]
	cbnz	x8, LBB0_8
LBB0_7:
	str	x1, [x19, #32]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flush_buffer
.subsections_via_symbols
