	.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
	cmpl	$1, %edi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$1, %ebx
	movq	_length@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpl	%ebx, %r15d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	cmpb	$45, (%rdi)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$108, 1(%rdi)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rdi
	callq	_atoi
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %eax
	movq	%rax, (%r12)
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_getchar
	movq	_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_8
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %ebx
	movq	_lines@GOTPCREL(%rip), %r15
	movq	_stdout@GOTPCREL(%rip), %r12
	movq	_length@GOTPCREL(%rip), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%r15)
	movl	(%r12), %edi
	callq	_fflush
	xorl	%eax, %eax
	callq	_getpid
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kill
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_getchar
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$25, %ebx
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$1, %eax
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ungetc
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	testb	$-128, %bl
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$12, %ebx
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$10, %ebx
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	(%r15)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_koi2alt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$127, %ebx
	movl	(%rax,%rbx,4), %edi
	movl	(%r12), %esi
	callq	_fputs
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rax
	movq	%rax, (%r15)
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	callq	_putchar
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jl	LBB0_12
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%r15)
	movl	(%r12), %edi
	callq	_fflush
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_length,8,3                     ## @length
	.comm	_EOF,4,2                        ## @EOF
	.comm	_lines,8,3                      ## @lines
	.comm	_stdout,4,2                     ## @stdout
	.comm	_SIGSTOP,4,2                    ## @SIGSTOP
	.comm	_stdin,4,2                      ## @stdin
	.comm	_koi2alt,8,3                    ## @koi2alt
.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	subs	w19, w0, #1
	b.eq	LBB0_7
; %bb.1:
	add	x20, x1, #8
Lloh0:
	adrp	x21, _length@GOTPAGE
Lloh1:
	ldr	x21, [x21, _length@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #8
	subs	w19, w19, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldrb	w9, [x8]
	cmp	w9, #45
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x8, #1]
	cmp	w9, #108
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x8, #2
	bl	_atoi
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w0
	str	x8, [x21]
	b	LBB0_2
LBB0_7:
	bl	_getchar
Lloh2:
	adrp	x20, _EOF@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EOF@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x19, x0
Lloh4:
	adrp	x21, _lines@GOTPAGE
Lloh5:
	ldr	x21, [x21, _lines@GOTPAGEOFF]
Lloh6:
	adrp	x22, _stdout@GOTPAGE
Lloh7:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
Lloh8:
	adrp	x23, _SIGSTOP@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SIGSTOP@GOTPAGEOFF]
Lloh10:
	adrp	x24, _stdin@GOTPAGE
Lloh11:
	ldr	x24, [x24, _stdin@GOTPAGEOFF]
Lloh12:
	adrp	x25, _length@GOTPAGE
Lloh13:
	ldr	x25, [x25, _length@GOTPAGEOFF]
Lloh14:
	adrp	x26, _koi2alt@GOTPAGE
Lloh15:
	ldr	x26, [x26, _koi2alt@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x21]
	ldr	w0, [x22]
	bl	_fflush
	bl	_getpid
	ldr	w1, [x23]
	bl	_kill
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_getchar
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	w19, #25
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_getchar
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x24]
	bl	_ungetc
	b	LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	tbnz	w19, #7, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w19, #12
	b.eq	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w19, #10
	b.ne	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x21]
	add	x8, x8, #1
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x26]
	and	w9, w19, #0x7f
	ldr	w0, [x8, w9, uxtw #2]
	ldr	w1, [x22]
	bl	_fputs
	b	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x25]
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x8, [x21]
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_putchar
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_11
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x21]
	ldr	w0, [x22]
	bl	_fflush
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_length,8,3                     ; @length
	.comm	_EOF,4,2                        ; @EOF
	.comm	_lines,8,3                      ; @lines
	.comm	_stdout,4,2                     ; @stdout
	.comm	_SIGSTOP,4,2                    ; @SIGSTOP
	.comm	_stdin,4,2                      ; @stdin
	.comm	_koi2alt,8,3                    ; @koi2alt
.subsections_via_symbols
