	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readline
_readline:                              ## @readline
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %rsi
	callq	_tar_flush_unconsumed
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	___archive_read_ahead
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %r14
	subq	%r12, %r14
	incq	%r14
	movl	%r14d, -44(%rbp)
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jg	LBB0_8
## %bb.17:
	movslq	%r14d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r12, (%r13)
	jmp	LBB0_18
LBB0_3:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, (%rax)
	cmpl	-48(%rbp), %esi                 ## 4-byte Folded Reload
	jle	LBB0_4
LBB0_8:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_9:
	movq	%r15, %rdi
	callq	_archive_set_error
LBB0_1:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	subl	%r12d, %eax
	incl	%eax
	movl	%eax, -44(%rbp)
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%eax, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rsi, (%rax)
	addl	%r14d, %esi
	cmpl	-48(%rbp), %esi                 ## 4-byte Folded Reload
	jg	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %r14
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movl	-44(%rbp), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_tar_flush_unconsumed
	addl	-44(%rbp), %r14d
	testq	%r13, %r13
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	leaq	-44(%rbp), %rdx
	callq	___archive_read_ahead
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_memchr
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_16
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_9
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line too long"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate working buffer"

	.no_dead_strip	_readline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readline
_readline:                              ; @readline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	mov	x1, x4
	bl	_tar_flush_unconsumed
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	___archive_read_ahead
	ldr	w2, [sp, #12]
	cmp	w2, #0
	b.le	LBB0_7
; %bb.1:
	mov	x25, x0
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_4
; %bb.2:
	sub	x8, x0, x25
	add	x24, x8, #1
	str	w24, [sp, #12]
	cmp	w24, w22
	b.gt	LBB0_5
; %bb.3:
	sxtw	x8, w24
	str	x8, [x21]
	str	x25, [x20]
	b	LBB0_8
LBB0_4:
	ldrsw	x1, [sp, #12]
	str	x1, [x21]
	cmp	w1, w22
	b.le	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_archive_set_error
LBB0_7:
Lloh5:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
LBB0_8:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
LBB0_9:
	mov	x26, #0
	mov	w24, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w8, w26, w25
	add	w8, w8, #1
	str	w8, [sp, #12]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sxtw	x9, w8
	str	x9, [x21]
	add	w1, w8, w24
	cmp	w1, w22
	b.gt	LBB0_5
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_archive_string_ensure
	cbz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23]
	add	x0, x8, w24, sxtw
	ldr	w2, [sp, #12]
	mov	x1, x25
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	bl	_tar_flush_unconsumed
	ldr	w8, [sp, #12]
	add	w24, w8, w24
	cbnz	x26, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	___archive_read_ahead
	ldr	w2, [sp, #12]
	cmp	w2, #0
	b.le	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x0
	mov	w1, #10
	bl	_memchr
	mov	x26, x0
	cbnz	x0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #12]
	b	LBB0_11
LBB0_17:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_18:
	ldr	x8, [x23]
	str	x8, [x20]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line too long"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate working buffer"

	.no_dead_strip	_readline
.subsections_via_symbols
