	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putcharwrap
_putcharwrap:                           ## @putcharwrap
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_charcount@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_MAX_CHARS_PER_LINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	$0, (%r15)
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
LBB0_2:
	movq	_lastchar@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.3:
	incq	(%r15)
	movq	%rbx, %rsi
	callq	_putc
LBB0_4:
	movl	%r14d, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_charcount,8,3                  ## @charcount
	.comm	_MAX_CHARS_PER_LINE,8,3         ## @MAX_CHARS_PER_LINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\\n"

	.comm	_lastchar,4,2                   ## @lastchar
	.no_dead_strip	_putcharwrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putcharwrap
_putcharwrap:                           ; @putcharwrap
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _charcount@GOTPAGE
Lloh1:
	ldr	x21, [x21, _charcount@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _MAX_CHARS_PER_LINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_CHARS_PER_LINE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	str	xzr, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
LBB0_2:
Lloh7:
	adrp	x22, _lastchar@GOTPAGE
Lloh8:
	ldr	x22, [x22, _lastchar@GOTPAGEOFF]
	ldr	w0, [x22]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	mov	x1, x20
	bl	_putc
LBB0_4:
	str	w19, [x22]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_charcount,8,3                  ; @charcount
	.comm	_MAX_CHARS_PER_LINE,8,3         ; @MAX_CHARS_PER_LINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\\n"

	.comm	_lastchar,4,2                   ; @lastchar
	.no_dead_strip	_putcharwrap
.subsections_via_symbols
