	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_getln                    ## -- Begin function fetch_getln
	.p2align	4, 0x90
_fetch_getln:                           ## @fetch_getln
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_MIN_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, 8(%rbx)
LBB0_4:
	movb	$0, (%rax)
	movq	$0, 16(%rbx)
	leaq	-25(%rbp), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%rbx)
	movq	%r15, 8(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$10, -25(%rbp)
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_fetch_read
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	-25(%rbp), %eax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	movb	%al, (%rcx,%rdx)
	movq	16(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	leaq	(%rax,%rax), %r15
	incq	%r15
	movq	%r15, %rsi
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_11:
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movb	$0, (%rax,%rcx)
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DEBUGF
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_BUF_SIZE,8,3               ## @MIN_BUF_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<<< %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_getln                    ; -- Begin function fetch_getln
	.p2align	2
_fetch_getln:                           ; @fetch_getln
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MIN_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.2:
	str	x20, [x19, #8]
LBB0_3:
	strb	wzr, [x0]
	str	xzr, [x19, #16]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	stp	x0, x20, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w8, #10
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_fetch_read
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [sp, #15]
	ldr	x9, [x19]
	ldr	x10, [x19, #16]
	add	x11, x10, #1
	str	x11, [x19, #16]
	strb	w8, [x9, x10]
	ldp	x9, x8, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19]
	mov	w20, #1
	bfi	x20, x8, #1, #63
	mov	x1, x20
	bl	_realloc
	cbnz	x0, LBB0_4
LBB0_10:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	strb	wzr, [x8, x9]
	ldr	x1, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUGF
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_BUF_SIZE,8,3               ; @MIN_BUF_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<<< %s"

.subsections_via_symbols
