// File: /workspace/github_c_makefile_star2_O0/tvlabs[P]edge264/./edge264_sei.c
// Function: parse_buffering_period
static int parse_buffering_period(Edge264Decoder *dec) {
	if (get_ue16(&dec->_gb, 31))
		return ENOTSUP;
	log_dec(dec, "    nal_hrd_parameters:\n");
	for (int i = dec->sps.nal_hrd_cpb_cnt; i--; ) {
		int initial_cpb_removal_delay = get_uv(&dec->_gb, dec->sps.initial_cpb_removal_delay_length);
		int initial_cpb_removal_delay_offset = get_uv(&dec->_gb, dec->sps.initial_cpb_removal_delay_length);
		log_dec(dec, "      - initial_cpb_removal_delay: %u\n"
			"        initial_cpb_removal_delay_offset: %u\n",
			initial_cpb_removal_delay, initial_cpb_removal_delay_offset);
	}
	log_dec(dec, "    vcl_hrd_parameters:\n");
	for (int i = dec->sps.vcl_hrd_cpb_cnt; i--; ) {
		int initial_cpb_removal_delay = get_uv(&dec->_gb, dec->sps.initial_cpb_removal_delay_length);
		int initial_cpb_removal_delay_offset = get_uv(&dec->_gb, dec->sps.initial_cpb_removal_delay_length);
		log_dec(dec, "      - initial_cpb_removal_delay: %u\n"
			"        initial_cpb_removal_delay_offset: %u\n",
			initial_cpb_removal_delay, initial_cpb_removal_delay_offset);
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movl $0x1f, %esi
callq 0x76d10
cmpl $0x0, %eax
je 0x6546b
movl $0x5f, -0x4(%rbp)
jmp 0x656c6
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
cmpq $0x2542, %rax           # imm = 0x2542
jae 0x654d2
movq -0x10(%rbp), %rdi
addq $0x7ca2, %rdi           # imm = 0x7CA2
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %eax
cltq
addq %rax, %rdi
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
movl $0x2542, %esi           # imm = 0x2542
subq %rax, %rsi
leaq 0x6b18f(%rip), %rdx     # 0xd0644
movb $0x0, %al
callq 0x7070
movl %eax, %edx
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %ecx
addl %edx, %ecx
movw %cx, 0x7ca0(%rax)
movq -0x10(%rbp), %rax
movsbl 0x535(%rax), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x14(%rbp)
cmpl $0x0, %eax
je 0x65595
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl 0x537(%rax), %esi
callq 0x65e90
movl %eax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl 0x537(%rax), %esi
callq 0x65e90
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
cmpq $0x2542, %rax           # imm = 0x2542
jae 0x65590
movq -0x10(%rbp), %rdi
addq $0x7ca2, %rdi           # imm = 0x7CA2
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %eax
cltq
addq %rax, %rdi
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
movl $0x2542, %esi           # imm = 0x2542
subq %rax, %rsi
movl -0x18(%rbp), %ecx
movl -0x1c(%rbp), %r8d
leaq 0x6b0ea(%rip), %rdx     # 0xd065d
movb $0x0, %al
callq 0x7070
movl %eax, %edx
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %ecx
addl %edx, %ecx
movw %cx, 0x7ca0(%rax)
jmp 0x654e0
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
cmpq $0x2542, %rax           # imm = 0x2542
jae 0x655fc
movq -0x10(%rbp), %rdi
addq $0x7ca2, %rdi           # imm = 0x7CA2
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %eax
cltq
addq %rax, %rdi
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
movl $0x2542, %esi           # imm = 0x2542
subq %rax, %rsi
leaq 0x6b0d2(%rip), %rdx     # 0xd06b1
movb $0x0, %al
callq 0x7070
movl %eax, %edx
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %ecx
addl %edx, %ecx
movw %cx, 0x7ca0(%rax)
movq -0x10(%rbp), %rax
movsbl 0x536(%rax), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x20(%rbp)
cmpl $0x0, %eax
je 0x656bf
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl 0x537(%rax), %esi
callq 0x65e90
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movsbl 0x537(%rax), %esi
callq 0x65e90
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
cmpq $0x2542, %rax           # imm = 0x2542
jae 0x656ba
movq -0x10(%rbp), %rdi
addq $0x7ca2, %rdi           # imm = 0x7CA2
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %eax
cltq
addq %rax, %rdi
movq -0x10(%rbp), %rax
movswq 0x7ca0(%rax), %rax
movl $0x2542, %esi           # imm = 0x2542
subq %rax, %rsi
movl -0x24(%rbp), %ecx
movl -0x28(%rbp), %r8d
leaq 0x6afc0(%rip), %rdx     # 0xd065d
movb $0x0, %al
callq 0x7070
movl %eax, %edx
movq -0x10(%rbp), %rax
movswl 0x7ca0(%rax), %ecx
addl %edx, %ecx
movw %cx, 0x7ca0(%rax)
jmp 0x6560a
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop