	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_buffering_period
_decode_buffering_period:               ## @decode_buffering_period
	.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	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_get_ue_golomb_31
	movl	%eax, %r12d
	cmpl	$31, %eax
	ja	LBB0_11
## %bb.1:
	movq	(%r13), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	(%rax), %r12
	cmpq	$0, 16(%r12)
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_get_bits_long
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_skip_bits
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.7:
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_get_bits_long
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_skip_bits
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_av_log
	cmpl	$32, %r12d
	jb	LBB0_13
## %bb.12:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_AVERROR_PS_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"non-existing SPS %d referenced in buffering period\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVERROR_PS_NOT_FOUND,4,2       ## @AVERROR_PS_NOT_FOUND
	.no_dead_strip	_decode_buffering_period
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_buffering_period
_decode_buffering_period:               ; @decode_buffering_period
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_get_ue_golomb_31
	mov	x21, x0
	cmp	w0, #31
	b.hi	LBB0_11
; %bb.1:
	ldr	x8, [x23]
	ldr	x8, [x8, w21, uxtw #3]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	x21, [x8]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_get_bits_long
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_skip_bits
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_get_bits_long
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_skip_bits
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_9
LBB0_10:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
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, x22
	mov	x3, x21
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	adrp	x9, _AVERROR_PS_NOT_FOUND@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVERROR_PS_NOT_FOUND@GOTPAGEOFF]
	cmp	w21, #31
	csel	x8, x8, x9, hi
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-existing SPS %d referenced in buffering period\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVERROR_PS_NOT_FOUND,4,2       ; @AVERROR_PS_NOT_FOUND
	.no_dead_strip	_decode_buffering_period
.subsections_via_symbols
