	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jne	LBB0_3
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %r14
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%rsi), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	testq	%r14, %r14
	je	LBB0_18
LBB0_7:
	movq	%r14, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movabsq	$4294968832, %r15               ## imm = 0x100000600
	movq	_stdout@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_isgraph
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$32, %ebx
	ja	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %eax
	btq	%rax, %r15
	jae	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %esi
	movsbl	%bl, %edi
	callq	_fputc
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_9
LBB0_14:
	cmpl	$10, %ebx
	je	LBB0_16
## %bb.15:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$10, %edi
	callq	_fputc
LBB0_16:
	movq	%r14, %rdi
	callq	_fclose
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_5:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_7
LBB0_18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: cleantxt <file>\n"

L_.str.1:                               ## @.str.1
	.asciz	"-"

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

	.comm	_stdin,8,3                      ## @stdin
L_.str.3:                               ## @.str.3
	.asciz	"ERROR: fail to open the input file.\n"

	.comm	_stdout,4,2                     ## @stdout
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_2:
	mov	x19, x1
Lloh5:
	adrp	x8, _EOF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	x0, [x1, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.3:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbz	x19, LBB0_15
LBB0_4:
	mov	x0, x19
	bl	_feof
	cbnz	w0, LBB0_11
; %bb.5:
	mov	w21, #1
	mov	x22, #1536
	movk	x22, #1, lsl #32
Lloh12:
	adrp	x23, _stdout@GOTPAGE
Lloh13:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fgetc
	mov	x20, x0
	bl	_isgraph
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w20, #32
	b.hi	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, w20
	lsl	x8, x21, x8
	tst	x8, x22
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x23]
	sxtb	w0, w20
	bl	_fputc
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_feof
	cbz	w0, LBB0_6
LBB0_11:
	cmp	w20, #10
	b.eq	LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _stdout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #10
	bl	_fputc
LBB0_13:
	mov	x0, x19
	bl	_fclose
	mov	w0, #0
	b	LBB0_17
LBB0_14:
Lloh17:
	adrp	x8, _stdin@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh19:
	ldr	x19, [x8]
	cbnz	x19, LBB0_4
LBB0_15:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_fprintf
	mov	w0, #1
LBB0_17:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: cleantxt <file>\n"

l_.str.1:                               ; @.str.1
	.asciz	"-"

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

	.comm	_stdin,8,3                      ; @stdin
l_.str.3:                               ; @.str.3
	.asciz	"ERROR: fail to open the input file.\n"

	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
