	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function use_stdin
_use_stdin:                             ## @use_stdin
	.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
	movq	_STDIN_BUFFER_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	leal	1(%rbx), %esi
	movl	$1, %r12d
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	movq	_flags@GOTPCREL(%rip), %rax
	testb	$64, 1(%rax)
	jne	LBB0_10
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
	movl	(%r13), %ebx
	movl	%ecx, %r15d
	movl	%ecx, %r12d
	cmpl	%ecx, %ebx
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %esi
	addq	%r14, %rsi
	subl	%r15d, %ebx
	xorl	%edi, %edi
	movl	%ebx, %edx
	callq	_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(%rax,%r15), %ecx
	decl	%ecx
	cmpb	$0, (%r14,%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %r15d
	movl	%eax, %eax
	movb	$0, (%r14,%rax)
	movslq	(%r13), %rax
	movb	$0, (%r14,%rax)
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_rax
	movl	$-1, %ecx
	movl	%r15d, %r12d
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movl	%r15d, %r12d
LBB0_9:
	testl	%r12d, %r12d
	jle	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_rax
LBB0_11:
	movq	%r14, %rdi
	callq	_free
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_BUFFER_SIZE,4,2          ## @STDIN_BUFFER_SIZE
	.comm	_flags,4,2                      ## @flags
	.no_dead_strip	_use_stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function use_stdin
_use_stdin:                             ; @use_stdin
	.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
Lloh0:
	adrp	x21, _STDIN_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STDIN_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w22, [x21]
	add	w1, w22, #1
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _flags@GOTPAGE
Lloh3:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
	ldrb	w8, [x8, #1]
	tbnz	w8, #6, LBB0_9
; %bb.2:
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w8, #1
	ldr	w22, [x21]
	cmp	w22, w20
	b.le	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, w20, uxtw
	sub	w2, w22, w20
	mov	w0, #0
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w0, w20
	sub	w8, w20, #1
	ldrb	w9, [x19, w8, uxtw]
	cbz	w9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x19, w0, uxtw]
	ldrsw	x8, [x21]
	strb	wzr, [x19, x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_rax
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #-1
	b	LBB0_4
LBB0_9:
	mov	w20, #1
	b	LBB0_11
LBB0_10:
	cmp	w20, #1
	b.lt	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_rax
LBB0_12:
	mov	x0, x19
	bl	_free
LBB0_13:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_BUFFER_SIZE,4,2          ; @STDIN_BUFFER_SIZE
	.comm	_flags,4,2                      ; @flags
	.no_dead_strip	_use_stdin
.subsections_via_symbols
