	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function processinout
_processinout:                          ## @processinout
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_filename@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_linefile@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	_input@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rax
	movq	_filename@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_linefile@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fbinmode
	movq	_input@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.6:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_7
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_astrcat
	movq	_tempname@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movl	-40(%rbp), %esi
	movq	%rax, %rdi
	callq	_mktempmode
	movq	_output@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	xorl	%eax, %eax
	callq	_process
	movq	_backext@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_astrcat
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_rename
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	movl	$2, %edi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	movq	%rbx, %rdi
	callq	_free
	cmpq	$0, (%r12)
	sete	%al
	jmp	LBB0_17
LBB0_25:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fbinmode
	movq	_output@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_process                        ## TAILCALL
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	_output@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	xorl	%eax, %eax
	callq	_process
	jmp	LBB0_24
LBB0_13:
	movb	$1, %al
LBB0_17:
	movq	_altered@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	(%r15), %rdi
	jne	LBB0_21
## %bb.18:
	testb	%al, %al
	je	LBB0_21
## %bb.19:
	callq	_remove
	testq	%rax, %rax
	jns	LBB0_23
## %bb.20:
	movq	(%r15), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_warn
	jmp	LBB0_23
LBB0_21:
	movq	%r14, %rsi
	callq	_replace
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	movq	(%r15), %rdx
	leaq	L_.str.7(%rip), %rsi
	movl	$2, %edi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_23:
	movq	(%r15), %rdi
	callq	_free
	movq	$0, (%r15)
LBB0_24:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

L_.str.1:                               ## @.str.1
	.asciz	"[stdin]"

	.comm	_filename,8,3                   ## @filename
	.comm	_linefile,8,3                   ## @linefile
	.comm	_stdin,4,2                      ## @stdin
	.comm	_input,8,3                      ## @input
L_.str.2:                               ## @.str.2
	.asciz	"rb"

L_.str.3:                               ## @.str.3
	.asciz	"can't open %s"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_output,8,3                     ## @output
L_.str.4:                               ## @.str.4
	.asciz	"wb"

L_.str.5:                               ## @.str.5
	.asciz	"can't create %s"

L_.str.6:                               ## @.str.6
	.asciz	".XXXXXX"

	.comm	_tempname,8,3                   ## @tempname
	.comm	_backext,8,3                    ## @backext
L_.str.7:                               ## @.str.7
	.asciz	"can't rename \"%s\" to \"%s\""

	.comm	_altered,4,2                    ## @altered
L_.str.8:                               ## @.str.8
	.asciz	"can't remove \"%s\""

	.no_dead_strip	_processinout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function processinout
_processinout:                          ; @processinout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _filename@GOTPAGE
Lloh3:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh4:
	str	x20, [x8]
Lloh5:
	adrp	x8, _linefile@GOTPAGE
Lloh6:
	ldr	x8, [x8, _linefile@GOTPAGEOFF]
Lloh7:
	str	x20, [x8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fopen
Lloh10:
	adrp	x8, _input@GOTPAGE
Lloh11:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	cbnz	x0, LBB0_5
; %bb.3:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_err
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _filename@GOTPAGE
Lloh16:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh19:
	str	x9, [x8]
Lloh20:
	adrp	x8, _linefile@GOTPAGE
Lloh21:
	ldr	x8, [x8, _linefile@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
Lloh23:
	adrp	x8, _stdin@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_fbinmode
Lloh26:
	adrp	x8, _input@GOTPAGE
Lloh27:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh28:
	str	x0, [x8]
LBB0_5:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbnz	x0, #63, LBB0_14
; %bb.7:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_astrcat
Lloh33:
	adrp	x21, _tempname@GOTPAGE
Lloh34:
	ldr	x21, [x21, _tempname@GOTPAGEOFF]
	str	x0, [x21]
	ldr	w1, [sp, #8]
	bl	_mktempmode
Lloh35:
	adrp	x8, _output@GOTPAGE
Lloh36:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh37:
	str	x0, [x8]
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x2, [x21]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_9:
	bl	_process
Lloh40:
	adrp	x22, _backext@GOTPAGE
Lloh41:
	ldr	x22, [x22, _backext@GOTPAGEOFF]
	ldr	x1, [x22]
	cbz	x1, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_astrcat
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rename
	tbz	x0, #63, LBB0_12
; %bb.11:
	str	x20, [sp]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_err
LBB0_12:
	mov	x0, x20
	bl	_free
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, eq
	b	LBB0_18
LBB0_13:
Lloh44:
	adrp	x8, _stdout@GOTPAGE
Lloh45:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_fbinmode
Lloh47:
	adrp	x8, _output@GOTPAGE
Lloh48:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh49:
	str	x0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_process
LBB0_14:
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fopen
Lloh52:
	adrp	x8, _output@GOTPAGE
Lloh53:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh54:
	str	x0, [x8]
	cbnz	x0, LBB0_16
; %bb.15:
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_err
LBB0_16:
	bl	_process
	b	LBB0_25
LBB0_17:
	mov	w8, #1
LBB0_18:
Lloh57:
	adrp	x9, _altered@GOTPAGE
Lloh58:
	ldr	x9, [x9, _altered@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	ldr	x0, [x21]
	cbnz	w9, LBB0_22
; %bb.19:
	cbz	w8, LBB0_22
; %bb.20:
	bl	_remove
	tbz	x0, #63, LBB0_24
; %bb.21:
	ldr	x1, [x21]
Lloh60:
	adrp	x0, l_.str.8@PAGE
Lloh61:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warn
	b	LBB0_24
LBB0_22:
	mov	x1, x19
	bl	_replace
	tbz	x0, #63, LBB0_24
; %bb.23:
	ldr	x2, [x21]
	str	x19, [sp]
Lloh62:
	adrp	x1, l_.str.7@PAGE
Lloh63:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_24:
	ldr	x0, [x21]
	bl	_free
	str	xzr, [x21]
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

l_.str.1:                               ; @.str.1
	.asciz	"[stdin]"

	.comm	_filename,8,3                   ; @filename
	.comm	_linefile,8,3                   ; @linefile
	.comm	_stdin,4,2                      ; @stdin
	.comm	_input,8,3                      ; @input
l_.str.2:                               ; @.str.2
	.asciz	"rb"

l_.str.3:                               ; @.str.3
	.asciz	"can't open %s"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_output,8,3                     ; @output
l_.str.4:                               ; @.str.4
	.asciz	"wb"

l_.str.5:                               ; @.str.5
	.asciz	"can't create %s"

l_.str.6:                               ; @.str.6
	.asciz	".XXXXXX"

	.comm	_tempname,8,3                   ; @tempname
	.comm	_backext,8,3                    ; @backext
l_.str.7:                               ; @.str.7
	.asciz	"can't rename \"%s\" to \"%s\""

	.comm	_altered,4,2                    ; @altered
l_.str.8:                               ; @.str.8
	.asciz	"can't remove \"%s\""

	.no_dead_strip	_processinout
.subsections_via_symbols
