	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_writeint                       ## -- Begin function writeint
	.p2align	4, 0x90
_writeint:                              ## @writeint
	.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
	movl	%edi, %ebx
	movq	_wptr@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	leaq	4(%rax), %rcx
	movq	_buff@GOTPCREL(%rip), %rdx
	movq	_BUFFSIZE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	(%rdx), %rsi
	cmpq	%rsi, %rcx
	jbe	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_flushout
	movq	(%r14), %rax
	leaq	4(%rax), %rcx
LBB0_2:
	movl	%ebx, (%rax)
	movq	%rcx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wptr,8,3                       ## @wptr
	.comm	_buff,8,3                       ## @buff
	.comm	_BUFFSIZE,8,3                   ## @BUFFSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_writeint                       ; -- Begin function writeint
	.p2align	2
_writeint:                              ; @writeint
	.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
Lloh0:
	adrp	x20, _wptr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wptr@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x9, x8, #4
Lloh2:
	adrp	x10, _buff@GOTPAGE
Lloh3:
	ldr	x10, [x10, _buff@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _BUFFSIZE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _BUFFSIZE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	add	x10, x11, x10
	cmp	x9, x10
	b.ls	LBB0_2
; %bb.1:
	bl	_flushout
	ldr	x8, [x20]
	add	x9, x8, #4
LBB0_2:
	str	w19, [x8]
	str	x9, [x20]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_wptr,8,3                       ; @wptr
	.comm	_buff,8,3                       ; @buff
	.comm	_BUFFSIZE,8,3                   ; @BUFFSIZE
.subsections_via_symbols
