	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___sflush                       ## -- Begin function __sflush
	.p2align	4, 0x90
___sflush:                              ## @__sflush
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	___SWR@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	movl	8(%r14), %r15d
	movq	%rbx, 8(%r14)
	movq	___SLBF@GOTPCREL(%rip), %rcx
	movq	___SNBF@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rcx), %edx
	subl	%ebx, %r15d
	xorl	%r12d, %r12d
	movl	$0, %ecx
	testl	%eax, %edx
	jne	LBB0_4
## %bb.3:
	movl	32(%r14), %ecx
LBB0_4:
	movl	%ecx, 16(%r14)
	testl	%r15d, %r15d
	jle	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	__swrite
	testl	%eax, %eax
	jle	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	addq	%rcx, %rbx
	subl	%eax, %r15d
	jg	LBB0_5
	jmp	LBB0_12
LBB0_6:
	movq	8(%r14), %rdi
	cmpq	%rdi, %rbx
	jbe	LBB0_7
## %bb.8:
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memmove
	movl	%r15d, %eax
	addq	%rax, 8(%r14)
	movl	(%r14), %eax
	movl	(%r13), %ecx
	movq	___SLBF@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_10
## %bb.9:
	subl	%r15d, 16(%r14)
	jmp	LBB0_10
LBB0_7:
	movl	(%r14), %eax
LBB0_10:
	movq	___SERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___SWR,4,2                      ## @__SWR
	.comm	___SLBF,4,2                     ## @__SLBF
	.comm	___SNBF,4,2                     ## @__SNBF
	.comm	___SERR,4,2                     ## @__SERR
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___sflush                       ; -- Begin function __sflush
	.p2align	2
___sflush:                              ; @__sflush
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
Lloh0:
	adrp	x9, ___SWR@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___SWR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #24]
	cbz	x21, LBB0_8
; %bb.2:
	ldr	w9, [x19, #8]
	sub	w20, w9, w21
	str	x21, [x19, #8]
Lloh3:
	adrp	x22, ___SLBF@GOTPAGE
Lloh4:
	ldr	x22, [x22, ___SLBF@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh5:
	adrp	x23, ___SNBF@GOTPAGE
Lloh6:
	ldr	x23, [x23, ___SNBF@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #32]
LBB0_5:
	str	w8, [x19, #16]
	cmp	w20, #1
	b.lt	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	__swrite
	cmp	w0, #0
	b.le	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w20, w20, w0
	add	x21, x21, w0, uxtw
	cmp	w20, #0
	b.gt	LBB0_6
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x0, [x19, #8]
	cmp	x21, x0
	b.ls	LBB0_13
; %bb.11:
	mov	x1, x21
	mov	x2, x20
	bl	_memmove
	ldr	x8, [x19, #8]
	add	x8, x8, w20, uxtw
	str	x8, [x19, #8]
	ldr	w8, [x19]
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_14
; %bb.12:
	ldr	w9, [x19, #16]
	sub	w9, w9, w20
	str	w9, [x19, #16]
	b	LBB0_14
LBB0_13:
	ldr	w8, [x19]
LBB0_14:
Lloh7:
	adrp	x9, ___SERR@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___SERR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh10:
	adrp	x8, _EOF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	___SWR,4,2                      ; @__SWR
	.comm	___SLBF,4,2                     ; @__SLBF
	.comm	___SNBF,4,2                     ; @__SNBF
	.comm	___SERR,4,2                     ; @__SERR
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
