	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdpau_frames_get_constraints
_vdpau_frames_get_constraints:          ## @vdpau_frames_get_constraints
	.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	%rdx, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_vdpau_pix_fmts@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	cmpl	$2, (%rax,%rbx,4)
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%r14), %rcx
	movslq	%r13d, %rdx
	incl	%r13d
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_6
LBB0_2:
	xorl	%r13d, %r13d
LBB0_7:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	8(%r14), %rcx
	movslq	%r13d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	$2, %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_AV_PIX_FMT_VDPAU@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	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
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vdpau_pix_fmts,8,3             ## @vdpau_pix_fmts
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_VDPAU,8,3           ## @AV_PIX_FMT_VDPAU
	.no_dead_strip	_vdpau_frames_get_constraints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdpau_frames_get_constraints
_vdpau_frames_get_constraints:          ; @vdpau_frames_get_constraints
	.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, x2
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x21, _vdpau_pix_fmts@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vdpau_pix_fmts@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	add	w0, w0, #1
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x23, #0
	mov	w22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	x23, w0, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, x23, lsl #2]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x19, #8]
	str	x8, [x9, w22, sxtw #3]
	add	w22, w22, #1
	b	LBB0_3
LBB0_6:
	mov	w22, #0
LBB0_7:
Lloh2:
	adrp	x20, _AV_PIX_FMT_NONE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	str	x8, [x9, w22, sxtw #3]
	mov	w0, #2
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
Lloh4:
	adrp	x8, _AV_PIX_FMT_VDPAU@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_PIX_FMT_VDPAU@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	x8, [x9, #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_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vdpau_pix_fmts,8,3             ; @vdpau_pix_fmts
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_VDPAU,8,3           ; @AV_PIX_FMT_VDPAU
	.no_dead_strip	_vdpau_frames_get_constraints
.subsections_via_symbols
