	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_vui_parameters
_decode_vui_parameters:                 ## @decode_vui_parameters
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, %r12
	movq	_EXTENDED_SAR@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movq	%rax, 80(%r15)
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movq	%rax, 72(%r15)
	jmp	LBB0_8
LBB0_6:
	xorps	%xmm0, %xmm0
	jmp	LBB0_7
LBB0_3:
	movq	_ff_h264_pixel_aspect@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%r12d, %eax
	jbe	LBB0_5
## %bb.4:
	movq	(%r13), %rax
	movl	%r12d, %ecx
	shlq	$4, %rcx
	movups	(%rax,%rcx), %xmm0
LBB0_7:
	movups	%xmm0, 72(%r15)
LBB0_8:
	movq	%rbx, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_get_bits1
LBB0_10:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 64(%r15)
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 56(%r15)
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movq	%rax, 48(%r15)
	movq	64(%r15), %rdi
	callq	_av_color_primaries_name
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_AVCOL_PRI_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r15)
LBB0_14:
	movq	56(%r15), %rdi
	callq	_av_color_transfer_name
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_AVCOL_TRC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r15)
LBB0_16:
	movq	48(%r15), %rdi
	callq	_av_color_space_name
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r15)
LBB0_18:
	movq	%rbx, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	incq	%rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_get_ue_golomb
LBB0_20:
	movq	%rbx, %rdi
	callq	_show_bits1
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpq	$9, %rax
	jg	LBB0_23
## %bb.22:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_43
LBB0_23:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_29
## %bb.24:
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.25:
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:
	movl	%r12d, 16(%r15)
	movl	%eax, 20(%r15)
	jmp	LBB0_28
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movl	$0, 12(%r15)
LBB0_28:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 24(%r15)
LBB0_29:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 28(%r15)
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_decode_hrd_parameters
	testq	%rax, %rax
	js	LBB0_42
LBB0_31:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 32(%r15)
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_decode_hrd_parameters
	testq	%rax, %rax
	js	LBB0_42
LBB0_33:
	cmpl	$0, 28(%r15)
	jne	LBB0_35
## %bb.34:
	cmpl	$0, 32(%r15)
	je	LBB0_36
LBB0_35:
	movq	%rbx, %rdi
	callq	_get_bits1
LBB0_36:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 36(%r15)
	movq	%rbx, %rdi
	callq	_get_bits_left
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_43
## %bb.37:
	movq	%rbx, %rdi
	callq	_get_bits1
	movl	%eax, 40(%r15)
	testl	%eax, %eax
	je	LBB0_43
## %bb.38:
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	movl	%eax, 44(%r15)
	movq	%rbx, %rdi
	callq	_get_ue_golomb
	movq	%rbx, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	js	LBB0_39
## %bb.40:
	movl	44(%r15), %ecx
	cmpl	$17, %ecx
	jb	LBB0_43
## %bb.41:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$16, 44(%r15)
	jmp	LBB0_42
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_42:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_43:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	$0, 40(%r15)
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTENDED_SAR,4,2               ## @EXTENDED_SAR
	.comm	_ff_h264_pixel_aspect,8,3       ## @ff_h264_pixel_aspect
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal aspect ratio\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVCOL_PRI_UNSPECIFIED,8,3      ## @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,8,3      ## @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,8,3      ## @AVCOL_SPC_UNSPECIFIED
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Truncated VUI\n"

L_.str.2:                               ## @.str.2
	.asciz	"time_scale/num_units_in_tick invalid or unsupported (%u/%u)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Clipping illegal num_reorder_frames %d\n"

	.no_dead_strip	_decode_vui_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_vui_parameters
