	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efgetln                        ## -- Begin function efgetln
	.p2align	4, 0x90
_efgetln:                               ## @efgetln
	.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	%rsi, %r14
	leaq	-32(%rbp), %rsi
	callq	_fgetln
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	-32(%rbp), %r15
	cmpb	$10, -1(%r15,%rax)
	jne	LBB0_6
## %bb.3:
	movb	$0, -1(%rbx,%r15)
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	movq	-32(%rbp), %rbx
	decq	%rbx
	movq	%rbx, -32(%rbp)
	jmp	LBB0_9
LBB0_1:
	movq	$0, (%r14)
	jmp	LBB0_10
LBB0_6:
	leaq	1(%r15), %rdi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r14), %rax
	movq	-32(%rbp), %r15
LBB0_8:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	(%r14), %rax
	movq	-32(%rbp), %rcx
	movb	$0, (%rax,%rcx)
	movq	-32(%rbp), %rbx
LBB0_9:
	movq	(%r14), %rdi
	callq	_strlen
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_assert
LBB0_10:
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efgetln                        ; -- Begin function efgetln
	.p2align	2
_efgetln:                               ; @efgetln
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	add	x1, sp, #8
	bl	_fgetln
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x21, [sp, #8]
	sub	x8, x21, #1
	ldrb	w9, [x0, x8]
	cmp	w9, #10
	b.ne	LBB0_6
; %bb.2:
	strb	wzr, [x20, x8]
	mov	x0, x20
	bl	_strdup
	str	x0, [x19]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	x8, [sp, #8]
	sub	x20, x8, #1
	str	x20, [sp, #8]
	b	LBB0_9
LBB0_5:
	str	xzr, [x19]
	b	LBB0_10
LBB0_6:
	add	x0, x21, #1
	bl	_malloc
	str	x0, [x19]
	cbnz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x0, [x19]
	ldr	x21, [sp, #8]
LBB0_8:
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	strb	wzr, [x8, x9]
	ldr	x20, [sp, #8]
LBB0_9:
	ldr	x0, [x19]
	bl	_strlen
	cmp	x20, x0
	cset	w0, eq
	bl	_assert
LBB0_10:
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate memory"

.subsections_via_symbols
