	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fputc                          ## -- Begin function fputc
	.p2align	4, 0x90
_fputc:                                 ## @fputc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, -20(%rbp)
	movl	(%rsi), %eax
	movq	___FILE_CAN_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	%edi, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___set_stream_flags
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %eax
LBB0_3:
	movq	___FILE_ERROR@GOTPCREL(%rip), %rcx
LBB0_9:
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	8(%rbx), %eax
	decl	%eax
	cmpl	%eax, 4(%rbx)
	jl	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:
	movq	___FILE_NOBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_10
## %bb.7:
	movl	24(%rbx), %edi
	leaq	-20(%rbp), %rsi
	movl	$1, %edx
	callq	_write
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	je	LBB0_15
	jmp	LBB0_8
LBB0_10:
	movq	16(%rbx), %rcx
	movslq	4(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%rbx)
	movl	%r14d, (%rcx,%rdx,4)
	movl	(%rbx), %ecx
	cmpl	$10, %r14d
	jne	LBB0_12
## %bb.11:
	movq	___FILE_BUFLINEWISE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	jne	LBB0_13
LBB0_12:
	testl	%ecx, (%rax)
	je	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_fflush
	testq	%rax, %rax
	je	LBB0_14
LBB0_8:
	movq	___FILE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	___FILE_CAN_WRITE,4,2           ## @__FILE_CAN_WRITE
	.comm	___FILE_ERROR,4,2               ## @__FILE_ERROR
	.comm	_EOF,4,2                        ## @EOF
	.comm	___FILE_NOBUF,4,2               ## @__FILE_NOBUF
	.comm	___FILE_BUFLINEWISE,4,2         ## @__FILE_BUFLINEWISE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fputc                          ; -- Begin function fputc
	.p2align	2
_fputc:                                 ; @fputc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	w0, [sp, #12]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, ___FILE_CAN_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___FILE_CAN_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	___set_stream_flags
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19]
LBB0_3:
Lloh3:
	adrp	x9, ___FILE_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___FILE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_4:
	str	w8, [x19]
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldp	w8, w9, [x19, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_fflush
	cbnz	x0, LBB0_15
LBB0_8:
	ldr	w9, [x19]
Lloh9:
	adrp	x8, ___FILE_NOBUF@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___FILE_NOBUF@GOTPAGEOFF]
	ldr	w10, [x8]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.9:
	ldr	w0, [x19, #24]
	add	x1, sp, #12
	mov	w2, #1
	bl	_write
	cmp	w0, #1
	b.ne	LBB0_15
LBB0_10:
	mov	w0, #0
	b	LBB0_5
LBB0_11:
	ldr	x9, [x19, #16]
	ldrsw	x10, [x19, #4]
	add	w11, w10, #1
	str	w11, [x19, #4]
	str	w20, [x9, x10, lsl #2]
	ldr	w9, [x19]
	cmp	w20, #10
	b.ne	LBB0_13
; %bb.12:
Lloh11:
	adrp	x10, ___FILE_BUFLINEWISE@GOTPAGE
Lloh12:
	ldr	x10, [x10, ___FILE_BUFLINEWISE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w10, w10, w9
	cbnz	w10, LBB0_14
LBB0_13:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_10
LBB0_14:
	mov	x0, x19
	bl	_fflush
	cbz	x0, LBB0_5
LBB0_15:
Lloh14:
	adrp	x8, ___FILE_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, ___FILE_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	___FILE_CAN_WRITE,4,2           ; @__FILE_CAN_WRITE
	.comm	___FILE_ERROR,4,2               ; @__FILE_ERROR
	.comm	_EOF,4,2                        ; @EOF
	.comm	___FILE_NOBUF,4,2               ; @__FILE_NOBUF
	.comm	___FILE_BUFLINEWISE,4,2         ; @__FILE_BUFLINEWISE
.subsections_via_symbols
