	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movq	%rsi, %rbx
	cmpl	$2, %edi
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_fgetln
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movl	$1024, %r13d                    ## imm = 0x400
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %r15
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_portify
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx,%r12,8)
	incq	%r12
	movq	%r13, %rdi
	leaq	-64(%rbp), %rsi
	callq	_fgetln
	movq	%rax, %r14
	movq	%r15, %r13
	testq	%rax, %rax
	je	LBB0_18
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	cmpb	$10, -1(%r14,%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
	movq	-64(%rbp), %rax
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	decq	%rax
	movb	$0, (%r14,%rax)
	cmpq	%r13, %r12
	jb	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %r15
	addq	%r13, %r15
	shlq	$4, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	xorl	%ebx, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_7:
	xorl	%r12d, %r12d
LBB0_18:
	leaq	(,%r12,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_realloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_20:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_22
## %bb.21:
	movq	8(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_22:
	movq	%rbx, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	8(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_24:
	testq	%r12, %r12
	je	LBB0_35
## %bb.25:
	leaq	-1(%r12), %rbx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_heapifyports
	addq	$-1, %rbx
	jb	LBB0_26
## %bb.27:
	movq	%r12, %rbx
	decq	%rbx
	je	LBB0_29
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%r14,%rbx,8), %rcx
	movq	%rcx, (%r14)
	movq	%rax, (%r14,%rbx,8)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_heapifyports
	decq	%rbx
	jne	LBB0_36
LBB0_29:
	cmpq	$2, %r12
	movl	$1, %r15d
	cmovaeq	%r12, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_translateport
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_30
## %bb.31:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_recurse
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_32
## %bb.33:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_printport
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_34
LBB0_35:
	xorl	%eax, %eax
	addq	$40, %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	"r"

L_.str.1:                               ## @.str.1
	.asciz	"fopen(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"malloc(pp)"

L_.str.3:                               ## @.str.3
	.asciz	"Unterminated line encountered"

L_.str.4:                               ## @.str.4
	.asciz	"realloc(pp)"

L_.str.5:                               ## @.str.5
	.asciz	"fgetln(%s)"

L_.str.6:                               ## @.str.6
	.asciz	"fclose(%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	mov	w0, #8192
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	add	x1, sp, #8
	mov	x0, x21
	bl	_fgetln
	cbz	x0, LBB0_15
; %bb.7:
	mov	x25, x0
	mov	x19, #0
	mov	w26, #1024
Lloh6:
	adrp	x23, l_.str.4@PAGE
Lloh7:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh8:
	adrp	x24, l_.str.3@PAGE
Lloh9:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x27, x26
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	bl	_portify
	str	x0, [x22, x19, lsl #3]
	add	x19, x19, #1
	add	x1, sp, #8
	mov	x0, x21
	bl	_fgetln
	mov	x25, x0
	mov	x26, x27
	cbz	x0, LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	sub	x8, x8, #1
	ldrb	w9, [x25, x8]
	cmp	w9, #10
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	mov	x1, x24
	bl	_errx
	ldr	x8, [sp, #8]
	sub	x8, x8, #1
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	strb	wzr, [x25, x8]
	cmp	x19, x26
	b.lo	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	x27, x26, #1
	lsl	x1, x26, #4
	mov	x0, x22
	bl	_realloc
	mov	x22, x0
	cbnz	x0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	mov	x1, x23
	bl	_err
	b	LBB0_9
LBB0_15:
	mov	x19, #0
LBB0_16:
	lsl	x1, x19, #3
	mov	x0, x22
	bl	_realloc
	mov	x22, x0
	cbnz	x0, LBB0_18
; %bb.17:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_18:
	mov	x0, x21
	bl	_feof
	cbnz	w0, LBB0_20
; %bb.19:
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_20:
	mov	x0, x21
	bl	_fclose
	cbz	x0, LBB0_22
; %bb.21:
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_22:
	cbz	x19, LBB0_32
; %bb.23:
	sub	x20, x19, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_heapifyports
	sub	x20, x20, #1
	cmn	x20, #1
	b.ne	LBB0_24
; %bb.25:
	subs	x20, x19, #1
	b.eq	LBB0_27
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x9, x20, #3
	ldr	x10, [x22, x9]
	str	x10, [x22]
	str	x8, [x22, x9]
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	bl	_heapifyports
	subs	x20, x20, #1
	b.ne	LBB0_26
LBB0_27:
	mov	x21, #0
	cmp	x19, #1
	csinc	x20, x19, xzr, hi
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x22, x21, lsl #3]
	mov	x0, x22
	mov	x1, x19
	bl	_translateport
	add	x21, x21, #1
	cmp	x20, x21
	b.ne	LBB0_28
; %bb.29:
	mov	x19, x22
	mov	x21, x20
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	bl	_recurse
	subs	x21, x21, #1
	b.ne	LBB0_30
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22], #8
	bl	_printport
	subs	x20, x20, #1
	b.ne	LBB0_31
LBB0_32:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"fopen(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"malloc(pp)"

l_.str.3:                               ; @.str.3
	.asciz	"Unterminated line encountered"

l_.str.4:                               ; @.str.4
	.asciz	"realloc(pp)"

l_.str.5:                               ; @.str.5
	.asciz	"fgetln(%s)"

l_.str.6:                               ; @.str.6
	.asciz	"fclose(%s)"

.subsections_via_symbols
