	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_altera_shrink                  ## -- Begin function altera_shrink
	.p2align	4, 0x90
_altera_shrink:                         ## @altera_shrink
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	_MATCH_DATA_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_CHAR_BITS@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rsi, -72(%rbp)
	movq	$0, -64(%rbp)
	testq	%r8, %r8
	setg	-41(%rbp)                       ## 1-byte Folded Spill
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	leaq	(,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	___bzero
	movq	(%r14), %rsi
LBB0_2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %r15
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_altera_read_packed
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	(%r14), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	leaq	-64(%rbp), %rcx
	callq	_altera_read_packed
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movq	(%r14), %rcx
	shlq	%cl, %rbx
	orq	%r12, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %rsi
	movq	%r15, %rdx
	leaq	-64(%rbp), %rcx
	movq	%rcx, %r12
	callq	_altera_read_packed
	movq	%rax, %r13
	movq	(%r14), %rsi
	leal	(%rsi,%rsi), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_altera_read_packed
	movq	%rax, %r12
	movq	(%r14), %rsi
	leal	(%rsi,%rsi,2), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r12
	orq	%r13, %r12
	orq	%rbx, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rcx
	callq	_altera_read_packed
	movq	%rax, %r13
	movq	(%r14), %rsi
	leal	(,%rsi,4), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%rbx, %r15
	callq	_altera_read_packed
	movq	%rax, %rbx
	movq	(%r14), %rsi
	leal	(%rsi,%rsi,4), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rbx
	orq	%r13, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rdx
	movq	%r15, %rcx
	callq	_altera_read_packed
	movq	%rax, %r13
	movq	(%r14), %rsi
	leal	(%rsi,%rsi), %eax
	leal	(%rax,%rax,2), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r13
	orq	%rbx, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	orq	%r12, %r13
	movq	%r15, %rdi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_altera_read_packed
	movq	%r14, %rcx
	movq	%rax, %r14
	movl	(%rcx), %eax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r14
	orq	%r13, %r14
	leaq	-1(%r14), %rax
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %al
	subq	%rax, -88(%rbp)                 ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %r12
	leaq	-64(%rbp), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	-72(%rbp), %r12
	leaq	-64(%rbp), %rbx
	jae	LBB0_24
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	$1, %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_altera_read_packed
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %r13
	cmovbq	%r13, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_altera_bits_req
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_altera_read_packed
	movq	%r12, %rdx
	movq	%rax, %r12
	movq	_CHAR_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_altera_read_packed
	testq	%rax, %rax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$1, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %al
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %r13
	jae	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rax
	subq	%r12, %rax
	movq	(%rsi,%rax,8), %rax
	movq	%rax, (%rsi,%r13,8)
	incq	%r13
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_DATA_BLOB_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_23
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r14, %r13
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	_CHAR_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_altera_read_packed
	movq	%rax, (%r15,%r13,8)
	incq	%r13
	movq	_DATA_BLOB_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
	andq	$-2, %rcx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	addq	$-2, %rcx
	je	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r14, %r13
	jb	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	%r14, %r13
	jae	LBB0_19
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r13, %rdx
	subq	%r12, %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	%rdx, (%rsi,%r13,8)
	incq	%r13
	cmpq	%r14, %r13
	jae	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r13, %rdx
	subq	%r12, %rdx
	movq	(%rsi,%rdx,8), %rdx
	movq	%rdx, (%rsi,%r13,8)
	incq	%r13
	jmp	LBB0_19
LBB0_3:
	xorl	%r14d, %r14d
LBB0_24:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATCH_DATA_LENGTH,8,3          ## @MATCH_DATA_LENGTH
	.comm	_CHAR_BITS,8,3                  ## @CHAR_BITS
	.comm	_DATA_BLOB_LENGTH,8,3           ## @DATA_BLOB_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_altera_shrink                  ; -- Begin function altera_shrink
	.p2align	2
_altera_shrink:                         ; @altera_shrink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _MATCH_DATA_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATCH_DATA_LENGTH@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CHAR_BITS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CHAR_BITS@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	ldr	x1, [x23]
	stp	xzr, x1, [sp]
	cmp	x4, #0
	cset	w26, gt
	cbz	x3, LBB0_2
; %bb.1:
	lsl	x1, x22, #3
	mov	x0, x19
	bl	_bzero
	ldr	x1, [x23]
LBB0_2:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	mov	x21, x0
	ldr	x1, [x23]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x1, [x23]
	lsl	x8, x0, x1
	orr	x21, x8, x21
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x1, [x23]
	lsl	x8, x1, #1
	lsl	x8, x0, x8
	orr	x21, x8, x21
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x1, [x23]
	add	x8, x1, x1, lsl #1
	lsl	x8, x0, x8
	orr	x21, x8, x21
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x1, [x23]
	lsl	x8, x1, #2
	lsl	x8, x0, x8
	orr	x21, x8, x21
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x1, [x23]
	add	x8, x1, x1, lsl #2
	lsl	x8, x0, x8
	orr	x21, x8, x21
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x1, [x23]
	add	x8, x1, x1, lsl #1
	lsl	x8, x8, #1
	lsl	x8, x0, x8
	orr	x21, x8, x21
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	ldr	x8, [x23]
	lsl	x9, x8, #3
	sub	x8, x9, x8
	lsl	x8, x0, x8
	orr	x21, x8, x21
	sub	x8, x21, #1
	cmp	x8, x22
	b.hs	LBB0_15
; %bb.3:
	mov	x24, #0
	sub	x25, x25, x26
Lloh5:
	adrp	x26, _DATA_BLOB_LENGTH@GOTPAGE
Lloh6:
	ldr	x26, [x26, _DATA_BLOB_LENGTH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x24, x21
	b.hs	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	w1, #1
	bl	_altera_read_packed
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x24, x25
	csel	x0, x24, x25, lo
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_altera_bits_req
	mov	x1, x0
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	mov	x22, x0
	ldr	x1, [x23]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	cbnz	x0, LBB0_8
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	subs	x0, x0, #1
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x24, x21
	b.hs	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	x8, x24, x22
	ldr	x8, [x19, x8, lsl #3]
	str	x8, [x19, x24, lsl #3]
	add	x24, x24, #1
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_4
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x24, x21
	b.hs	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x1, [x23]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_altera_read_packed
	str	x0, [x19, x24, lsl #3]
	add	x24, x24, #1
	ldr	x8, [x26]
	b	LBB0_12
LBB0_15:
	mov	x21, #0
LBB0_16:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MATCH_DATA_LENGTH,8,3          ; @MATCH_DATA_LENGTH
	.comm	_CHAR_BITS,8,3                  ; @CHAR_BITS
	.comm	_DATA_BLOB_LENGTH,8,3           ; @DATA_BLOB_LENGTH
.subsections_via_symbols
