	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function read_residue
LCPI0_0:
	.long	4                               ## 0x4
	.long	24                              ## 0x18
	.long	44                              ## 0x2c
	.long	0                               ## 0x0
LCPI0_1:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_read_residue:                          ## @read_residue
	.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	$1352, %rsp                     ## imm = 0x548
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -1376(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,24,44,0]
	movaps	%xmm0, -304(%rbp)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [0,0,0,2]
	movaps	%xmm0, -816(%rbp)
	movq	%rdi, -1368(%rbp)               ## 8-byte Spill
	movl	$3, %esi
	callq	_get_bits
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, -1336(%rbp)               ## 4-byte Spill
	movl	$64, -1340(%rbp)                ## 4-byte Folded Spill
	movl	$68, -1356(%rbp)                ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -1352(%rbp)               ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-1332(%rbp), %ebx               ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-1336(%rbp), %ecx               ## 4-byte Reload
	movl	%ecx, %eax
	sarl	%eax
	movl	%ebx, -1340(%rbp)               ## 4-byte Spill
	cmpl	$1, %ecx
	movl	%eax, -1336(%rbp)               ## 4-byte Spill
	jbe	LBB0_13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	-1352(%rbp), %rax               ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	-1336(%rbp), %r14               ## 4-byte Folded Reload
	movq	%r14, %r12
	negq	%r12
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	decl	%r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_7
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-1368(%rbp), %rdi               ## 8-byte Reload
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movslq	-1328(%rbp,%rbx,4), %rax
	movq	-1376(%rbp), %rsi               ## 8-byte Reload
	movq	(%rsi,%rax,8), %rcx
	testq	%rcx, %rcx
	movq	%r14, %rdx
	cmovsq	%r12, %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	testl	%r15d, %r15d
	jg	LBB0_5
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-1340(%rbp), %eax               ## 4-byte Reload
	movl	%eax, %ebx
LBB0_40:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	cmpl	-1356(%rbp), %eax               ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=2
	movl	%ebx, -1332(%rbp)               ## 4-byte Spill
	movslq	%eax, %r13
	movslq	-1356(%rbp), %r14               ## 4-byte Folded Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	incq	%r13
	cmpq	%r14, %r13
	jge	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_40 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-560(%rbp,%r13,4), %r12d
	movl	-1072(%rbp,%r13,4), %ebx
	movl	%ebx, %eax
	orl	%r12d, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movq	-1368(%rbp), %rdi               ## 8-byte Reload
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_40 Depth=2
	cmpl	$3, %ebx
	ja	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_40 Depth=2
	movslq	%r12d, %rdx
	movl	%ebx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	%rdx, -1384(%rbp)               ## 8-byte Spill
	leal	4(%r12), %eax
	movl	%eax, -560(%rbp,%r13,4)
	movl	$1, %eax
	movl	%r13d, %ecx
	movl	%r13d, -1340(%rbp)              ## 4-byte Spill
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	%r13d, %eax
	jmp	LBB0_39
LBB0_36:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	$2, -1072(%rbp,%r13,4)
	leaq	-1072(,%r14,4), %rdi
	addq	%rbp, %rdi
	movl	$12, %edx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
	leal	4(%r12), %eax
	movl	%eax, -560(%rbp,%r14,4)
	leal	8(%r12), %eax
	movl	%eax, -556(%rbp,%r14,4)
	addl	$12, %r12d
	movl	%r12d, -552(%rbp,%r14,4)
	addl	$3, %r14d
	movl	%r14d, %eax
	movl	%r14d, -1356(%rbp)              ## 4-byte Spill
	movl	%r13d, %eax
	jmp	LBB0_39
LBB0_19:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	%rdx, -1384(%rbp)               ## 8-byte Spill
	movl	$0, -560(%rbp,%r13,4)
	leal	1(%r13), %eax
	movl	%eax, -1340(%rbp)               ## 4-byte Spill
	xorl	%eax, %eax
