	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdpau_frames_init
_vdpau_frames_init:                     ## @vdpau_frames_init
	.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, %r13
	movq	8(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	movq	_vdpau_pix_fmts@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	-8(%rdi,%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	cmpl	$1, 4(%r15)
	jg	LBB0_7
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r13), %rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	(%rdi,%r14), %eax
	movl	%eax, 20(%r15)
	movl	%ebx, (%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, 16(%r15)
	movq	(%rcx), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, 4(%r15)
	cmpl	$1, 4(%r15)
	jle	LBB0_6
LBB0_7:
	cmpl	$0, 16(%r13)
	jne	LBB0_11
## %bb.8:
	movq	_vdpau_pool_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_av_buffer_pool_init2
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	12(%rcx), %eax
	movl	%eax, 12(%r15)
	movl	8(%rcx), %eax
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_vdpau_pix_fmts,8,3             ## @vdpau_pix_fmts
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported sw format: %s\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_vdpau_pool_alloc,4,2           ## @vdpau_pool_alloc
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vdpau_frames_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdpau_frames_init
_vdpau_frames_init:                     ; @vdpau_frames_init
	.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	x19, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x22, _vdpau_pix_fmts@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vdpau_pix_fmts@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0, x24]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	bl	_FF_ARRAY_ELEMS
	add	x24, x24, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	add	x8, x0, x24
	ldr	w8, [x8, #8]
	str	w8, [x21, #20]
	str	w23, [x21]
	ldr	x8, [x20, #16]
	lsl	x9, x23, #2
	ldr	w8, [x8, x9]
	str	w8, [x21, #16]
	ldr	x8, [x20]
	ldr	w8, [x8, x9]
	str	w8, [x21, #4]
LBB0_5:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_av_get_pix_fmt_name
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
Lloh7:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_8:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _vdpau_pool_alloc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vdpau_pool_alloc@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w0, #4
	mov	x1, x19
	mov	x3, #0
	bl	_av_buffer_pool_init2
	ldr	x8, [x19, #8]
	str	w0, [x8]
	cbz	w0, LBB0_11
LBB0_10:
	ldr	d0, [x20, #8]
	str	d0, [x21, #8]
	mov	w0, #0
	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
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_vdpau_pix_fmts,8,3             ; @vdpau_pix_fmts
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported sw format: %s\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_vdpau_pool_alloc,4,2           ; @vdpau_pool_alloc
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vdpau_frames_init
.subsections_via_symbols
