	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode
_encode:                                ## @encode
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_raw@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_av@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_output@GOTPCREL(%rip), %r12
	movq	_EOF@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %esi
	movl	$10, %edi
	callq	_fputc
	cmpq	(%r15), %rax
	je	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-128(%rbp), %rdi
	movl	$1, %esi
	movl	$45, %edx
	callq	_fread
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movsbl	%bl, %edi
	callq	_ENC
	movl	(%r12), %esi
	movsbl	%al, %edi
	callq	_fputc
	cmpq	(%r15), %rax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-126(%rbp), %r14
	movl	%ebx, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subl	$3, %r13d
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movb	$0, (%r14)
	cmpl	$2, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movb	$0, -1(%r14)
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movzbl	-2(%r14), %eax
	sarb	$2, %al
	movsbl	%al, %edi
	callq	_ENC
	movl	(%r12), %esi
	movsbl	%al, %edi
	callq	_fputc
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movzbl	-2(%r14), %eax
	movzbl	-1(%r14), %ecx
	shrb	$4, %cl
	shlb	$4, %al
	orb	%cl, %al
	andb	$63, %al
	movzbl	%al, %edi
	callq	_ENC
	movl	(%r12), %esi
	movsbl	%al, %edi
	callq	_fputc
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movzbl	-1(%r14), %eax
	movzbl	(%r14), %ecx
	shrb	$6, %cl
	shlb	$2, %al
	orb	%cl, %al
	andb	$63, %al
	movzbl	%al, %edi
	callq	_ENC
	movl	(%r12), %esi
	movsbl	%al, %edi
	callq	_fputc
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movzbl	(%r14), %edi
	andl	$63, %edi
	callq	_ENC
	movl	(%r12), %esi
	movsbl	%al, %edi
	callq	_fputc
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	addq	$3, %r14
	cmpl	$3, %ebx
	movl	%r13d, %ebx
	ja	LBB0_7
	jmp	LBB0_15
LBB0_16:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_18:
	movq	_raw@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_20
## %bb.19:
	movl	(%r12), %ebx
	xorl	%edi, %edi
	callq	_ENC
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_raw,4,2                        ## @raw
	.comm	_output,4,2                     ## @output
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"begin %o %s\n"

	.comm	_mode,4,2                       ## @mode
	.comm	_av,8,3                         ## @av
	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,8,3                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"read error"

L_.str.2:                               ## @.str.2
	.asciz	"%c\nend\n"

	.no_dead_strip	_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode
_encode:                                ; @encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, _raw@GOTPAGE
Lloh4:
	ldr	x21, [x21, _raw@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh5:
	adrp	x20, _output@GOTPAGE
Lloh6:
	ldr	x20, [x20, _output@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _mode@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _av@GOTPAGE
Lloh11:
	ldr	x8, [x8, _av@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	add	x8, sp, #8
	add	x22, x8, #2
Lloh15:
	adrp	x23, _stdin@GOTPAGE
Lloh16:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
Lloh17:
	adrp	x24, _EOF@GOTPAGE
Lloh18:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20]
	mov	w0, #10
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #45
	bl	_fread
	cbz	w0, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x0
	sxtb	w0, w0
	bl	_ENC
	ldr	w1, [x20]
	sxtb	w0, w0
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x22
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w19, #2
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	strb	wzr, [x25]
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	sturb	wzr, [x25, #-1]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldursb	w8, [x25, #-2]
	asr	w0, w8, #2
	bl	_ENC
	ldr	w1, [x20]
	sxtb	w0, w0
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldurb	w8, [x25, #-2]
	ldurb	w9, [x25, #-1]
	lsr	w0, w9, #4
	bfi	w0, w8, #4, #2
	bl	_ENC
	ldr	w1, [x20]
	sxtb	w0, w0
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldurb	w8, [x25, #-1]
	ldrb	w9, [x25]
	lsr	w0, w9, #6
	bfi	w0, w8, #2, #4
	bl	_ENC
	ldr	w1, [x20]
	sxtb	w0, w0
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x25], #3
	and	w0, w8, #0x3f
	bl	_ENC
	ldr	w1, [x20]
	sxtb	w0, w0
	bl	_fputc
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	sub	w8, w19, #3
	cmp	w19, #3
	mov	x19, x8
	b.hi	LBB0_8
	b	LBB0_3
LBB0_16:
	ldr	w0, [x23]
	bl	_ferror
	cbz	x0, LBB0_18
; %bb.17:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_18:
	ldr	w8, [x21]
	cbnz	w8, LBB0_20
; %bb.19:
	ldr	w19, [x20]
	mov	w0, #0
	bl	_ENC
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_20:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_raw,4,2                        ; @raw
	.comm	_output,4,2                     ; @output
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"begin %o %s\n"

	.comm	_mode,4,2                       ; @mode
	.comm	_av,8,3                         ; @av
	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,8,3                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"read error"

l_.str.2:                               ; @.str.2
	.asciz	"%c\nend\n"

	.no_dead_strip	_encode
.subsections_via_symbols
