	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_string
_read_string:                           ## @read_string
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%ebx, %ebx
	leaq	-49(%rbp), %r15
	movq	_repipe@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	-49(%rbp), %eax
	movb	%al, (%r14,%rbx)
	incq	%rbx
	testb	%al, %al
	je	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_input_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	jne	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_die
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_write
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cltq
	cmpq	%rax, %r13
	je	LBB0_8
	jmp	LBB0_7
LBB0_9:
	movq	_calc_data_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movl	%ebx, %edx
	addq	%rdx, %rcx
	movq	%rcx, (%rax)
LBB0_11:
	movl	%ebx, %edi
	callq	_malloc_or_die
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_input_fd,4,2                   ## @input_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading input file"

L_.str.1:                               ## @.str.1
	.asciz	"no data"

	.comm	_repipe,8,3                     ## @repipe
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.2:                               ## @.str.2
	.asciz	"repiping input file string"

	.comm	_calc_data_size,8,3             ## @calc_data_size
	.no_dead_strip	_read_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_string
_read_string:                           ; @read_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	mov	x21, #0
Lloh8:
	adrp	x22, _input_fd@GOTPAGE
Lloh9:
	ldr	x22, [x22, _input_fd@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
Lloh12:
	adrp	x24, _repipe@GOTPAGE
Lloh13:
	ldr	x24, [x24, _repipe@GOTPAGEOFF]
Lloh14:
	adrp	x25, _STDOUT_FILENO@GOTPAGE
Lloh15:
	ldr	x25, [x25, _STDOUT_FILENO@GOTPAGEOFF]
Lloh16:
	adrp	x20, l_.str.2@PAGE
Lloh17:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh18:
	adrp	x26, l_.str.1@PAGE
Lloh19:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldurb	w8, [x29, #-89]
	add	x21, x27, #1
	strb	w8, [x19, x27]
	cbz	w8, LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x21
	ldr	w0, [x22]
	sub	x1, x29, #89
	mov	w2, #1
	bl	_read
	mov	x21, x0
	tbnz	x0, #63, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x21, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_die
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	sub	x1, x29, #89
	mov	w2, #1
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	w0, #1
	ccmp	x21, x8, #0, ge
	b.eq	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_die
	b	LBB0_1
LBB0_10:
Lloh20:
	adrp	x8, _calc_data_size@GOTPAGE
Lloh21:
	ldr	x8, [x8, _calc_data_size@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.11:
	add	x9, x9, w21, uxtw
	str	x9, [x8]
LBB0_12:
	mov	x0, x21
	bl	_malloc_or_die
	mov	x20, x0
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_input_fd,4,2                   ; @input_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading input file"

l_.str.1:                               ; @.str.1
	.asciz	"no data"

	.comm	_repipe,8,3                     ; @repipe
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.2:                               ; @.str.2
	.asciz	"repiping input file string"

	.comm	_calc_data_size,8,3             ; @calc_data_size
	.no_dead_strip	_read_string
.subsections_via_symbols