_decode_vui_parameters:                 ; @decode_vui_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_get_bits1
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	mov	x22, x0
Lloh0:
	adrp	x8, _EXTENDED_SAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXTENDED_SAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	w1, #16
	bl	_get_bits
	str	x0, [x20, #80]
	mov	x0, x21
	mov	w1, #16
	bl	_get_bits
	str	x0, [x20, #72]
	b	LBB0_6
LBB0_3:
	stp	xzr, xzr, [x20, #72]
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x23, _ff_h264_pixel_aspect@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ff_h264_pixel_aspect@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, w22
	b.ls	LBB0_39
; %bb.5:
	ldr	x8, [x23]
	ldr	q0, [x8, w22, uxtw #4]
	stur	q0, [x20, #72]
LBB0_6:
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_get_bits1
LBB0_8:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20]
	cbz	w0, LBB0_16
; %bb.9:
	mov	x0, x21
	mov	w1, #3
	bl	_get_bits
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #4]
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #8]
	cbz	w0, LBB0_16
; %bb.10:
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	str	x0, [x20, #64]
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	str	x0, [x20, #56]
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	str	x0, [x20, #48]
	ldr	x0, [x20, #64]
	bl	_av_color_primaries_name
	cbnz	w0, LBB0_12
; %bb.11:
Lloh5:
	adrp	x8, _AVCOL_PRI_UNSPECIFIED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVCOL_PRI_UNSPECIFIED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #64]
LBB0_12:
	ldr	x0, [x20, #56]
	bl	_av_color_transfer_name
	cbnz	w0, LBB0_14
; %bb.13:
Lloh8:
	adrp	x8, _AVCOL_TRC_UNSPECIFIED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVCOL_TRC_UNSPECIFIED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20, #56]
LBB0_14:
	ldr	x0, [x20, #48]
	bl	_av_color_space_name
	cbnz	w0, LBB0_16
; %bb.15:
Lloh11:
	adrp	x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, #48]
LBB0_16:
	mov	x0, x21
	bl	_get_bits1
	cbz	w0, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_get_ue_golomb
	add	x8, x0, #1
	str	x8, [x19]
	mov	x0, x21
	bl	_get_ue_golomb
LBB0_18:
	mov	x0, x21
	bl	_show_bits1
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x21
	bl	_get_bits_left
	cmp	x0, #9
	b.gt	LBB0_21
; %bb.20:
Lloh14:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w0, #0
	b	LBB0_41
LBB0_21:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #12]
	cbz	w0, LBB0_27
; %bb.22:
	mov	x0, x21
	mov	w1, #32
	bl	_get_bits_long
	mov	x22, x0
	mov	x0, x21
	mov	w1, #32
	bl	_get_bits_long
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w22, LBB0_25
; %bb.23:
	cbz	w0, LBB0_25
; %bb.24:
	stp	w22, w0, [x20, #16]
	b	LBB0_26
LBB0_25:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	stp	x0, x22, [sp]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	wzr, [x20, #12]
LBB0_26:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #24]
LBB0_27:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #28]
	cbz	w0, LBB0_29
; %bb.28:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_decode_hrd_parameters
	tbnz	x0, #63, LBB0_40
LBB0_29:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #32]
	cbz	w0, LBB0_31
; %bb.30:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_decode_hrd_parameters
	tbnz	x0, #63, LBB0_40
LBB0_31:
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_33
; %bb.32:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_34
LBB0_33:
	mov	x0, x21
	bl	_get_bits1
LBB0_34:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #36]
	mov	x0, x21
	bl	_get_bits_left
	cbz	x0, LBB0_41
; %bb.35:
	mov	x0, x21
	bl	_get_bits1
	str	w0, [x20, #40]
	cbz	w0, LBB0_41
; %bb.36:
	mov	x0, x21
	bl	_get_bits1
	mov	x0, x21
	bl	_get_ue_golomb
	mov	x0, x21
	bl	_get_ue_golomb
	mov	x0, x21
	bl	_get_ue_golomb
	mov	x0, x21
	bl	_get_ue_golomb
	mov	x0, x21
	bl	_get_ue_golomb
	str	w0, [x20, #44]
	mov	x0, x21
	bl	_get_ue_golomb
	mov	x0, x21
	bl	_get_bits_left
	tbnz	x0, #63, LBB0_42
; %bb.37:
	ldr	w8, [x20, #44]
	cmp	w8, #17
	b.lo	LBB0_43
; %bb.38:
Lloh24:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w8, #16
	str	w8, [x20, #44]
	b	LBB0_40
LBB0_39:
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_40:
Lloh34:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
LBB0_41:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_42:
	mov	w0, #0
	str	xzr, [x20, #40]
	b	LBB0_41
LBB0_43:
	mov	w0, #0
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTENDED_SAR,4,2               ; @EXTENDED_SAR
	.comm	_ff_h264_pixel_aspect,8,3       ; @ff_h264_pixel_aspect
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal aspect ratio\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVCOL_PRI_UNSPECIFIED,8,3      ; @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,8,3      ; @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,8,3      ; @AVCOL_SPC_UNSPECIFIED
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Truncated VUI\n"

l_.str.2:                               ; @.str.2
	.asciz	"time_scale/num_units_in_tick invalid or unsupported (%u/%u)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Clipping illegal num_reorder_frames %d\n"

	.no_dead_strip	_decode_vui_parameters
.subsections_via_symbols