LBB0_20:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	-1368(%rbp), %r14               ## 8-byte Reload
	movl	%eax, -1072(%rbp,%r13,4)
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_40 Depth=2
	movl	-1332(%rbp), %ebx               ## 4-byte Reload
	movslq	%ebx, %rax
	decl	%ebx
	movl	%r12d, -564(%rbp,%rax,4)
	movl	$3, -1076(%rbp,%rax,4)
	movq	-1352(%rbp), %r12               ## 8-byte Reload
	movq	-1384(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_24
LBB0_37:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	_bink_scan@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax,%rdx,8), %eax
	movslq	-1352(%rbp), %rcx               ## 4-byte Folded Reload
	movl	%eax, -1328(%rbp,%rcx,4)
	movq	-1368(%rbp), %rdi               ## 8-byte Reload
	movq	%rdx, %rbx
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	-1336(%rbp), %ecx               ## 4-byte Folded Reload
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	-1376(%rbp), %rdx               ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movl	$0, -560(%rbp,%r13,4)
	movl	$0, -1072(%rbp,%r13,4)
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.38:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	-1352(%rbp), %rax               ## 8-byte Reload
	incl	%eax
	movq	%rax, -1352(%rbp)               ## 8-byte Spill
	leal	1(%r13), %eax
	decl	%r15d
LBB0_39:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	-1332(%rbp), %ebx               ## 4-byte Reload
	jmp	LBB0_40
LBB0_22:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	_bink_scan@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	-1384(%rbp), %rbx               ## 8-byte Reload
	movl	(%rax,%rbx,8), %eax
	movslq	-1352(%rbp), %rcx               ## 4-byte Folded Reload
	movl	%eax, -1328(%rbp,%rcx,4)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	-1336(%rbp), %ecx               ## 4-byte Folded Reload
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	-1376(%rbp), %rdx               ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.23:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	%rbx, %r13
	movq	-1352(%rbp), %r12               ## 8-byte Reload
	incl	%r12d
	decl	%r15d
	movq	-1368(%rbp), %r14               ## 8-byte Reload
	movl	-1332(%rbp), %ebx               ## 4-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_40 Depth=2
	leaq	1(%r13), %rax
	movslq	%ebx, %rcx
	decl	%ebx
	movl	%eax, -564(%rbp,%rcx,4)
	movl	$3, -1076(%rbp,%rcx,4)
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	%ebx, -1332(%rbp)               ## 4-byte Spill
	movq	_bink_scan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax,%r13,8), %eax
	movq	%r12, %rbx
	movslq	%r12d, %rcx
	movl	%eax, -1328(%rbp,%rcx,4)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	-1336(%rbp), %ecx               ## 4-byte Folded Reload
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	_bink_scan@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx,%r13,8), %rcx
	movq	-1376(%rbp), %rdx               ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.27:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	%r13, %rsi
	movq	%rbx, %r12
	incl	%r12d
	decl	%r15d
	movq	-1368(%rbp), %r14               ## 8-byte Reload
	movl	-1332(%rbp), %ebx               ## 4-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_40 Depth=2
	leaq	2(%r13), %rax
	movslq	%ebx, %rcx
	decl	%ebx
	movl	%eax, -564(%rbp,%rcx,4)
	movl	$3, -1076(%rbp,%rcx,4)
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_40 Depth=2
	movl	%ebx, -1332(%rbp)               ## 4-byte Spill
	movq	_bink_scan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax,%r13,8), %eax
	movq	%r12, %rbx
	movslq	%r12d, %rcx
	movl	%eax, -1328(%rbp,%rcx,4)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	-1336(%rbp), %ecx               ## 4-byte Folded Reload
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	_bink_scan@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%rcx,%r13,8), %rcx
	movq	-1376(%rbp), %rdx               ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.31:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	%r13, %rsi
	movq	%rbx, %r12
	incl	%r12d
	decl	%r15d
	movq	-1368(%rbp), %r14               ## 8-byte Reload
	movl	-1332(%rbp), %ebx               ## 4-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	movq	%r12, -1352(%rbp)               ## 8-byte Spill
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_40 Depth=2
	addq	$3, %r13
	movslq	%ebx, %rax
	decl	%ebx
	movl	%r13d, -564(%rbp,%rax,4)
	movl	$3, -1076(%rbp,%rax,4)
	movl	-1340(%rbp), %eax               ## 4-byte Reload
	jmp	LBB0_40
