	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_nal_sei_active_parameter_sets
_decode_nal_sei_active_parameter_sets:  ## @decode_nal_sei_active_parameter_sets
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_get_bits
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_get_bits
	movq	%r15, %rdi
	callq	_get_ue_golomb_long
	movq	%rax, %rbx
	cmpl	$16, %ebx
	jb	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_get_ue_golomb_long
	movq	_HEVC_MAX_SPS_COUNT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jbe	LBB0_4
## %bb.5:
	movl	%eax, (%r12)
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_get_ue_golomb_long
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
LBB0_2:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"num_sps_ids_minus1 %d invalid\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_HEVC_MAX_SPS_COUNT,4,2         ## @HEVC_MAX_SPS_COUNT
L_.str.1:                               ## @.str.1
	.asciz	"active_parameter_set_id %d invalid\n"

	.no_dead_strip	_decode_nal_sei_active_parameter_sets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_nal_sei_active_parameter_sets
_decode_nal_sei_active_parameter_sets:  ; @decode_nal_sei_active_parameter_sets
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	mov	w1, #4
	bl	_get_bits
	mov	x0, x19
	mov	w1, #1
	bl	_get_bits
	mov	x0, x19
	mov	w1, #1
	bl	_get_bits
	mov	x0, x19
	bl	_get_ue_golomb_long
	mov	x22, x0
	cmp	w22, #16
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_get_ue_golomb_long
	mov	x3, x0
Lloh5:
	adrp	x8, _HEVC_MAX_SPS_COUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HEVC_MAX_SPS_COUNT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ls	LBB0_6
; %bb.3:
	str	w3, [x21]
	cbz	w22, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_ue_golomb_long
	subs	w22, w22, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_7:
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"num_sps_ids_minus1 %d invalid\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_HEVC_MAX_SPS_COUNT,4,2         ; @HEVC_MAX_SPS_COUNT
l_.str.1:                               ; @.str.1
	.asciz	"active_parameter_set_id %d invalid\n"

	.no_dead_strip	_decode_nal_sei_active_parameter_sets
.subsections_via_symbols
