	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_buff                     ## -- Begin function flush_buff
	.p2align	4, 0x90
_flush_buff:                            ## @flush_buff
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_result_buff_pos@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_wptr@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	_buff@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	subq	%rsi, %rdx
	leaq	(%rdx,%rdi), %rax
	movq	_result_buff_len@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_realloc_buff
	movq	(%r14), %rdi
	movq	(%r15), %rdx
	movq	(%r12), %rsi
	subq	%rsi, %rdx
	leaq	(%rdx,%rdi), %rax
	cmpq	(%rbx), %rax
	jg	LBB0_1
LBB0_3:
	movq	_result_buff@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_memcpy
	movq	(%r15), %rax
	movq	(%r12), %rcx
	subq	%rcx, %rax
	addq	%rax, (%r14)
	movq	%rcx, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_result_buff_pos,8,3            ## @result_buff_pos
	.comm	_wptr,8,3                       ## @wptr
	.comm	_buff,8,3                       ## @buff
	.comm	_result_buff_len,8,3            ## @result_buff_len
	.comm	_result_buff,8,3                ## @result_buff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_buff                     ; -- Begin function flush_buff
	.p2align	2
_flush_buff:                            ; @flush_buff
	.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
Lloh0:
	adrp	x19, _result_buff_pos@GOTPAGE
Lloh1:
	ldr	x19, [x19, _result_buff_pos@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _wptr@GOTPAGE
Lloh3:
	ldr	x20, [x20, _wptr@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh4:
	adrp	x21, _buff@GOTPAGE
Lloh5:
	ldr	x21, [x21, _buff@GOTPAGEOFF]
	ldr	x1, [x21]
	sub	x2, x9, x1
	add	x9, x2, x8
Lloh6:
	adrp	x22, _result_buff_len@GOTPAGE
Lloh7:
	ldr	x22, [x22, _result_buff_len@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	cmp	x9, x10
	b.le	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_realloc_buff
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x1, [x21]
	sub	x2, x9, x1
	add	x9, x2, x8
	b	LBB0_1
LBB0_3:
Lloh8:
	adrp	x9, _result_buff@GOTPAGE
Lloh9:
	ldr	x9, [x9, _result_buff@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	x10, [x19]
	sub	x8, x8, x9
	add	x8, x8, x10
	str	x8, [x19]
	str	x9, [x20]
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_result_buff_pos,8,3            ; @result_buff_pos
	.comm	_wptr,8,3                       ; @wptr
	.comm	_buff,8,3                       ; @buff
	.comm	_result_buff_len,8,3            ; @result_buff_len
	.comm	_result_buff,8,3                ; @result_buff
.subsections_via_symbols