LBB0_34:                                ##   in Loop: Header=BB0_40 Depth=2
	movq	_bink_scan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	24(%rax,%r13,8), %eax
	movslq	%r12d, %rcx
	movl	%eax, -1328(%rbp,%rcx,4)
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	-1336(%rbp), %ecx               ## 4-byte Folded Reload
	addl	%eax, %ecx
	movslq	%ecx, %rax
	movq	_bink_scan@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	24(%rcx,%r13,8), %rcx
	movq	-1376(%rbp), %rdx               ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.35:                              ##   in Loop: Header=BB0_40 Depth=2
	movq	-1352(%rbp), %rax               ## 8-byte Reload
	incl	%eax
	movq	%rax, -1352(%rbp)               ## 8-byte Spill
	decl	%r15d
	movl	-1340(%rbp), %eax               ## 4-byte Reload
	jmp	LBB0_40
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.42:
	xorl	%eax, %eax
	addq	$1352, %rsp                     ## imm = 0x548
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_36
	.long	L0_0_set_19
	.long	L0_0_set_37
	.end_data_region
                                        ## -- End function
	.comm	_bink_scan,8,3                  ## @bink_scan
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2

	.no_dead_strip	_read_residue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function read_residue
lCPI0_0:
	.long	4                               ; 0x4
	.long	24                              ; 0x18
	.long	44                              ; 0x2c
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_2:
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_read_residue:                          ; @read_residue
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #1344
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #1072]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp, #560]
	mov	w1, #3
	bl	_get_bits
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	mov	w8, #1
	lsl	w9, w8, w0
	mov	w22, #64
	mov	w8, #68
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	add	x27, sp, #816
	add	x28, sp, #304
Lloh7:
	adrp	x8, lCPI0_2@PAGE
