	.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
	movl	%edi, %r14d
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$113, %eax
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$86, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_getprogname
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_errx
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_7:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_caph_limit_stdio
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	leaq	(%rbx,%r15,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %r15d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.10:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_5:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_37
LBB0_13:
	movl	%r14d, %ebx
	subl	%r15d, %ebx
	leal	(,%rbx,4), %edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_15:
	testl	%ebx, %ebx
	jle	LBB0_23
## %bb.16:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r15,%r13,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	je	LBB0_22
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13,8), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, (%r12,%r13,4)
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_CAPH_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_caph_limit_stream
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_21
LBB0_22:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	jns	LBB0_25
## %bb.24:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_25:
	testl	%ebx, %ebx
	jle	LBB0_37
## %bb.26:
	movl	%ebx, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rdi
	callq	_fclose
LBB0_36:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_37
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15,4), %edi
	testl	%edi, %edi
	js	LBB0_36
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	L_.str.7(%rip), %rsi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rax, %rbx
	cmpl	%r14d, -72(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warn
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_36
LBB0_32:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_scan
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_35
LBB0_37:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qV"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"usage: %s [-q] [-V] [file...]"

	.comm	_optind,8,3                     ## @optind
L_.str.2:                               ## @.str.2
	.asciz	"unable to limit stdio"

L_.str.3:                               ## @.str.3
	.asciz	"unable to allocate fds array"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_CAPH_READ,4,2                  ## @CAPH_READ
L_.str.5:                               ## @.str.5
	.asciz	"unable to limit fcntls/rights for %s"

L_.str.6:                               ## @.str.6
	.asciz	"unable to enter capability mode"

L_.str.7:                               ## @.str.7
	.asciz	"r"

.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	x22, x1
	mov	x19, x0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
Lloh0:
	adrp	x20, _EXIT_SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EXIT_SUCCESS@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x27, _EXIT_FAILURE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _EXIT_FAILURE@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #113
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #86
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w25, [x27]
	bl	_getprogname
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	bl	_errx
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_1
LBB0_6:
Lloh8:
	adrp	x8, _optind@GOTPAGE
Lloh9:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh10:
	ldr	x28, [x8]
	add	x26, x22, x28, lsl #3
	bl	_caph_limit_stdio
	tbnz	x0, #63, LBB0_12
; %bb.7:
	cmp	w28, w19
	b.ne	LBB0_13
LBB0_8:
	mov	w0, #4
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x27]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_10:
Lloh13:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	w25, #1
	b	LBB0_23
LBB0_11:
	ldr	w21, [x20]
	b	LBB0_35
LBB0_12:
	ldr	w0, [x27]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
	cmp	w28, w19
	b.eq	LBB0_8
LBB0_13:
	sub	w25, w19, w28
	lsl	w0, w25, #2
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	w0, [x27]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_15:
	cmp	w25, #1
	b.lt	LBB0_23
; %bb.16:
	mov	x24, #0
Lloh20:
	adrp	x23, _O_RDONLY@GOTPAGE
Lloh21:
	ldr	x23, [x23, _O_RDONLY@GOTPAGEOFF]
Lloh22:
	adrp	x20, _CAPH_READ@GOTPAGE
Lloh23:
	ldr	x20, [x20, _CAPH_READ@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x1, [x26, x24, lsl #3]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	ldr	w21, [x27]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x24, x24, #1
	cmp	x25, x24
	b.eq	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x26, x24, lsl #3]
	ldr	w1, [x23]
	bl	_open
	str	w0, [x22, x24, lsl #2]
	tbnz	w0, #31, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x20]
	bl	_caph_limit_stream
	tbz	x0, #63, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x27]
	ldr	x8, [x26, x24, lsl #3]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
	b	LBB0_18
LBB0_22:
Lloh28:
	adrp	x20, _EXIT_SUCCESS@GOTPAGE
Lloh29:
	ldr	x20, [x20, _EXIT_SUCCESS@GOTPAGEOFF]
LBB0_23:
	bl	_caph_enter
	tbz	x0, #63, LBB0_25
; %bb.24:
	ldr	w0, [x27]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_25:
	cmp	w25, #1
	b.lt	LBB0_35
; %bb.26:
	mov	w24, w25
Lloh32:
	adrp	x23, l_.str.7@PAGE
Lloh33:
	add	x23, x23, l_.str.7@PAGEOFF
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x1, [x26]
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warn
	ldr	w21, [x27]
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x26, x26, #8
	add	x22, x22, #4
	subs	x24, x24, #1
	b.eq	LBB0_35
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	tbnz	w0, #31, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x1, x23
	bl	_fdopen
	cbz	x0, LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x25, x0
	cmp	w28, w19
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	x1, #0
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x1, [x26]
LBB0_34:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x0, x25
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_scan
	ldr	w8, [x20]
	ldr	w9, [x27]
	cmp	w0, w8
	csel	w21, w21, w9, eq
	mov	x0, x25
	bl	_fclose
	b	LBB0_28
LBB0_35:
	mov	x0, x21
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qV"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"usage: %s [-q] [-V] [file...]"

	.comm	_optind,8,3                     ; @optind
l_.str.2:                               ; @.str.2
	.asciz	"unable to limit stdio"

l_.str.3:                               ; @.str.3
	.asciz	"unable to allocate fds array"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_CAPH_READ,4,2                  ; @CAPH_READ
l_.str.5:                               ; @.str.5
	.asciz	"unable to limit fcntls/rights for %s"

l_.str.6:                               ; @.str.6
	.asciz	"unable to enter capability mode"

l_.str.7:                               ; @.str.7
	.asciz	"r"

.subsections_via_symbols
