	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function categorize
_categorize:                            ## @categorize
	.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	$1944, %rsp                     ## imm = 0x798
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -1952(%rbp)                ## 8-byte Spill
	movq	%rcx, -1976(%rbp)               ## 8-byte Spill
	movq	%rdx, -1920(%rbp)               ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-464(%rbp), %rdi
	movl	$408, %esi                      ## imm = 0x198
	callq	___bzero
	leaq	-880(%rbp), %rdi
	movl	$408, %esi                      ## imm = 0x198
	callq	___bzero
	leaq	-1904(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	___bzero
	movl	(%r13), %eax
	movl	%eax, -1908(%rbp)               ## 4-byte Spill
	movl	4(%r13), %ebx
	leaq	4(%r14), %rdi
	callq	_get_bits_count
	movq	%rbx, %rsi
	subl	%eax, %esi
	movl	(%r14), %eax
	movl	%esi, %ecx
	subl	%eax, %ecx
	jle	LBB0_2
## %bb.1:
	leal	(%rcx,%rcx,4), %edx
	leal	(%rcx,%rcx,4), %esi
	addl	$7, %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$3, %esi
	addl	%eax, %esi
LBB0_2:
	movq	%rsi, -1968(%rbp)               ## 8-byte Spill
	leal	-32(%rsi), %eax
	movl	%eax, -1960(%rbp)               ## 4-byte Spill
	movl	$-32, %edx
	movl	$32, %eax
	movq	%rax, -1928(%rbp)               ## 8-byte Spill
	movq	_expbits_tab@GOTPCREL(%rip), %rsi
	movq	%r13, -1984(%rbp)               ## 8-byte Spill
	movq	-1920(%rbp), %r12               ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-1960(%rbp), %ebx               ## 4-byte Folded Reload
	movq	-1928(%rbp), %rcx               ## 8-byte Reload
	movl	%ecx, %eax
	movl	$0, %edx
	cmovll	%edx, %eax
	movq	-1936(%rbp), %rdx               ## 8-byte Reload
	addl	%eax, %edx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cmpl	$1, %ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -1928(%rbp)               ## 8-byte Spill
	movq	-1984(%rbp), %r13               ## 8-byte Reload
	jle	LBB0_7
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rdx, -1936(%rbp)               ## 8-byte Spill
	movl	8(%r13), %r14d
	movl	$0, %ebx
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-1936(%rbp), %rax               ## 8-byte Reload
	movq	-1928(%rbp), %rcx               ## 8-byte Reload
	leal	(%rcx,%rax), %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %eax
	subl	(%r12,%r15,4), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	$3, %esi
	callq	_av_clip_uintp2
	movq	_expbits_tab@GOTPCREL(%rip), %rsi
	incq	%r15
	movq	(%rsi), %rcx
	cltq
	addl	(%rcx,%rax,8), %ebx
	cmpq	%r15, %r14
	jne	LBB0_6
	jmp	LBB0_3
LBB0_7:
	movl	8(%r13), %r12d
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	-1920(%rbp), %r15               ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %eax
	subl	(%r15,%rbx,4), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movl	$3, %esi
	movq	%rdx, %r12
	callq	_av_clip_uintp2
	movq	_expbits_tab@GOTPCREL(%rip), %rsi
	movq	%r12, %rdx
	movq	(%rsi), %rcx
	cltq
	addl	(%rcx,%rax,8), %r14d
	movl	%eax, -880(%rbp,%rbx,4)
	movl	%eax, -464(%rbp,%rbx,4)
	incq	%rbx
	movslq	8(%r13), %r12
	cmpq	%r12, %rbx
	jl	LBB0_9
	jmp	LBB0_11
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movl	(%r13), %r15d
	cmpl	$2, %r15d
	movq	-1920(%rbp), %rbx               ## 8-byte Reload
	movq	-1968(%rbp), %r8                ## 8-byte Reload
	jl	LBB0_46
## %bb.12:
	addl	%r8d, %r8d
	movq	(%rsi), %rax
	movq	%rax, -1960(%rbp)               ## 8-byte Spill
	movl	%r12d, %r11d
	leaq	-1(%r11), %rax
	movq	%rax, -1936(%rbp)               ## 8-byte Spill
	movq	%r11, -1928(%rbp)               ## 8-byte Spill
                                        ## kill: def $r11d killed $r11d killed $r11 def $r11
	andl	$-2, %r11d
	movl	$1, %r10d
	movl	-1908(%rbp), %eax               ## 4-byte Reload
	movl	%eax, -1944(%rbp)               ## 4-byte Spill
	movl	%r14d, %r9d
	movq	%r8, -1968(%rbp)                ## 8-byte Spill
	movl	%r15d, -1940(%rbp)              ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r10d
	cmpl	%r15d, %r10d
	je	LBB0_46
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	leal	(%r14,%r9), %ecx
	cmpl	%r8d, %ecx
	jle	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_50
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, -1936(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_31
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$-1, %esi
	movl	$-999999, %ecx                  ## imm = 0xFFF0BDC1
	xorl	%edi, %edi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=2
	addq	$2, %rdi
	cmpq	%rdi, %r11
	je	LBB0_32
LBB0_19:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-880(%rbp,%rdi,4), %ebx
	cmpl	$6, %ebx
	jg	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	addl	%ebx, %ebx
	movq	-1920(%rbp), %rax               ## 8-byte Reload
	addl	(%rax,%rdi,4), %ebx
	movl	%edx, %eax
	subl	%ebx, %eax
	cmpl	%ecx, %eax
	cmovgel	%edi, %esi
	cmovgl	%eax, %ecx
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	-876(%rbp,%rdi,4), %ebx
	cmpl	$6, %ebx
	jg	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=2
	addl	%ebx, %ebx
	movq	-1920(%rbp), %rax               ## 8-byte Reload
	addl	4(%rax,%rdi,4), %ebx
	movl	%edx, %eax
	subl	%ebx, %eax
	leal	1(%rdi), %ebx
	cmpl	%ecx, %eax
	cmovgel	%ebx, %esi
	cmovgl	%eax, %ecx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_50
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rdx, %r15
	cmpq	$0, -1936(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_37
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$-1, %edx
	movl	$999999, %r8d                   ## imm = 0xF423F
	xorl	%ecx, %ecx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %r11
	je	LBB0_38
LBB0_27:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-464(%rbp,%rcx,4), %edi
	testl	%edi, %edi
	jle	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	addl	%edi, %edi
	addl	(%rbx,%rcx,4), %edi
	movl	%r15d, %eax
	subl	%edi, %eax
	cmpl	%r8d, %eax
	cmovll	%ecx, %edx
	cmovll	%eax, %r8d
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=2
	movl	-460(%rbp,%rcx,4), %edi
	testl	%edi, %edi
	jle	LBB0_26
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=2
	addl	%edi, %edi
	addl	4(%rbx,%rcx,4), %edi
	movl	%r15d, %eax
	subl	%edi, %eax
	leal	1(%rcx), %edi
	cmpl	%r8d, %eax
	cmovll	%edi, %edx
	cmovll	%eax, %r8d
	jmp	LBB0_26
LBB0_31:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$-1, %esi
	movl	$-999999, %ecx                  ## imm = 0xFFF0BDC1
	xorl	%edi, %edi
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, -1928(%rbp)                 ## 1-byte Folded Reload
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-880(%rbp,%rdi,4), %ebx
	cmpl	$6, %ebx
	jg	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	%ebx, %ebx
	movq	-1920(%rbp), %rax               ## 8-byte Reload
	addl	(%rax,%rdi,4), %ebx
	movl	%edx, %eax
	subl	%ebx, %eax
	cmpl	%ecx, %eax
	cmovll	%esi, %edi
	movl	%edi, %esi
LBB0_35:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$-1, %esi
	je	LBB0_46
## %bb.36:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-1944(%rbp), %ecx               ## 4-byte Reload
	movslq	%ecx, %rax
	incl	%ecx
	movl	%ecx, -1944(%rbp)               ## 4-byte Spill
	movl	%esi, -1904(%rbp,%rax,4)
	movslq	%esi, %rax
	movslq	-880(%rbp,%rax,4), %rcx
	leaq	1(%rcx), %rsi
	movq	-1960(%rbp), %rbx               ## 8-byte Reload
	movl	8(%rbx,%rcx,8), %edi
	subl	(%rbx,%rcx,8), %edi
	addl	%edi, %r9d
	movl	%esi, -880(%rbp,%rax,4)
	movq	-1920(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_13
LBB0_37:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$-1, %edx
	movl	$999999, %r8d                   ## imm = 0xF423F
	xorl	%ecx, %ecx
LBB0_38:                                ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, -1928(%rbp)                 ## 1-byte Folded Reload
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-464(%rbp,%rcx,4), %edi
	testl	%edi, %edi
	jle	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	%edi, %edi
	addl	(%rbx,%rcx,4), %edi
	movl	%r15d, %eax
	subl	%edi, %eax
	cmpl	%r8d, %eax
	cmovll	%ecx, %edx
LBB0_41:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$-1, %edx
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-1908(%rbp), %ecx               ## 4-byte Reload
	movslq	%ecx, %rax
	decl	%ecx
	movl	%ecx, -1908(%rbp)               ## 4-byte Spill
	movl	%edx, -1908(%rbp,%rax,4)
	movslq	%edx, %rax
	movslq	-464(%rbp,%rax,4), %rcx
	leaq	-1(%rcx), %rdx
	movq	-1960(%rbp), %rsi               ## 8-byte Reload
	movl	-8(%rsi,%rcx,8), %edi
	subl	(%rsi,%rcx,8), %edi
	addl	%edi, %r14d
	movl	%edx, -464(%rbp,%rax,4)
	movq	-1968(%rbp), %r8                ## 8-byte Reload
	movq	%r15, %rdx
	movl	-1940(%rbp), %r15d              ## 4-byte Reload
	jmp	LBB0_13
LBB0_45:
	movl	-1940(%rbp), %r15d              ## 4-byte Reload
LBB0_46:
	testl	%r12d, %r12d
	jle	LBB0_50
## %bb.47:
	xorl	%eax, %eax
	movq	-1952(%rbp), %rsi               ## 8-byte Reload
	movq	-1976(%rbp), %rdx               ## 8-byte Reload
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movl	-464(%rbp,%rax,4), %ecx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movslq	8(%r13), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_48
## %bb.49:
	movl	(%r13), %r15d
	cmpl	$2, %r15d
	jge	LBB0_51
	jmp	LBB0_53
LBB0_50:
	movq	-1952(%rbp), %rsi               ## 8-byte Reload
	cmpl	$2, %r15d
	jl	LBB0_53
LBB0_51:
	movslq	-1908(%rbp), %rax               ## 4-byte Folded Reload
	leaq	-1904(,%rax,4), %rax
	addq	%rbp, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	movslq	(%r13), %rdx
	decq	%rdx
	cmpq	%rdx, %rcx
	jl	LBB0_52
LBB0_53:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_55
## %bb.54:
	addq	$1944, %rsp                     ## imm = 0x798
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_expbits_tab,8,3                ## @expbits_tab
	.no_dead_strip	_categorize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function categorize
_categorize:                            ; @categorize
	.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
	sub	sp, sp, #1904
	stp	x3, x4, [sp, #8]                ; 16-byte Folded Spill
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	str	xzr, [sp, #1872]
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #1856]
	str	q0, [sp, #1840]
	str	q0, [sp, #1824]
	str	q0, [sp, #1808]
	str	q0, [sp, #1792]
	str	q0, [sp, #1776]
	str	q0, [sp, #1760]
	str	q0, [sp, #1744]
	str	q0, [sp, #1728]
	str	q0, [sp, #1712]
	str	q0, [sp, #1696]
	str	q0, [sp, #1680]
	str	q0, [sp, #1664]
	str	q0, [sp, #1648]
	str	q0, [sp, #1632]
	str	q0, [sp, #1616]
	str	q0, [sp, #1600]
	str	q0, [sp, #1584]
	str	q0, [sp, #1568]
	str	q0, [sp, #1552]
	str	q0, [sp, #1536]
	str	q0, [sp, #1520]
	str	q0, [sp, #1504]
	str	q0, [sp, #1488]
	str	q0, [sp, #1472]
	str	xzr, [sp, #1456]
	str	q0, [sp, #1440]
	str	q0, [sp, #1424]
	str	q0, [sp, #1408]
	str	q0, [sp, #1392]
	str	q0, [sp, #1376]
	str	q0, [sp, #1360]
	str	q0, [sp, #1344]
	str	q0, [sp, #1328]
	str	q0, [sp, #1312]
	str	q0, [sp, #1296]
	str	q0, [sp, #1280]
	str	q0, [sp, #1264]
	str	q0, [sp, #1248]
	str	q0, [sp, #1232]
	str	q0, [sp, #1216]
	str	q0, [sp, #1200]
	str	q0, [sp, #1184]
	str	q0, [sp, #1168]
	str	q0, [sp, #1152]
	str	q0, [sp, #1136]
	str	q0, [sp, #1120]
	str	q0, [sp, #1104]
	str	q0, [sp, #1088]
	str	q0, [sp, #1072]
	str	q0, [sp, #1056]
	add	x0, sp, #32
	mov	w1, #1024
	bl	_bzero
	ldp	w8, w19, [x20]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x0, x23, #4
	bl	_get_bits_count
	ldr	w8, [x23]
	sub	w10, w19, w0
	subs	w9, w10, w8
	b.le	LBB0_2
; %bb.1:
	add	w9, w9, w9, lsl #2
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	add	w10, w8, w9, asr #3
LBB0_2:
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	sub	w25, w10, #32
	mov	w23, #-32
	mov	w28, #32
Lloh3:
	adrp	x27, _expbits_tab@GOTPAGE
Lloh4:
	ldr	x27, [x27, _expbits_tab@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, w25
	csel	w8, wzr, w28, lt
	add	w23, w8, w23
	cmp	w28, #0
	cinc	w8, w28, lt
	asr	w8, w8, #1
	cmp	w28, #1
	mov	x28, x8
	b.le	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w24, [x20, #8]
	cmp	w24, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
	add	w19, w28, w23
	mov	x22, x21
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22], #4
	sub	w8, w19, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	mov	w1, #3
	bl	_av_clip_uintp2
	ldr	x8, [x27]
	ldr	x8, [x8, w0, sxtw #3]
	add	w26, w26, w8
	subs	x24, x24, #1
	b.ne	LBB0_7
	b	LBB0_4
LBB0_8:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
	mov	w25, #0
	add	x19, sp, #1056
	add	x26, sp, #1472
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x24, #2
	ldr	w8, [x21, x22]
	sub	w8, w23, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	mov	w1, #3
	bl	_av_clip_uintp2
	ldr	x8, [x27]
	ldr	x8, [x8, w0, sxtw #3]
	str	w0, [x19, x22]
	add	w25, w25, w8
	str	w0, [x26, x22]
	add	x24, x24, #1
	ldrsw	x8, [x20, #8]
	cmp	x24, x8
	b.lt	LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w25, #0
LBB0_12:
	ldr	w9, [x20]
	cmp	w9, #1
	ldr	x6, [sp, #24]                   ; 8-byte Folded Reload
	b.le	LBB0_30
; %bb.13:
	ldr	w10, [sp, #4]                   ; 4-byte Folded Reload
	lsl	w10, w10, #1
	ldr	x11, [x27]
	mov	w12, #1
	add	x13, sp, #1056
	add	x14, sp, #32
	add	x15, sp, #1472
	mov	x0, x6
	mov	x16, x25
	mov	w17, w8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w12, w12, #1
	cmp	w12, w9
	b.eq	LBB0_30
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	add	w1, w25, w16
	cmp	w1, w10
	b.le	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x2, #0
	mov	w1, #-1
	mov	w3, #48577
	movk	w3, #65520, lsl #16
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x2, x2, #1
	cmp	x17, x2
	b.eq	LBB0_26
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x13, x2, lsl #2]
	cmp	w4, #6
	b.gt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	w5, [x21, x2, lsl #2]
	add	w4, w5, w4, lsl #1
	sub	w4, w23, w4
	cmp	w4, w3
	csel	w1, w1, w2, lt
	csel	w3, w4, w3, gt
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x2, #0
	mov	w1, #-1
	mov	w3, #16959
	movk	w3, #15, lsl #16
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x2, x2, #1
	cmp	x17, x2
	b.eq	LBB0_28
LBB0_24:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x15, x2, lsl #2]
	cmp	w4, #1
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w5, [x21, x2, lsl #2]
	add	w4, w5, w4, lsl #1
	sub	w4, w23, w4
	cmp	w4, w3
	csel	w1, w2, w1, lt
	csel	w3, w4, w3, lt
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_15 Depth=1
	cmn	w1, #1
	b.eq	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_15 Depth=1
	str	w1, [x14, w0, sxtw #2]
	sbfiz	x1, x1, #2, #32
	ldrsw	x2, [x13, x1]
	ldr	x3, [x11, x2, lsl #3]
	add	x2, x2, #1
	ldr	x4, [x11, x2, lsl #3]
	add	w0, w0, #1
	sub	w3, w4, w3
	add	w16, w16, w3
	str	w2, [x13, x1]
	b	LBB0_14
LBB0_28:                                ;   in Loop: Header=BB0_15 Depth=1
	cmn	w1, #1
	b.eq	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_15 Depth=1
	sxtw	x2, w6
	sub	x2, x2, #1
	str	w1, [x14, x2, lsl #2]
	sbfiz	x1, x1, #2, #32
	ldrsw	x3, [x15, x1]
	ldr	x4, [x11, x3, lsl #3]
	sub	x3, x3, #1
	ldr	x5, [x11, x3, lsl #3]
	sub	w4, w5, w4
	add	w25, w25, w4
	str	w3, [x15, x1]
	mov	x6, x2
	b	LBB0_14
LBB0_30:
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.31:
	mov	x8, #0
	add	x9, sp, #1472
	ldp	x13, x12, [sp, #8]              ; 16-byte Folded Reload
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x13, x10]
	add	x8, x8, #1
	ldrsw	x10, [x20, #8]
	cmp	x8, x10
	b.lt	LBB0_32
; %bb.33:
	ldr	w9, [x20]
	cmp	w9, #1
	b.gt	LBB0_35
	b	LBB0_37
LBB0_34:
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	cmp	w9, #1
	b.le	LBB0_37
LBB0_35:
	mov	x8, #0
	add	x9, sp, #32
	add	x9, x9, w6, sxtw #2
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x12, x10]
	add	x8, x8, #1
	ldrsw	x10, [x20]
	sub	x10, x10, #1
	cmp	x8, x10
	b.lt	LBB0_36
LBB0_37:
	ldur	x8, [x29, #-96]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.38:
	add	sp, sp, #1904
	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
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_expbits_tab,8,3                ; @expbits_tab
	.no_dead_strip	_categorize
.subsections_via_symbols
