	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d11va_frames_get_constraints
_d3d11va_frames_get_constraints:        ## @d3d11va_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rdi), %r12
	movq	_supported_formats@GOTPCREL(%rip), %r13
	movq	(%r13), %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(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_2
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	(%r13), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	8(%rax,%r14), %esi
	leaq	-44(%rbp), %rdx
	callq	_ID3D11Device_CheckFormatSupport
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_D3D11_FORMAT_SUPPORT_TEXTURE2D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movslq	%ebx, %rdx
	incl	%ebx
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	xorl	%ebx, %ebx
LBB0_9:
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rcx
	movslq	%ebx, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	$2, %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_AV_PIX_FMT_D3D11@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported_formats,8,3          ## @supported_formats
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_D3D11_FORMAT_SUPPORT_TEXTURE2D,4,2 ## @D3D11_FORMAT_SUPPORT_TEXTURE2D
	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_D3D11,8,3           ## @AV_PIX_FMT_D3D11
	.no_dead_strip	_d3d11va_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 d3d11va_frames_get_constraints
_d3d11va_frames_get_constraints:        ; @d3d11va_frames_get_constraints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _supported_formats@GOTPAGE
Lloh1:
	ldr	x21, [x21, _supported_formats@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_7
; %bb.1:
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	mov	w22, #0
Lloh2:
	adrp	x25, _D3D11_FORMAT_SUPPORT_TEXTURE2D@GOTPAGE
Lloh3:
	ldr	x25, [x25, _D3D11_FORMAT_SUPPORT_TEXTURE2D@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	add	x23, x23, #16
	cmp	x24, w0, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	w1, [x8, #8]
	add	x2, sp, #12
	bl	_ID3D11Device_CheckFormatSupport
	bl	_SUCCEEDED
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x23]
	ldr	x9, [x19, #8]
	str	x8, [x9, w22, sxtw #3]
	add	w22, w22, #1
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
LBB0_8:
	mov	w22, #0
LBB0_9:
Lloh7:
	adrp	x20, _AV_PIX_FMT_NONE@GOTPAGE
Lloh8:
	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_11
; %bb.10:
	mov	x8, x0
	mov	w0, #0
Lloh9:
	adrp	x9, _AV_PIX_FMT_D3D11@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PIX_FMT_D3D11@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	x8, [x9, #8]
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_supported_formats,8,3          ; @supported_formats
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_D3D11_FORMAT_SUPPORT_TEXTURE2D,4,2 ; @D3D11_FORMAT_SUPPORT_TEXTURE2D
	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
	.comm	_AV_PIX_FMT_D3D11,8,3           ; @AV_PIX_FMT_D3D11
	.no_dead_strip	_d3d11va_frames_get_constraints
.subsections_via_symbols
