	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hvcc_parse_sps
_hvcc_parse_sps:                        ## @hvcc_parse_sps
	.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	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HEVC_MAX_SHORT_TERM_REF_PIC_SETS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movl	32(%rbx), %edi
	leal	1(%r15), %esi
	callq	_FFMAX
	movl	%eax, 32(%rbx)
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, 24(%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_hvcc_parse_ptl
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movl	%eax, (%rbx)
	cmpl	$3, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_skip_bits1
LBB0_2:
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
LBB0_4:
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%rax, 16(%rbx)
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_get_bits1
	xorl	%ebx, %ebx
	testq	%rax, %rax
	cmovel	%r15d, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_skip_sub_layer_ordering_info
	incl	%ebx
	cmpl	%r15d, %ebx
	jbe	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_skip_scaling_list_data
LBB0_9:
	movq	%r13, %rdi
	callq	_skip_bits1
	movq	%r13, %rdi
	callq	_skip_bits1
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%r13, %rdi
	callq	_skip_bits1
LBB0_11:
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%rax, %r12
	cmpl	%r12d, (%r14)
	jae	LBB0_12
LBB0_26:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_24
LBB0_12:
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.13:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_parse_rps
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%r14d
	cmpl	%r14d, %r12d
	jne	LBB0_15
LBB0_17:
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_22
## %bb.18:
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movq	%rax, %rbx
	cmpl	$31, %ebx
	ja	LBB0_26
## %bb.19:
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.20:
	addl	$4, %r14d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	$16, %esi
	callq	_FFMIN
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	callq	_skip_bits1
	decl	%ebx
	jne	LBB0_21
LBB0_22:
	movq	%r13, %rdi
	callq	_skip_bits1
	movq	%r13, %rdi
	callq	_skip_bits1
	movq	%r13, %rdi
	callq	_get_bits1
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_hvcc_parse_vui
	jmp	LBB0_24
LBB0_16:
	movl	%eax, %ebx
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.25:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HEVC_MAX_SHORT_TERM_REF_PIC_SETS,4,2 ## @HEVC_MAX_SHORT_TERM_REF_PIC_SETS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_hvcc_parse_sps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hvcc_parse_sps
_hvcc_parse_sps:                        ; @hvcc_parse_sps
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _HEVC_MAX_SHORT_TERM_REF_PIC_SETS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HEVC_MAX_SHORT_TERM_REF_PIC_SETS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	mov	x21, x0
	ldr	w0, [x19, #32]
	add	w1, w21, #1
	bl	_FFMAX
	str	w0, [x19, #32]
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_hvcc_parse_ptl
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	str	w0, [x19]
	cmp	w0, #3
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_skip_bits1
LBB0_2:
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
LBB0_4:
	mov	x0, x20
	bl	_get_ue_golomb_long
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_get_ue_golomb_long
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x23, x0
	mov	x0, x20
	bl	_get_bits1
	cmp	x0, #0
	csel	w24, w21, wzr, eq
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skip_sub_layer_ordering_info
	add	w24, w24, #1
	cmp	w24, w21
	b.ls	LBB0_5
; %bb.6:
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_skip_scaling_list_data
LBB0_9:
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x20
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x0, x20
	bl	_skip_bits1
LBB0_11:
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x24, x0
	ldr	w8, [x25]
	cmp	w8, w24
	b.hs	LBB0_15
LBB0_12:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.14:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	cbz	w24, LBB0_19
; %bb.16:
	mov	w25, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	bl	_parse_rps
	tbnz	w0, #31, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w25, w25, #1
	cmp	w24, w25
	b.ne	LBB0_17
LBB0_19:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_24
; %bb.20:
	mov	x0, x20
	bl	_get_ue_golomb_long
	mov	x22, x0
	cmp	w22, #31
	b.hi	LBB0_12
; %bb.21:
	cbz	w22, LBB0_24
; %bb.22:
	add	w23, w23, #4
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #16
	bl	_FFMIN
	mov	x1, x0
	mov	x0, x20
	bl	_skip_bits
	mov	x0, x20
	bl	_skip_bits1
	subs	w22, w22, #1
	b.ne	LBB0_23
LBB0_24:
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_skip_bits1
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_13
; %bb.25:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_hvcc_parse_vui
	mov	w0, #0
	b	LBB0_13
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HEVC_MAX_SHORT_TERM_REF_PIC_SETS,4,2 ; @HEVC_MAX_SHORT_TERM_REF_PIC_SETS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_hvcc_parse_sps
.subsections_via_symbols