Lloh8:
	ldr	d8, [x8, lCPI0_2@PAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	asr	w8, w9, #1
	mov	x22, x26
	cmp	w9, #1
                                        ; kill: def $w8 killed $w8 def $x8
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	b.ls	LBB0_38
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	sxtw	x23, w9
	neg	x24, x23
	mov	w26, w8
	add	x25, sp, #48
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #4
	subs	x26, x26, #1
	b.eq	LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrsw	x8, [x25]
	lsl	x8, x8, #3
	ldr	x9, [x20, x8]
	cmp	x9, #0
	csel	x10, x24, x23, lt
	add	x9, x10, x9
	str	x9, [x20, x8]
	subs	w19, w19, #1
	b.ge	LBB0_5
	b	LBB0_38
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x22
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	w22, w8
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	sxtw	x23, w22
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	sxtw	x25, w8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	x23, x23, #1
	cmp	x23, x25
	b.ge	LBB0_1
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x22, x23, #2
	ldr	w24, [x27, x22]
	ldr	w26, [x28, x22]
	orr	w8, w26, w24
	cbz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w26, #3
	b.hi	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x11, w24
Lloh9:
	adrp	x10, lJTI0_0@PAGE
Lloh10:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x8, LBB0_16
	ldrb	w9, [x10, x26]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=2
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	add	w8, w24, #4
	str	w8, [x27, x23, lsl #2]
	mov	w8, #1
	mov	x22, x23
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	w8, #2
	str	w8, [x28, x23, lsl #2]
	lsl	x22, x25, #2
	add	x0, x28, x22
Lloh11:
	adrp	x1, l_.memset_pattern@PAGE
Lloh12:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	w2, #12
	bl	_memset_pattern16
	dup.2s	v0, w24
	add.2s	v0, v0, v8
	add	x8, x27, x22
	str	d0, [x8]
	add	w9, w24, #12
	str	w9, [x8, #8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	w8, w8, #3
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x22, x23
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=2
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	mov	w8, #0
	str	wzr, [x27, x23, lsl #2]
	add	w22, w23, #1
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	str	w8, [x28, x23, lsl #2]
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x8, w26
	sub	x8, x8, #1
	lsl	x9, x8, #2
	str	w24, [x27, x9]
	mov	w10, #3
	str	w10, [x28, x9]
	mov	x26, x8
	b	LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh13:
	adrp	x25, _bink_scan@GOTPAGE
Lloh14:
	ldr	x25, [x25, _bink_scan@GOTPAGEOFF]
	ldr	x8, [x25]
	lsl	x24, x11, #3
	ldr	x8, [x8, x24]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	x10, sp, #48
	str	w8, [x10, w9, sxtw #2]
	mov	x0, x21
	bl	_get_bits1
	neg	w8, w0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	eor	w8, w9, w8
	add	w8, w8, w0
	sxtw	x8, w8
	ldr	x9, [x25]
	ldr	x9, [x9, x24]
	str	x8, [x20, x9, lsl #3]
	str	wzr, [x27, x22]
	str	wzr, [x28, x22]
	subs	w19, w19, #1
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
	b.lt	LBB0_38
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	add	w22, w23, #1
	b	LBB0_9
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh15:
	adrp	x24, _bink_scan@GOTPAGE
Lloh16:
	ldr	x24, [x24, _bink_scan@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	lsl	x23, x9, #3
	ldr	x8, [x8, x23]
	add	x9, sp, #48
	str	w8, [x9, w25, sxtw #2]
	mov	x0, x21
	bl	_get_bits1
	neg	w8, w0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	eor	w8, w9, w8
	add	w8, w8, w0
	sxtw	x8, w8
	ldr	x9, [x24]
	ldr	x9, [x9, x23]
	str	x8, [x20, x9, lsl #3]
	subs	w19, w19, #1
	b.lt	LBB0_38
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	add	w25, w25, #1
LBB0_26:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	add	x23, x24, #1
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x26
	sxtw	x8, w8
	sub	x8, x8, #1
	lsl	x9, x8, #2
	str	w23, [x27, x9]
	mov	w10, #3
	str	w10, [x28, x9]
	mov	x26, x8
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_9 Depth=2
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
Lloh17:
	adrp	x8, _bink_scan@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bink_scan@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	lsl	x23, x23, #3
	ldr	x8, [x8, x23]
	mov	x24, x25
	add	x9, sp, #48
	str	w8, [x9, w25, sxtw #2]
	mov	x0, x21
	bl	_get_bits1
	neg	w8, w0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	eor	w8, w9, w8
	add	w8, w8, w0
	sxtw	x8, w8
Lloh20:
	adrp	x9, _bink_scan@GOTPAGE
Lloh21:
	ldr	x9, [x9, _bink_scan@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x9, [x9, x23]
	str	x8, [x20, x9, lsl #3]
	subs	w19, w19, #1
	b.lt	LBB0_38
; %bb.29:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x24
	add	w25, w24, #1
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_30:                                ;   in Loop: Header=BB0_9 Depth=2
	add	x23, x24, #2
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x26
	sxtw	x8, w8
	sub	x8, x8, #1
	lsl	x9, x8, #2
	str	w23, [x27, x9]
	mov	w10, #3
	str	w10, [x28, x9]
	mov	x26, x8
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_9 Depth=2
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
Lloh23:
	adrp	x8, _bink_scan@GOTPAGE
Lloh24:
	ldr	x8, [x8, _bink_scan@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	lsl	x23, x23, #3
	ldr	x8, [x8, x23]
	mov	x24, x25
	add	x9, sp, #48
	str	w8, [x9, w25, sxtw #2]
	mov	x0, x21
	bl	_get_bits1
	neg	w8, w0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	eor	w8, w9, w8
	add	w8, w8, w0
	sxtw	x8, w8
Lloh26:
	adrp	x9, _bink_scan@GOTPAGE
Lloh27:
	ldr	x9, [x9, _bink_scan@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	x9, [x9, x23]
	str	x8, [x20, x9, lsl #3]
	subs	w19, w19, #1
	b.lt	LBB0_38
; %bb.33:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x25, x24
	add	w25, w24, #1
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_34:                                ;   in Loop: Header=BB0_9 Depth=2
	add	x23, x24, #3
	mov	x0, x21
	bl	_get_bits1
	str	w25, [sp, #28]                  ; 4-byte Folded Spill
	cbz	w0, LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x26
	sxtw	x8, w8
	sub	x8, x8, #1
	lsl	x9, x8, #2
	str	w23, [x27, x9]
	mov	w10, #3
	str	w10, [x28, x9]
	mov	x26, x8
	b	LBB0_9
LBB0_36:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh29:
	adrp	x24, _bink_scan@GOTPAGE
Lloh30:
	ldr	x24, [x24, _bink_scan@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x23, x23, #3
	ldr	x8, [x8, x23]
	add	x9, sp, #48
	str	w8, [x9, w25, sxtw #2]
	mov	x0, x21
	bl	_get_bits1
	neg	w8, w0
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	eor	w8, w9, w8
	add	w8, w8, w0
	sxtw	x8, w8
	ldr	x9, [x24]
	ldr	x9, [x9, x23]
	str	x8, [x20, x9, lsl #3]
	subs	w19, w19, #1
	b.lt	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	b	LBB0_9
LBB0_38:
	ldur	x8, [x29, #-112]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.39:
	mov	w0, #0
	add	sp, sp, #1344
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
                                        ; -- End function
	.comm	_bink_scan,8,3                  ; @bink_scan
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2

	.no_dead_strip	_read_residue
.subsections_via_symbols
