	.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, %r12
	movl	%edi, %ebx
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, %r14d
	leaq	L_.str(%rip), %r13
	xorl	%r15d, %r15d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	callq	_usage
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$109, %eax
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$49, %eax
	jne	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$111, %eax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$110, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	callq	_usage
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %r14d
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	testl	%r14d, %r14d
	jg	LBB0_3
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_1
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_17:
	movq	_optind@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_usage
LBB0_19:
	xorl	%eax, %eax
	callq	_caph_cache_catpages
	xorl	%eax, %eax
	callq	_caph_limit_stdio
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_21:
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_23:
	cmpl	$-1, %r14d
	movl	$1, %r12d
	cmovnel	%r14d, %r12d
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	testl	%r15d, %r15d
	je	LBB0_31
LBB0_26:
	testl	%r12d, %r12d
	jle	LBB0_33
## %bb.27:
	leaq	L_.str.7(%rip), %r14
	movl	%r12d, %r15d
	movq	%r13, %rbx
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	decl	%r15d
	je	LBB0_33
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_uuidgen
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_err
	jmp	LBB0_30
LBB0_24:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
	testl	%r15d, %r15d
	jne	LBB0_26
LBB0_31:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_uuidgen
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_33:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_38
## %bb.34:
	leaq	-60(%rbp), %r13
	movq	_uuid_s_ok@GOTPCREL(%rip), %rbx
	leaq	L_.str.9(%rip), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_fprintf
	movq	-48(%rbp), %rdi
	callq	_free
	incl	%r15d
	testl	%r12d, %r12d
	je	LBB0_38
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	movl	%r15d, %edi
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdx
	callq	_uuid_to_string
	movl	-60(%rbp), %eax
	cmpl	(%rbx), %eax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	$1, %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_err
	jmp	LBB0_37
LBB0_38:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	(%rax), %rdi
	je	LBB0_40
## %bb.39:
	callq	_fclose
LBB0_40:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,8,3                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1n:o:"

	.comm	_optarg,4,2                     ## @optarg
L_.str.1:                               ## @.str.1
	.asciz	"multiple output files not allowed"

L_.str.2:                               ## @.str.2
	.asciz	"w"

L_.str.3:                               ## @.str.3
	.asciz	"fopen"

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

L_.str.5:                               ## @.str.5
	.asciz	"Unable to enter capability mode"

L_.str.6:                               ## @.str.6
	.asciz	"malloc()"

L_.str.7:                               ## @.str.7
	.asciz	"uuidgen()"

	.comm	_uuid_s_ok,4,2                  ## @uuid_s_ok
L_.str.8:                               ## @.str.8
	.asciz	"cannot stringify a UUID"

L_.str.9:                               ## @.str.9
	.asciz	"%s\n"

.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	x21, x0
	mov	w28, #0
Lloh0:
	adrp	x27, _stdout@GOTPAGE
Lloh1:
	ldr	x27, [x27, _stdout@GOTPAGEOFF]
	ldr	x19, [x27]
	mov	w20, #-1
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x25, _optarg@GOTPAGE
Lloh5:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh8:
	adrp	x26, l_.str.1@PAGE
Lloh9:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_getopt
	cmp	w0, #109
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #49
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #1
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #111
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w0, #0, #4, eq
	b.gt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	cmp	x19, x8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	mov	x1, x26
	bl	_errx
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	mov	x1, x24
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
	b	LBB0_2
LBB0_16:
Lloh12:
	adrp	x8, _optind@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_18
; %bb.17:
	bl	_usage
LBB0_18:
	bl	_caph_cache_catpages
	bl	_caph_limit_stdio
	tbnz	x0, #63, LBB0_27
; %bb.19:
	bl	_caph_enter
	tbnz	x0, #63, LBB0_28
LBB0_20:
	cmn	w20, #1
	csinc	w20, w20, wzr, ne
	mov	x0, x20
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_29
; %bb.21:
	cbz	w28, LBB0_30
LBB0_22:
	cmp	w20, #1
	b.lt	LBB0_32
; %bb.23:
Lloh15:
	adrp	x22, l_.str.7@PAGE
Lloh16:
	add	x22, x22, l_.str.7@PAGEOFF
	mov	x24, x20
	mov	x23, x21
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x23, #1
	subs	w24, w24, #1
	b.eq	LBB0_32
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #1
	bl	_uuidgen
	cbz	x0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_err
	b	LBB0_24
LBB0_27:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
	bl	_caph_enter
	tbz	x0, #63, LBB0_20
LBB0_28:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_20
LBB0_29:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
	cbnz	w28, LBB0_22
LBB0_30:
	mov	x0, x21
	mov	x1, x20
	bl	_uuidgen
	cbz	x0, LBB0_32
; %bb.31:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_32:
	cbz	w20, LBB0_37
; %bb.33:
Lloh25:
	adrp	x25, _uuid_s_ok@GOTPAGE
Lloh26:
	ldr	x25, [x25, _uuid_s_ok@GOTPAGEOFF]
Lloh27:
	adrp	x22, l_.str.9@PAGE
Lloh28:
	add	x22, x22, l_.str.9@PAGEOFF
	mov	x23, x21
Lloh29:
	adrp	x24, l_.str.8@PAGE
Lloh30:
	add	x24, x24, l_.str.8@PAGEOFF
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_fprintf
	ldr	x0, [sp, #8]
	bl	_free
	add	w23, w23, #1
	cbz	w20, LBB0_37
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x23
	bl	_uuid_to_string
	ldr	w8, [sp, #4]
	ldr	w9, [x25]
	cmp	w8, w9
	b.eq	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	w0, #1
	mov	x1, x24
	bl	_err
	b	LBB0_34
LBB0_37:
	mov	x0, x21
	bl	_free
	ldr	x8, [x27]
	cmp	x19, x8
	b.eq	LBB0_39
; %bb.38:
	mov	x0, x19
	bl	_fclose
LBB0_39:
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,8,3                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1n:o:"

	.comm	_optarg,4,2                     ; @optarg
l_.str.1:                               ; @.str.1
	.asciz	"multiple output files not allowed"

l_.str.2:                               ; @.str.2
	.asciz	"w"

l_.str.3:                               ; @.str.3
	.asciz	"fopen"

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

l_.str.5:                               ; @.str.5
	.asciz	"Unable to enter capability mode"

l_.str.6:                               ; @.str.6
	.asciz	"malloc()"

l_.str.7:                               ; @.str.7
	.asciz	"uuidgen()"

	.comm	_uuid_s_ok,4,2                  ; @uuid_s_ok
l_.str.8:                               ; @.str.8
	.asciz	"cannot stringify a UUID"

l_.str.9:                               ; @.str.9
	.asciz	"%s\n"

.subsections_via_symbols
