	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filestream_getline             ## -- Begin function filestream_getline
	.p2align	4, 0x90
_filestream_getline:                    ## @filestream_getline
	.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	%rdi, %rbx
	movl	$9, %edi
	callq	_malloc
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	testq	%r15, %r15
	je	LBB0_11
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_filestream_getc
	xorl	%r13d, %r13d
	cmpl	$10, %eax
	je	LBB0_10
## %bb.3:
	movl	%eax, %r12d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_10
## %bb.4:
	movl	$8, %r14d
	movl	$1, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r13
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%rbx), %r14
	movq	%rax, %r15
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	%r12b, (%r15,%r13)
	incq	%r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_filestream_getc
	cmpl	$10, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	addq	$2, %rbx
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
LBB0_10:
	movb	$0, (%r15,%r13)
	jmp	LBB0_14
LBB0_11:
	testq	%r15, %r15
	je	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_free
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filestream_getline             ; -- Begin function filestream_getline
	.p2align	2
_filestream_getline:                    ; @filestream_getline
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	mov	w0, #9
	bl	_malloc
	mov	x19, x0
	cbz	x20, LBB0_11
; %bb.1:
	cbz	x19, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_filestream_getc
	mov	x26, #0
	cmp	w0, #10
	b.eq	LBB0_10
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x23, _EOF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.4:
	mov	x25, #0
	mov	w24, #8
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, x24
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_realloc
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x24, x22, #1
	mov	x19, x0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, #1
	strb	w21, [x19, x25]
	mov	x0, x20
	bl	_filestream_getc
	cmp	w0, #10
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	ldr	w8, [x23]
	add	x22, x22, #2
	mov	x25, x26
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_10:
	strb	wzr, [x19, x26]
	b	LBB0_13
LBB0_11:
	cbz	x19, LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
