	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_extended_line              ## -- Begin function get_extended_line
	.p2align	4, 0x90
_get_extended_line:                     ## @get_extended_line
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_ibufp@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	xorl	%eax, %eax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rcx, %rax
	cmpb	$10, (%r12,%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_1
## %bb.2:
	cmpl	$2, %ebx
	jl	LBB0_5
## %bb.3:
	sarq	$32, %rax
	leaq	(%r12,%rax), %rsi
	decq	%rsi
	movq	%r12, %rdi
	callq	_has_trailing_escape
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, (%r15)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_REALLOC
	movq	(%r14), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	-1(%rbx), %r15
	movl	%r15d, %eax
	movb	$10, -1(%rax)
	xorl	%eax, %eax
	callq	_get_tty_line
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:
	movl	%eax, %r13d
	addl	$-2, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%ebx, %r15d
	movq	_ibuf@GOTPCREL(%rip), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rax
	leal	-1(%r13), %ecx
	cmpb	$10, (%rax,%rcx)
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leal	(%r15,%r13), %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_REALLOC
	movslq	%r15d, %rdi
	movq	(%rbx), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	cmpl	$2, %r13d
	movq	$-1, %r13
	jb	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r14d, %rbx
	leaq	(%rbx,%r13), %rsi
	xorl	%edi, %edi
	callq	_has_trailing_escape
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-1(%rbx), %r15
	addl	$-2, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movb	$10, -1(%r13,%rbx)
	cmovnel	%r14d, %r15d
	xorl	%eax, %eax
	callq	_get_tty_line
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	_ibuf@GOTPCREL(%rip), %rbx
	jns	LBB0_8
	jmp	LBB0_15
LBB0_4:
	movq	(%r14), %r12
LBB0_5:
	movl	%ebx, (%r15)
LBB0_15:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rax
	movq	_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_14:
	leal	1(%r14), %edx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REALLOC
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ibufp,8,3                      ## @ibufp
	.comm	_ibuf,8,3                       ## @ibuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected end-of-file"

	.comm	_errmsg,8,3                     ## @errmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_extended_line              ; -- Begin function get_extended_line
	.p2align	2
_get_extended_line:                     ; @get_extended_line
	.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, x1
	mov	x19, x0
	mov	x8, #0
Lloh0:
	adrp	x23, _ibufp@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ibufp@GOTPAGEOFF]
	ldr	x0, [x23]
	mov	w22, #-2
	mov	x9, #4294967296
	mov	x10, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10], #1
	add	x8, x8, x9
	add	w22, w22, #1
	cmp	w11, #10
	b.ne	LBB0_1
; %bb.2:
	add	w21, w22, #2
	cmp	w21, #2
	b.lt	LBB0_13
; %bb.3:
	add	x8, x0, x8, asr #32
	sub	x1, x8, #1
	bl	_has_trailing_escape
	cbz	w0, LBB0_12
; %bb.4:
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, #0
	mov	w1, #0
	mov	x2, x21
	mov	x3, #0
	bl	_REALLOC
	ldr	x1, [x23]
	mov	x0, #0
	mov	x2, x21
	bl	_memcpy
	add	w23, w22, #1
	mov	w24, #10
	sturb	w24, [x23, #-1]
	bl	_get_tty_line
	tbnz	w0, #31, LBB0_11
; %bb.5:
	mov	x21, x0
	mov	x25, #-1
	cmp	w20, #0
	csel	w22, w23, w22, eq
Lloh2:
	adrp	x26, _ibuf@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ibuf@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w21, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	sub	w9, w21, #1
	ldrb	w8, [x8, w9, uxtw]
	cmp	w8, #10
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x23, w22
	add	x22, x23, w21, sxtw
	mov	x0, #0
	mov	w1, #0
	mov	x2, x22
	mov	x3, #0
	bl	_REALLOC
	ldr	x1, [x26]
	mov	x0, x23
	mov	x2, x21
	bl	_memcpy
	cmp	w21, #2
	b.lo	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x25, x22
	mov	x0, #0
	bl	_has_trailing_escape
	cbz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x22
	sxtw	x8, w8
	sub	x8, x8, #1
	strb	w24, [x25, x8]
	sub	w9, w22, #2
	cmp	w20, #0
	csel	w22, w8, w9, eq
	bl	_get_tty_line
	mov	x21, x0
	tbz	w0, #31, LBB0_6
LBB0_11:
	mov	x0, #0
	b	LBB0_14
LBB0_12:
	ldr	x0, [x23]
LBB0_13:
	str	w21, [x19]
LBB0_14:
	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
LBB0_15:
	mov	x0, #0
Lloh4:
	adrp	x8, _errmsg@GOTPAGE
Lloh5:
	ldr	x8, [x8, _errmsg@GOTPAGEOFF]
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
Lloh8:
	str	x9, [x8]
	b	LBB0_14
LBB0_16:
	add	w2, w22, #1
	mov	x0, #0
	mov	w1, #0
	mov	x3, #0
	bl	_REALLOC
	mov	x0, #0
	str	w22, [x19]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ibufp,8,3                      ; @ibufp
	.comm	_ibuf,8,3                       ; @ibuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected end-of-file"

	.comm	_errmsg,8,3                     ; @errmsg
.subsections_via_symbols
