	.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, %ecx
	jg	LBB0_1
LBB0_19:
	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	%ecx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$8, %esi
	callq	_get_bits
	cmpl	$3, %eax
	jne	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skip_bits
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_get_bits
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_18
## %bb.5:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_skip_bits
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_get_bits
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skip_bits
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.6:
	addl	$-2, %ebx
	leal	(%r15,%r15,2), %eax
	cmpl	%eax, %ebx
	jl	LBB0_18
## %bb.7:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	decl	%ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skip_bits
	decl	%ebx
	jne	LBB0_3
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	$3, %edi
	callq	_UINT64_C
	imull	%r15d, %eax
	addl	%ebx, %eax
	movslq	%eax, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jl	LBB0_19
## %bb.11:
	movq	%r14, %rdi
	callq	_av_buffer_realloc
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.14:
	movslq	%ebx, %rbx
	shlq	$3, %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 16(%rcx,%rbx)
	addq	$24, %rbx
	decl	%r15d
	jne	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skip_bits
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %r13d
	jmp	LBB0_18
	.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, w3, #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, x3
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #8
	bl	_get_bits
	cmp	w0, #3
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #1
	bl	_get_bits
	cbz	w0, LBB0_11
; %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_10
; %bb.5:
	add	w8, w21, w21, lsl #1
	cmp	w22, w8
	b.lt	LBB0_10
; %bb.6:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.7:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_8:
	sub	w20, w21, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	subs	w20, w20, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	w0, #3
	bl	_UINT64_C
	madd	w8, w0, w21, w22
	sxtw	x1, w8
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.lt	LBB0_1
; %bb.14:
	mov	x0, x20
	bl	_av_buffer_realloc
	tbnz	w0, #31, LBB0_11
; %bb.15:
	cmp	w21, #1
	b.lt	LBB0_18
; %bb.16:
	sbfiz	x22, x22, #3, #32
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	str	x0, [x8, x22]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x8, x8, x22
	str	x0, [x8, #8]
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x8, x8, x22
	str	x0, [x8, #16]
	add	x22, x22, #24
	subs	w21, w21, #1
	b.ne	LBB0_17
LBB0_18:
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	b	LBB0_10
	.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
