	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flushentry                     ## -- Begin function flushentry
	.p2align	4, 0x90
_flushentry:                            ## @flushentry
	.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	_flushtries@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_sblock@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rbx
	je	LBB0_4
## %bb.1:
	movq	_cgbufs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	leaq	1(%rbx), %rdx
	movq	%rdx, (%rcx)
	shlq	$4, %rbx
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_4
## %bb.3:
	leaq	(%r14,%rbx), %rsi
	movq	_fswritefd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush
	movq	(%r14,%rbx), %rdi
	callq	_free
	movq	$0, (%r14,%rbx)
	movl	$1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flushtries,8,3                 ## @flushtries
	.comm	_sblock,8,3                     ## @sblock
	.comm	_cgbufs,8,3                     ## @cgbufs
	.comm	_fswritefd,4,2                  ## @fswritefd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flushentry                     ; -- Begin function flushentry
	.p2align	2
_flushentry:                            ; @flushentry
	.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
Lloh0:
	adrp	x8, _flushtries@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flushtries@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _sblock@GOTPAGE
Lloh3:
	ldr	x10, [x10, _sblock@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x10]
Lloh5:
	adrp	x10, _cgbufs@GOTPAGE
Lloh6:
	ldr	x10, [x10, _cgbufs@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x11
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	add	x11, x9, #1
	str	x11, [x8]
	add	x19, x10, x9, lsl #4
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _fswritefd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fswritefd@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_flush
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_flushtries,8,3                 ; @flushtries
	.comm	_sblock,8,3                     ; @sblock
	.comm	_cgbufs,8,3                     ; @cgbufs
	.comm	_fswritefd,4,2                  ; @fswritefd
.subsections_via_symbols
