	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ts
_parse_ts:                              ## @parse_ts
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	cmpl	%r8d, %ecx
	jge	LBB0_37
## %bb.1:
	movl	%esi, %r13d
	movq	%rdi, %r14
	addq	$40, %rdi
	leaq	56(%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	cltq
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	48(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movslq	%ecx, %r12
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rbx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_parse_ch
	movq	%rbx, %rdi
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpl	-84(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_36
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	%r12d, %esi
	cmpq	$6, %r12
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	jl	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rbx
	movl	$28, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_36
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r14), %esi
	addl	$3, %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movq	%rax, %rsi
	cmpl	$7, %esi
	movl	$6, %eax
	cmovll	%eax, %esi
	movq	8(%r14), %rax
	movl	%r12d, %ecx
	movl	%esi, (%rax,%rcx,4)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	20(%r14), %esi
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$12, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	cmpl	$5, 24(%r14)
	jl	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_parse_grid_3
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incl	%ebx
	movl	24(%r14), %eax
	addl	$-4, %eax
	cmpl	%eax, %ebx
	jl	LBB0_13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	jge	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, -64(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	-4(%rax), %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %r8d
	callq	_parse_grid_3
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edx, %r13d
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_36
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpl	(%r14), %esi
	jl	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	callq	_get_bits
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movslq	%esi, %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	cmpl	28(%r14), %esi
	jl	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	callq	_get_bits
	movq	(%rbx), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movslq	-64(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	%rax, (%rcx,%rdx,8)
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r14), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%r12,4), %r15d
	testl	%r15d, %r15d
	je	LBB0_37
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jge	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	28(%r14), %eax
	jge	LBB0_27
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movq	%rax, %rbx
	xorl	%r8d, %r8d
	callq	_parse_ch
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%edx, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_parse_ch
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r13d
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rbx
	movq	%r14, %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	$1, %r8d
	jmp	LBB0_29
LBB0_36:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_37
LBB0_9:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
LBB0_37:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_parse_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ts
_parse_ts:                              ; @parse_ts
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w3, w4
	b.ge	LBB0_35
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x24, x0, #40
	add	x9, x0, #56
	cmp	w1, #0
	cinc	w8, w1, lt
	sbfx	x28, x8, #1, #31
	add	x8, x0, #48
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
	sxtw	x27, w3
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x25
	mov	x3, x26
	mov	w4, #0
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_parse_ch
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	cmp	w27, w20
	b.eq	LBB0_35
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mov	x25, x27
	cmp	x27, #6
	b.lt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w19, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #8]
	ldr	w25, [x8, w27, uxtw #2]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #28
	bl	_ensure_bits
	cbnz	x0, LBB0_35
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #16]
	add	w1, w8, #3
	mov	x0, x24
	bl	_get_bits
	cmp	w0, #6
	mov	w8, #6
	csel	w25, w0, w8, gt
	ldr	x8, [x23, #8]
	str	w25, [x8, w27, uxtw #2]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #20]
	cmp	w25, w8
	b.ge	LBB0_36
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x27, #12
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #24]
	cmp	w8, #5
	b.lt	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	mov	x4, x19
	bl	_parse_grid_3
	add	w26, w26, #1
	ldr	w8, [x23, #24]
	sub	w8, w8, #4
	cmp	w26, w8
	b.lt	LBB0_16
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x27, #11
	b.gt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	subs	w3, w25, #4
	b.lt	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x4, x19
	bl	_parse_grid_3
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, w21
	b.eq	LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_35
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w19, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	cmp	w25, w8
	b.lt	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
	str	x0, [x8, w25, sxtw #3]
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #28]
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	cmp	w25, w8
	b.lt	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x26]
	ldr	x8, [x8, x28, lsl #3]
	str	x0, [x8, w25, sxtw #3]
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #32]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w26, [x8, x27, lsl #2]
	cbz	w26, LBB0_36
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.ge	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #28]
	cmp	w25, w8
	b.ge	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	x3, x26
	mov	w4, #0
	bl	_parse_ch
	cmp	w22, w21
	b.eq	LBB0_5
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x21
	b	LBB0_3
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w19, LBB0_2
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, w21
	b.eq	LBB0_5
; %bb.34:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, x26
	mov	w4, #1
	b	LBB0_4
LBB0_35:
	mov	w0, #0
	b	LBB0_37
LBB0_36:
	mov	w0, #-1
LBB0_37:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_parse_ts
.subsections_via_symbols
