	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_85                      ## -- Begin function decode_85
	.p2align	4, 0x90
_decode_85:                             ## @decode_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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_prep_base85
	leal	3(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$2, %eax
	leal	(%rax,%rax,4), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_say2
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.1:
	movq	_de85@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$5, %r15
	subl	%eax, %r14d
	je	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	(%r12), %rdx
	movzbl	(%r15), %eax
	movl	(%rdx,%rax,4), %r8d
	testl	%r8d, %r8d
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r15), %eax
	movl	(%rdx,%rax,4), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	2(%r15), %eax
	movl	(%rdx,%rax,4), %ebx
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	3(%r15), %eax
	movl	(%rdx,%rax,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	4(%r15), %esi
	movl	(%rdx,%rsi,4), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	imull	$85, %r8d, %edx
	addl	%edi, %edx
	imull	$85, %edx, %edx
	addl	%ebx, %edx
	imull	$85, %edx, %edx
	addl	%edx, %ecx
	addl	$-621436, %ecx                  ## imm = 0xFFF68484
	cmpl	$50529027, %ecx                 ## imm = 0x3030303
	ja	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edx
	negl	%edx
	imull	$85, %ecx, %ecx
	cmpl	%edx, %ecx
	ja	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rcx,%rax), %ebx
	decl	%ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_say1
	cmpl	$4, %r14d
	movl	$4, %eax
	cmovll	%r14d, %eax
	leal	-1(%rax), %edx
	testb	$7, %al
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	andl	$7, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	roll	$8, %ebx
	movb	%bl, (%r13,%rsi)
	incq	%rsi
	cmpl	%esi, %ecx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rsi, %r13
	movl	%eax, %ecx
	subl	%esi, %ecx
	cmpl	$7, %edx
	jae	LBB0_19
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	cmpl	$7, %edx
	jb	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	shrl	$24, %edx
	movb	%dl, (%r13)
	movl	%ebx, %esi
	roll	$16, %esi
	movb	%sil, 1(%r13)
	movl	%esi, %edi
	shrl	$24, %edi
	movb	%dil, 2(%r13)
	movb	%bl, 3(%r13)
	movb	%dl, 4(%r13)
	movb	%sil, 5(%r13)
	movb	%dil, 6(%r13)
	movb	%bl, 7(%r13)
	addq	$8, %r13
	addl	$-8, %ecx
	jne	LBB0_19
	jmp	LBB0_2
LBB0_20:
	leaq	L_.str.4(%rip), %rdi
	callq	_say
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movzbl	%al, %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decode 85 <%.*s>"

	.comm	_de85,8,3                       ## @de85
L_.str.1:                               ## @.str.1
	.asciz	"invalid base85 alphabet %c"

L_.str.2:                               ## @.str.2
	.asciz	"invalid base85 sequence %.5s"

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

L_.str.4:                               ## @.str.4
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_85                      ; -- Begin function decode_85
	.p2align	2
_decode_85:                             ; @decode_85
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x21, x0
	bl	_prep_base85
	add	w8, w20, #3
	cmp	w20, #0
	csel	w8, w8, w20, lt
	and	w9, w8, #0xfffffffc
	add	w1, w9, w8, asr #2
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_say2
	cbz	w20, LBB0_12
; %bb.1:
Lloh2:
	adrp	x24, _de85@GOTPAGE
Lloh3:
	ldr	x24, [x24, _de85@GOTPAGEOFF]
	mov	w25, #85
	mov	w26, #33924
	movk	w26, #65526, lsl #16
	mov	w27, #50529027
	mov	w28, #4
Lloh4:
	adrp	x22, l_.str.3@PAGE
Lloh5:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x9, [x24]
	ldrb	w10, [x19]
	ldr	w8, [x9, x10, lsl #2]
	cmp	w8, #0
	b.le	LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w11, [x19, #1]
	ldr	w10, [x9, x11, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w12, [x19, #2]
	ldr	w11, [x9, x12, lsl #2]
	cmp	w11, #1
	b.lt	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w13, [x19, #3]
	ldr	w12, [x9, x13, lsl #2]
	cmp	w12, #1
	b.lt	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w13, [x19, #4]
	ldr	w9, [x9, x13, lsl #2]
	cmp	w9, #0
	b.le	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	madd	w8, w8, w25, w10
	madd	w8, w8, w25, w11
	madd	w8, w8, w25, w12
	add	w8, w8, w26
	cmp	w8, w27
	b.hi	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	w8, w8, w25
	neg	w10, w9
	cmp	w8, w10
	b.hi	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #5
	add	w8, w8, w9
	sub	w23, w8, #1
	mov	x0, x22
	mov	x1, x23
	bl	_say1
	cmp	w20, #4
	csel	w8, w20, w28, lt
	mov	x9, x8
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ror	w23, w23, #24
	strb	w23, [x21], #1
	subs	w9, w9, #1
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	subs	w20, w20, w8
	b.ne	LBB0_2
LBB0_12:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_say
	mov	w0, #0
	b	LBB0_21
LBB0_13:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_14:
	mov	x10, x11
	b	LBB0_17
LBB0_15:
	mov	x10, x12
	b	LBB0_17
LBB0_16:
	mov	x10, x13
LBB0_17:
	mov	w8, w10
	str	x8, [sp]
	b	LBB0_19
LBB0_18:
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
	str	x13, [sp]
LBB0_19:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_20:
	bl	_error
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decode 85 <%.*s>"

	.comm	_de85,8,3                       ; @de85
l_.str.1:                               ; @.str.1
	.asciz	"invalid base85 alphabet %c"

l_.str.2:                               ; @.str.2
	.asciz	"invalid base85 sequence %.5s"

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

l_.str.4:                               ; @.str.4
	.asciz	"\n"

.subsections_via_symbols
