	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_registered_user_data_closed_caption
_decode_registered_user_data_closed_caption: ## @decode_registered_user_data_closed_caption
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %edx
	jg	LBB0_1
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_get_bits
	cmpl	$3, %eax
	jne	LBB0_2
## %bb.5:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_get_bits
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_skip_bits
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.7:
	addl	$-2, %ebx
	leal	(%r12,%r12,2), %eax
	cmpl	%eax, %ebx
	jl	LBB0_14
## %bb.8:
	movq	(%r14), %rbx
	movl	$3, %edi
	callq	_UINT64_C
	imull	%r12d, %eax
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jg	LBB0_15
## %bb.9:
	leaq	8(%r14), %rdi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	testl	%r12d, %r12d
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r14)
	movq	%rax, (%rdx,%rcx,8)
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r14)
	movq	%rax, (%rdx,%rcx,8)
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r14)
	movq	%rax, (%rdx,%rcx,8)
	decl	%r12d
	jne	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_skip_bits
	jmp	LBB0_14
LBB0_2:
	decl	%ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_skip_bits
	decl	%ebx
	jne	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_decode_registered_user_data_closed_caption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_registered_user_data_closed_caption
_decode_registered_user_data_closed_caption: ; @decode_registered_user_data_closed_caption
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	subs	w22, w2, #2
	b.gt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #8
	bl	_get_bits
	cmp	w0, #3
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #1
	bl	_get_bits
	cbz	w0, LBB0_14
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	mov	x21, x0
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	cbz	w21, LBB0_13
; %bb.5:
	add	w8, w21, w21, lsl #1
	cmp	w22, w8
	b.lt	LBB0_13
; %bb.6:
	ldr	x22, [x20]
	mov	w0, #3
	bl	_UINT64_C
	mul	w8, w0, w21
	add	x1, x22, w8, sxtw
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x1, x8
	b.gt	LBB0_1
; %bb.7:
	add	x0, x20, #8
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_14
; %bb.8:
	cmp	w21, #1
	b.lt	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldp	x9, x8, [x20]
	add	x10, x9, #1
	str	x10, [x20]
	str	x0, [x8, x9, lsl #3]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldp	x9, x8, [x20]
	add	x10, x9, #1
	str	x10, [x20]
	str	x0, [x8, x9, lsl #3]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldp	x9, x8, [x20]
	add	x10, x9, #1
	str	x10, [x20]
	str	x0, [x8, x9, lsl #3]
	subs	w21, w21, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	b	LBB0_13
LBB0_11:
	sub	w20, w21, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	subs	w20, w20, #1
	b.ne	LBB0_12
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_decode_registered_user_data_closed_caption
.subsections_via_symbols
