	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function local_getline
_local_getline:                         ## @local_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	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	testq	%rdi, %rdi
	movl	$100, %r12d
	cmovel	%eax, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	leal	100(%r13), %eax
	cmpl	%r12d, %eax
	jle	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%r12d, %r12d
	addl	$100, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	jmp	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_shell_out_of_memory
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r13d, %rbx
	addq	%r15, %rbx
	movl	%r12d, %esi
	subl	%r13d, %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r13d
	cmpb	$0, (%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%r13), %eax
	cmpb	$10, (%r15,%rax)
	jne	LBB0_1
## %bb.10:
	cmpl	$2, %r13d
	jb	LBB0_11
## %bb.15:
	addl	$-2, %r13d
	cmpb	$13, (%r15,%r13)
	cmovel	%r13d, %eax
	jmp	LBB0_16
LBB0_12:
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.14:
	movb	$0, (%rbx)
	jmp	LBB0_17
LBB0_13:
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_11:
	xorl	%eax, %eax
LBB0_16:
	movb	$0, (%r15,%rax)
LBB0_17:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,8,3                      ## @stdin
	.comm	_stdin_is_interactive,8,3       ## @stdin_is_interactive
	.no_dead_strip	_local_getline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function local_getline
_local_getline:                         ; @local_getline
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	w23, #0
	cmp	x0, #0
	mov	w8, #100
	csel	w21, wzr, w8, eq
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	w8, w23, #100
	cmp	w8, w21
	b.le	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w8, w21, #1
	add	w21, w8, #100
	mov	x0, x19
	mov	x1, x21
	bl	_realloc
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_shell_out_of_memory
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x24, w23
	add	x22, x19, x24
	sub	w1, w21, w23
	mov	x0, x22
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w23, w23, #1
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x19, x24]
	add	x24, x24, #1
	add	w23, w23, #1
	cbnz	w8, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w8, w23, #1
	b.lt	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w9, [x19, w8, uxtw]
	cmp	w9, #10
	b.ne	LBB0_1
; %bb.9:
	subs	w9, w23, #2
	b.lo	LBB0_14
; %bb.10:
	ldrb	w10, [x19, w9, uxtw]
	cmp	w10, #13
	csel	w8, w9, w8, eq
	b	LBB0_15
LBB0_11:
	cbz	w23, LBB0_13
; %bb.12:
	strb	wzr, [x22]
	b	LBB0_16
LBB0_13:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_16
LBB0_14:
	mov	x8, #0
LBB0_15:
	strb	wzr, [x19, x8]
LBB0_16:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,8,3                      ; @stdin
	.comm	_stdin_is_interactive,8,3       ; @stdin_is_interactive
	.no_dead_strip	_local_getline
.subsections_via_symbols
