	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpl	$1, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	xorl	%eax, %eax
	callq	_caph_limit_stdio
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_getargs
	movq	_morefiles@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	xorl	%eax, %eax
	callq	_caph_cache_catpages
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	_line@GOTPCREL(%rip), %r15
	movq	_linep@GOTPCREL(%rip), %r12
	movq	_stdout@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_gatherline
	movl	%eax, (%r12)
	addq	$16, %r13
	cmpq	$0, 24(%rbx)
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_morefiles@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_fputs
	movl	(%r13), %edi
	movl	(%r14), %esi
	callq	_fputs
	movq	_nofinalnl@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_9
LBB0_14:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to limit stdio"

	.comm	_morefiles,4,2                  ## @morefiles
L_.str.1:                               ## @.str.1
	.asciz	"unable to enter capability mode"

	.comm	_line,4,2                       ## @line
	.comm	_linep,4,2                      ## @linep
	.comm	_input,8,3                      ## @input
	.comm	_stdout,4,2                     ## @stdout
	.comm	_nofinalnl,4,2                  ## @nofinalnl
.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:
	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	x19, x1
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	bl	_caph_limit_stdio
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	mov	x0, x19
	bl	_getargs
Lloh2:
	adrp	x20, _morefiles@GOTPAGE
Lloh3:
	ldr	x20, [x20, _morefiles@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_6
; %bb.5:
	bl	_usage
LBB0_6:
	bl	_caph_cache_catpages
	bl	_caph_enter
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh6:
	adrp	x21, _line@GOTPAGE
Lloh7:
	ldr	x21, [x21, _line@GOTPAGEOFF]
Lloh8:
	adrp	x22, _linep@GOTPAGE
Lloh9:
	ldr	x22, [x22, _linep@GOTPAGEOFF]
Lloh10:
	adrp	x23, _input@GOTPAGE
Lloh11:
	ldr	x23, [x23, _input@GOTPAGEOFF]
Lloh12:
	adrp	x24, _stdout@GOTPAGE
Lloh13:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
Lloh14:
	adrp	x25, _nofinalnl@GOTPAGE
Lloh15:
	ldr	x25, [x25, _nofinalnl@GOTPAGEOFF]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	x19, [x23]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
LBB0_10:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_gatherline
	str	w0, [x22]
	add	x8, x19, #16
	ldr	x9, [x19, #24]
	mov	x19, x8
	cbnz	x9, LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x19, x8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x24]
	bl	_fputs
	ldr	w0, [x19]
	ldr	w1, [x24]
	bl	_fputs
	ldr	w8, [x25]
	cbnz	w8, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #10
	bl	_putchar
	b	LBB0_9
LBB0_15:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to limit stdio"

	.comm	_morefiles,4,2                  ; @morefiles
l_.str.1:                               ; @.str.1
	.asciz	"unable to enter capability mode"

	.comm	_line,4,2                       ; @line
	.comm	_linep,4,2                      ; @linep
	.comm	_input,8,3                      ; @input
	.comm	_stdout,4,2                     ; @stdout
	.comm	_nofinalnl,4,2                  ; @nofinalnl
.subsections_via_symbols
