	.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, %r15
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rbx
	movq	_readstd@GOTPCREL(%rip), %r12
	movq	_vflg@GOTPCREL(%rip), %r13
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$98, %eax
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$99, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$118, %eax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	(%r13)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$45, %eax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	(%r12)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_cflg@GOTPCREL(%rip), %rax
	incq	(%rax)
	jmp	LBB0_1
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_SIGINT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIG_DFL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	movq	_onintr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
LBB0_12:
	subl	%r13d, %r14d
	movq	_cflg@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.13:
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.14:
	cmpq	$0, (%r12)
	jne	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	callq	_inithash
	cmpq	$0, (%r12)
	je	LBB0_22
	jmp	LBB0_23
LBB0_16:
	movq	__PATH_TMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strdup
	movq	_strings@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movq	(%rbx), %rax
LBB0_18:
	movq	%rax, %rdi
	callq	_mkstemp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_20:
	movl	%ebx, %edi
	callq	_close
	cmpq	$0, (%r12)
	jne	LBB0_23
LBB0_22:
	testl	%r14d, %r14d
	jle	LBB0_33
LBB0_23:
	leaq	(%r15,%r13,8), %r13
	leaq	L_.str.3(%rip), %rbx
	leaq	L_.str.4(%rip), %r15
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	$0, (%r12)
	testl	%r14d, %r14d
	jle	LBB0_33
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_freopen
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_29
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	$1, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_err
	cmpq	$0, (%r12)
	jne	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	(%r13), %rdi
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	callq	_freopen
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%r13), %rdx
	movl	$2, %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%rbx, %rdi
	callq	_process
	cmpq	$0, (%r12)
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=1
	decl	%r14d
	addq	$8, %r13
	testl	%r14d, %r14d
	jg	LBB0_24
LBB0_33:
	xorl	%eax, %eax
	callq	_flushsh
	movq	_cflg@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_xsdotc
LBB0_35:
	movq	_strings@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpb	$47, (%rdi)
	jne	LBB0_37
## %bb.36:
	callq	_unlink
	movl	%eax, %edi
	callq	_ignore
LBB0_37:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-cv"

	.comm	_readstd,8,3                    ## @readstd
	.comm	_cflg,8,3                       ## @cflg
	.comm	_vflg,4,2                       ## @vflg
	.comm	_optind,8,3                     ## @optind
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SIG_DFL,8,3                    ## @SIG_DFL
	.comm	_onintr,4,2                     ## @onintr
	.comm	__PATH_TMP,4,2                  ## @_PATH_TMP
	.comm	_strings,8,3                    ## @strings
L_.str.1:                               ## @.str.1
	.asciz	"strdup() failed"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to create temporary file"

L_.str.3:                               ## @.str.3
	.asciz	"x.c"

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

	.comm	_stdout,4,2                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"r"

	.comm	_stdin,4,2                      ## @stdin
L_.str.6:                               ## @.str.6
	.asciz	"%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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _readstd@GOTPAGE
Lloh1:
	ldr	x24, [x24, _readstd@GOTPAGEOFF]
Lloh2:
	adrp	x23, _cflg@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cflg@GOTPAGEOFF]
Lloh4:
	adrp	x22, _vflg@GOTPAGE
Lloh5:
	ldr	x22, [x22, _vflg@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #98
	b.le	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #99
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #118
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #45
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x24]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	b	LBB0_3
LBB0_10:
Lloh8:
	adrp	x8, _optind@GOTPAGE
Lloh9:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh10:
	ldr	x21, [x8]
Lloh11:
	adrp	x22, _SIGINT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh13:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_signal
Lloh16:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	w0, [x22]
Lloh19:
	adrp	x8, _onintr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _onintr@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_signal
LBB0_12:
	sub	w26, w20, w21
	ldr	x8, [x23]
Lloh22:
	adrp	x20, _strings@GOTPAGE
Lloh23:
	ldr	x20, [x20, _strings@GOTPAGEOFF]
	cbnz	x8, LBB0_19
; %bb.13:
	ldr	x8, [x24]
	cmp	w26, #0
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_19
; %bb.14:
Lloh24:
	adrp	x8, __PATH_TMP@GOTPAGE
Lloh25:
	ldr	x8, [x8, __PATH_TMP@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strdup
	str	x0, [x20]
	cbnz	x0, LBB0_16
; %bb.15:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x0, [x20]
LBB0_16:
	bl	_mkstemp
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_18:
	mov	x0, x20
	bl	_close
	b	LBB0_20
LBB0_19:
	bl	_inithash
LBB0_20:
	ldr	x8, [x24]
	cmp	x8, #0
	ccmp	w26, #1, #0, eq
	b.lt	LBB0_30
; %bb.21:
	add	x27, x19, x21, lsl #3
Lloh31:
	adrp	x28, _stdout@GOTPAGE
Lloh32:
	ldr	x28, [x28, _stdout@GOTPAGEOFF]
Lloh33:
	adrp	x19, l_.str.3@PAGE
Lloh34:
	add	x19, x19, l_.str.3@PAGEOFF
Lloh35:
	adrp	x20, l_.str.4@PAGE
Lloh36:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh37:
	adrp	x25, _stdin@GOTPAGE
Lloh38:
	ldr	x25, [x25, _stdin@GOTPAGEOFF]
Lloh39:
	adrp	x21, l_.str.5@PAGE
Lloh40:
	add	x21, x21, l_.str.5@PAGEOFF
Lloh41:
	adrp	x22, l_.str.6@PAGE
Lloh42:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	str	xzr, [x24]
	cmp	w26, #0
	b.le	LBB0_30
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_freopen
	cbz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x24]
	cbnz	x8, LBB0_28
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w0, #1
	mov	x1, x19
	bl	_err
	ldr	x8, [x24]
	cbnz	x8, LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x0, [x27]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_freopen
	cbnz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x27]
	str	x8, [sp]
	mov	w0, #2
	mov	x1, x22
	bl	_err
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x19
	bl	_process
	ldr	x8, [x24]
	cbnz	x8, LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w26, w26, #1
	add	x27, x27, #8
	cmp	w26, #0
	b.gt	LBB0_23
LBB0_30:
	bl	_flushsh
	ldr	x8, [x23]
	cbnz	x8, LBB0_32
; %bb.31:
	bl	_xsdotc
LBB0_32:
Lloh43:
	adrp	x8, _strings@GOTPAGE
Lloh44:
	ldr	x8, [x8, _strings@GOTPAGEOFF]
Lloh45:
	ldr	x0, [x8]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_34
; %bb.33:
	bl	_unlink
	bl	_ignore
LBB0_34:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-cv"

	.comm	_readstd,8,3                    ; @readstd
	.comm	_cflg,8,3                       ; @cflg
	.comm	_vflg,4,2                       ; @vflg
	.comm	_optind,8,3                     ; @optind
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SIG_DFL,8,3                    ; @SIG_DFL
	.comm	_onintr,4,2                     ; @onintr
	.comm	__PATH_TMP,4,2                  ; @_PATH_TMP
	.comm	_strings,8,3                    ; @strings
l_.str.1:                               ; @.str.1
	.asciz	"strdup() failed"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to create temporary file"

l_.str.3:                               ; @.str.3
	.asciz	"x.c"

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

	.comm	_stdout,4,2                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"r"

	.comm	_stdin,4,2                      ; @stdin
l_.str.6:                               ; @.str.6
	.asciz	"%s"

.subsections_via_symbols
