	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_vaapi_RefPicList
_fill_vaapi_RefPicList:                 ## @fill_vaapi_RefPicList
	.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	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_1
## %bb.6:
	movq	%rsi, %r13
	movl	%edx, %r12d
	shlq	$4, %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r12
	je	LBB0_2
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %eax
	incl	%r15d
	leaq	(%r14,%rax,4), %rdi
	movl	8(%r13,%rbx), %esi
	callq	_fill_vaapi_pic
	jmp	LBB0_9
LBB0_2:
	cmpl	$31, %r15d
	jbe	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	leaq	(%r14,%rax,4), %rbx
	addl	$-32, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_init_vaapi_pic
	addq	$4, %rbx
	incl	%r15d
	jne	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_vaapi_RefPicList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_vaapi_RefPicList
_fill_vaapi_RefPicList:                 ; @fill_vaapi_RefPicList
	.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	x19, x0
	mov	w8, #0
	cbz	w2, LBB0_6
; %bb.1:
	mov	w20, w2
	add	x21, x1, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #16
	subs	x20, x20, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x2, [x21, #-8]
	cbz	x2, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w8, #1
	add	x0, x19, w8, uxtw #2
	ldr	w1, [x21]
	bl	_fill_vaapi_pic
	mov	x8, x22
	b	LBB0_2
LBB0_5:
	cmp	w8, #31
	b.hi	LBB0_8
LBB0_6:
	add	x19, x19, w8, uxtw #2
	sub	w20, w8, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_init_vaapi_pic
	add	x19, x19, #4
	adds	w20, w20, #1
	b.lo	LBB0_7
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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_vaapi_RefPicList
.subsections_via_symbols
