	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rsi
	cmpb	$0, (%rdi)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_3:
	movl	$100, %r13d
	movl	$100, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %rdi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	leal	100(%rbx), %eax
	cmpl	%r13d, %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	%r13d, %r13d
	addl	$100, %r13d
	movl	%r13d, %esi
	callq	_realloc
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_20
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %r12
	leaq	(%rdi,%r12), %r14
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %esi
	subl	%ebx, %esi
	movq	%rdi, %r13
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %r12
	movq	%r13, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=2
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	movl	%eax, %r15d
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%ebx
	incq	%r12
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12), %eax
	cmpb	$34, %al
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	testb	%al, %al
	jne	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%cl
	leal	-1(%rbx), %eax
	testl	%r15d, %r15d
	setne	%dl
	cmpb	$10, (%rdi,%rax)
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	andb	%dl, %cl
	jne	LBB0_5
## %bb.14:
	xorl	%ecx, %ecx
	cmpl	$2, %ebx
	jb	LBB0_16
## %bb.15:
	addl	$-2, %ebx
	cmpb	$13, (%rdi,%rbx)
	cmovel	%ebx, %eax
	movl	%eax, %ecx
LBB0_16:
	movl	%ecx, %r14d
	addq	%rdi, %r14
	movl	%ecx, %ebx
	jmp	LBB0_17
LBB0_18:
	testl	%ebx, %ebx
	movq	%r13, %rdi
	je	LBB0_19
LBB0_17:
	movb	$0, (%r14)
	incl	%ebx
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_realloc                        ## TAILCALL
LBB0_19:
	callq	_free
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_stdout,4,2                     ## @stdout
	.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	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, x2
	mov	x21, x1
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_fflush
LBB0_3:
	mov	w0, #100
	bl	_malloc
	cbz	x0, LBB0_20
; %bb.4:
	mov	x19, x0
	mov	w25, #0
	mov	w24, #0
	mov	w22, #100
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	add	w8, w25, #100
	cmp	w8, w22
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w22, #1
	add	w22, w8, #100
	mov	x0, x19
	mov	x1, x22
	bl	_realloc
	cbz	x0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x26, w25
	add	x23, x19, x26
	sub	w1, w22, w25
	mov	x0, x23
	mov	x2, x21
	bl	_fgets
	cbnz	x0, LBB0_11
	b	LBB0_18
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	cmp	w24, #0
	cset	w24, eq
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x26, x26, #1
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x19, x26]
	cmp	w8, #34
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cbnz	w8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x26
	subs	w8, w26, #1
	b.lt	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #0
	ldrb	w10, [x19, w8, uxtw]
	ccmp	w24, #0, #4, ne
	cset	w9, ne
	mov	x25, x26
	cmp	w10, #10
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x26
	tbnz	w9, #0, LBB0_5
; %bb.16:
	subs	w9, w26, #2
	b.lo	LBB0_21
; %bb.17:
	ldrb	w10, [x19, w9, uxtw]
	cmp	w10, #13
	csel	w25, w9, w8, eq
	b	LBB0_22
LBB0_18:
	cbnz	w25, LBB0_23
; %bb.19:
	mov	x0, x19
	bl	_free
LBB0_20:
	mov	x0, #0
	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_21:
	mov	w25, #0
LBB0_22:
	add	x23, x19, w25, uxtw
LBB0_23:
	strb	wzr, [x23]
	add	w1, w25, #1
	mov	x0, x19
	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
	b	_realloc
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_local_getline
.subsections_via_symbols
