	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flushbuffer
_flushbuffer:                           ## @flushbuffer
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %r14
	movq	8(%rbx), %rdi
	subq	%rdi, %r14
	je	LBB0_4
## %bb.2:
	movl	32(%rbx), %ecx
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_fwrite
	addq	%rax, 24(%rbx)
	cmpq	%r14, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, 16(%rbx)
LBB0_4:
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flushbuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flushbuffer
_flushbuffer:                           ; @flushbuffer
	.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	x19, x0
	ldp	x8, x0, [x0]
	ldr	w9, [x19, #16]
	cmp	w9, #0
	ccmp	x8, x0, #4, eq
	b.eq	LBB0_3
; %bb.1:
	sub	x20, x8, x0
	ldr	w3, [x19, #32]
	mov	w21, #1
	mov	w1, #1
	mov	x2, x20
	bl	_fwrite
	ldr	x8, [x19, #24]
	add	x8, x8, x0
	str	x8, [x19, #24]
	cmp	x0, x20
	b.eq	LBB0_3
; %bb.2:
	str	w21, [x19, #16]
LBB0_3:
	ldr	x8, [x19, #8]
	str	x8, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flushbuffer
.subsections_via_symbols
