	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fflush                         ## -- Begin function fflush
	.p2align	4, 0x90
_fflush:                                ## @fflush
	.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
	movq	___FILE_BUFINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rdi), %rax
	testl	%ecx, (%rdi)
	je	LBB0_6
## %bb.1:
	subl	32(%rbx), %eax
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_lseek
LBB0_3:
	movq	$0, 8(%rbx)
	movq	$0, 32(%rbx)
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	testq	%rax, %rax
	jle	LBB0_4
## %bb.7:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	movq	%rax, %rdx
	callq	_write
	cmpq	8(%rbx), %rax
	jne	LBB0_10
## %bb.8:
	movq	16(%rbx), %rdi
	movq	__IO_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movl	$13, %edx
	xorl	%edi, %edi
	callq	_write
	movq	___FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movl	$-1, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	___FILE_BUFINPUT,4,2            ## @__FILE_BUFINPUT
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nerror file \n"

	.comm	___FILE_ERROR,4,2               ## @__FILE_ERROR
	.comm	__IO_BUFSIZE,4,2                ## @_IO_BUFSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fflush                         ; -- Begin function fflush
	.p2align	2
_fflush:                                ; @fflush
	.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	w8, [x0]
Lloh0:
	adrp	x9, ___FILE_BUFINPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___FILE_BUFINPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x2, [x0, #8]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x19, #32]
	subs	w1, w2, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lseek
LBB0_3:
	mov	w0, #0
	str	xzr, [x19, #8]
	str	xzr, [x19, #32]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	x2, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #16]
	bl	_write
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, __IO_BUFSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, __IO_BUFSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_8:
	mov	w0, #0
	b	LBB0_4
LBB0_9:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	w2, #13
	bl	_write
Lloh11:
	adrp	x8, ___FILE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___FILE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #-1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	___FILE_BUFINPUT,4,2            ; @__FILE_BUFINPUT
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nerror file \n"

	.comm	___FILE_ERROR,4,2               ; @__FILE_ERROR
	.comm	__IO_BUFSIZE,4,2                ; @_IO_BUFSIZE
.subsections_via_symbols
