	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function decode
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode:                                ## @decode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %ebx
	leaq	64(%r12), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_av_fast_padded_malloc
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	movl	4(%r14), %esi
	movl	%ebx, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	movq	(%r12), %r14
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, 4(%rbx)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cltq
	movq	%rax, 16(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movl	%r13d, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$12, %r14
	addl	$3, %r15d
	cmpl	%r15d, %ebx
	jle	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r13d
	movq	%r14, %rdi
	callq	_validate_cc_data_pair
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	andl	$3, %r13d
	cmpl	$1, %r13d
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %edx
	movl	8(%r14), %ecx
	andl	$127, %edx
	andl	$127, %ecx
	movq	%r12, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_process_cc608
	cmpq	$0, 40(%r12)
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 40(%r12)
	movq	32(%r12), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 56(%r12)
	je	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r13d
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ff_dlog
	movq	32(%r12), %rsi
	movl	24(%r12), %edx
	leal	1(%rdx), %eax
	movl	%eax, 24(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ff_ass_add_rect
	testl	%eax, %eax
	js	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %eax
	movl	%eax, (%rbx)
	cmpq	$0, 56(%r12)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r12), %edi
	subl	%eax, %edi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ms_tb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movl	%eax, 4(%rbx)
	movl	(%rbx), %eax
	jmp	LBB0_13
LBB0_23:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_15:
	cmpq	$0, 56(%r12)
	je	LBB0_16
## %bb.17:
	cmpq	$0, 48(%r12)
	je	LBB0_16
## %bb.18:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %r14
	movq	16(%r12), %r15
	movq	_ms_tb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$200, %edi
	callq	_av_rescale_q
	movq	%rbx, %rcx
	addq	%r15, %rax
	cmpq	%r14, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jge	LBB0_21
## %bb.19:
	movslq	(%rcx), %rax
	movq	%rax, 16(%r12)
	movq	$0, 48(%r12)
	movq	%rcx, %r14
	movq	%r12, %rdi
	callq	_capture_screen
	movq	$0, 40(%r12)
	movq	32(%r12), %rsi
	movl	24(%r12), %edx
	leal	1(%rdx), %eax
	movl	%eax, 24(%r12)
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ff_ass_add_rect
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movl	$-1, 4(%r14)
	movq	%r14, %rcx
	jmp	LBB0_21
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_21:
	xorl	%edx, %edx
	cmpq	$0, 8(%rcx)
	setg	%dl
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, (%rcx)
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient Memory of %d truncated to %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"cdp writing data (%s)\n"

	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_ms_tb,4,2                      ## @ms_tb
	.no_dead_strip	_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode
_decode:                                ; @decode
	.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
	mov	x22, x3
	mov	x28, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w24, [x1]
	ldr	w23, [x3]
	add	x1, x21, #64
	mov	x0, x21
	mov	x2, x23
	bl	_av_fast_padded_malloc
	ldr	x0, [x21]
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w1, [x22, #4]
	mov	x2, x23
	bl	_memcpy
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.2:
	mov	w27, #0
	mov	w22, #0
	ldr	x25, [x21]
Lloh0:
	adrp	x26, l_.str.1@PAGE
Lloh1:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #-1
	str	w9, [x20, #4]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x8, w8
	str	x8, [x21, #16]
	stp	xzr, xzr, [x21, #40]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #12
	add	w27, w27, #3
	cmp	w23, w27
	b.le	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w19, [x25]
	mov	x0, x25
	bl	_validate_cc_data_pair
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w8, w19, #0x3
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w9, [x25, #4]
	and	w2, w8, #0x7f
	and	w3, w9, #0x7f
	mov	x0, x21
	mov	x1, x24
	bl	_process_cc608
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x21, #40]
	ldr	x2, [x21, #32]
	ldr	x8, [x2]
	cbnz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_ff_dlog
	ldr	x1, [x21, #32]
	ldr	w2, [x21, #24]
	add	w8, w2, #1
	str	w8, [x21, #24]
	mov	x0, x20
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ff_ass_add_rect
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #8]
	str	w8, [x20]
	ldr	x9, [x21, #56]
	cbnz	x9, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, #12]
	sub	w0, w9, w8
Lloh2:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ms_tb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ms_tb@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_av_rescale_q
	str	w0, [x20, #4]
	ldr	w8, [x20]
	b	LBB0_4
LBB0_14:
Lloh8:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w4, [x21, #64]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x23
	bl	_av_log
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_15:
	mov	w22, #0
LBB0_16:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_21
; %bb.17:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_21
; %bb.18:
	ldrsw	x19, [x20]
	ldr	x23, [x21, #16]
Lloh16:
	adrp	x8, _ms_tb@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ms_tb@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w0, #200
	bl	_av_rescale_q
	add	x8, x0, x23
	cmp	x8, x19
	b.ge	LBB0_21
; %bb.19:
	ldrsw	x8, [x20]
	str	x8, [x21, #16]
	str	xzr, [x21, #48]
	mov	x0, x21
	bl	_capture_screen
	str	xzr, [x21, #40]
	ldr	x1, [x21, #32]
	ldr	w2, [x21, #24]
	add	w8, w2, #1
	str	w8, [x21, #24]
	mov	x0, x20
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_ff_ass_add_rect
	mov	x22, x0
	tbnz	w0, #31, LBB0_22
; %bb.20:
	mov	w8, #-1
	str	w8, [x20, #4]
LBB0_21:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w8, gt
	str	w8, [x28]
LBB0_22:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient Memory of %d truncated to %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"cdp writing data (%s)\n"

	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_ms_tb,4,2                      ; @ms_tb
	.no_dead_strip	_decode
.subsections_via_symbols
