	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encode_85                      ## -- Begin function encode_85
	.p2align	4, 0x90
_encode_85:                             ## @encode_85
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_say
	testl	%r13d, %r13d
	jne	LBB0_1
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_say
	movb	$0, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_say1
	movl	%ebx, %eax
	movq	%rax, %rcx
	movl	$3233857729, %edi               ## imm = 0xC0C0C0C1
	imulq	%rdi, %rcx
	shrq	$38, %rcx
	imull	$85, %ecx, %edx
	movl	%ebx, %esi
	subl	%edx, %esi
	movq	_en85@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movzbl	(%rdx,%rsi), %edx
	movb	%dl, 4(%r12)
	movq	%rcx, %rdx
	imulq	%rdi, %rdx
	shrq	$38, %rdx
	imull	$85, %edx, %edx
	subl	%edx, %ecx
	movq	%rax, %rdx
	movl	$2434904643, %esi               ## imm = 0x9121B243
	imulq	%rsi, %rdx
	shrq	$44, %rdx
	movq	(%r8), %rsi
	movzbl	(%rsi,%rcx), %ecx
	movb	%cl, 3(%r12)
	movq	%rdx, %rcx
	imulq	%rdi, %rcx
	shrq	$38, %rcx
	imull	$85, %ecx, %ecx
	subl	%ecx, %edx
	imulq	$1226621309, %rax, %rcx         ## imm = 0x491CC17D
	movl	$3666679933, %esi               ## imm = 0xDA8D187D
	imulq	%rsi, %rax
	shrq	$51, %rax
	movq	(%r8), %rsi
	movzbl	(%rsi,%rdx), %edx
	movb	%dl, 2(%r12)
	imull	$49345, %eax, %edx              ## imm = 0xC0C1
	shrl	$22, %edx
	imull	$85, %edx, %edx
	subl	%edx, %eax
	shrq	$32, %rcx
	subl	%ecx, %ebx
	shrl	%ebx
	addl	%ecx, %ebx
	shrl	$25, %ebx
	movq	(%r8), %rcx
	movzwl	%ax, %eax
	movzbl	(%rcx,%rax), %eax
	movb	%al, 1(%r12)
	movq	(%r8), %rax
	movzbl	(%rax,%rbx), %eax
	movb	%al, (%r12)
	addq	$5, %r12
	movl	%r15d, %r13d
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %ebx
	shll	$24, %ebx
	xorl	%r15d, %r15d
	cmpl	$1, %r13d
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	1(%r14), %eax
	shll	$16, %eax
	orl	%eax, %ebx
	cmpl	$2, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	2(%r14), %eax
	shll	$8, %eax
	orl	%eax, %ebx
	cmpl	$3, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$3, %r14
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	3(%r14), %eax
	addq	$4, %r14
	orl	%eax, %ebx
	addl	$-4, %r13d
	movl	%r13d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encode 85"

L_.str.1:                               ## @.str.1
	.asciz	" %08x"

	.comm	_en85,8,3                       ## @en85
L_.str.2:                               ## @.str.2
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encode_85                      ; -- Begin function encode_85
	.p2align	2
_encode_85:                             ; @encode_85
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_say
	cbz	w20, LBB0_10
; %bb.1:
	mov	w24, #49345
	movk	w24, #49344, lsl #16
	mov	w25, #85
Lloh2:
	adrp	x26, _en85@GOTPAGE
Lloh3:
	ldr	x26, [x26, _en85@GOTPAGEOFF]
	mov	w27, #49345
	mov	w28, #49533
	movk	w28, #18716, lsl #16
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	mov	x21, x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_say1
	umull	x8, w23, w24
	lsr	x8, x8, #38
	msub	w9, w8, w25, w23
	ldr	x10, [x26]
	ldrb	w9, [x10, w9, uxtw]
	strb	w9, [x19, #4]
	mul	x9, x8, x24
	lsr	x9, x9, #38
	msub	w8, w9, w25, w8
	mov	w9, #45635
	movk	w9, #37153, lsl #16
	umull	x9, w23, w9
	lsr	x9, x9, #44
	ldr	x10, [x26]
	ldrb	w8, [x10, w8, uxtw]
	strb	w8, [x19, #3]
	mul	x8, x9, x24
	lsr	x8, x8, #38
	msub	w8, w8, w25, w9
	mov	w9, #6269
	movk	w9, #55949, lsl #16
	umull	x9, w23, w9
	lsr	x9, x9, #51
	ldr	x10, [x26]
	ldrb	w8, [x10, w8, uxtw]
	strb	w8, [x19, #2]
	mul	w8, w9, w27
	lsr	w8, w8, #22
	msub	w8, w8, w25, w9
	umull	x9, w23, w28
	lsr	x9, x9, #32
	sub	w10, w23, w9
	add	w9, w9, w10, lsr #1
	lsr	w9, w9, #25
	ldr	x10, [x26]
	and	x8, x8, #0xffff
	ldrb	w8, [x10, x8]
	strb	w8, [x19, #1]
	ldr	x8, [x26]
	ldrb	w8, [x8, w9, uxtw]
	strb	w8, [x19], #5
	cbz	w20, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x21
	ldrb	w9, [x8], #1
	lsl	w23, w9, #24
	cmp	w20, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21, #1]
	orr	w23, w23, w8, lsl #16
	cmp	w20, #2
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	add	x21, x21, #2
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21, #2]
	orr	w23, w23, w8, lsl #8
	cmp	w20, #3
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w20, #0
	add	x21, x21, #3
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21, #3]
	add	x21, x21, #4
	orr	w23, w23, w8
	sub	w20, w20, #4
	b	LBB0_3
LBB0_10:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_say
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encode 85"

l_.str.1:                               ; @.str.1
	.asciz	" %08x"

	.comm	_en85,8,3                       ; @en85
l_.str.2:                               ; @.str.2
	.asciz	"\n"

.subsections_via_symbols
