	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_formats
_query_formats:                         ## @query_formats
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r12
	movq	$0, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r15
	movq	8(%rcx), %r14
	movq	(%rax), %rbx
	movabsq	$-4294919296, %rax              ## imm = 0xFFFFFFFF0000BB80
	movq	%rax, -40(%rbp)
	leaq	_query_formats.sample_fmts(%rip), %rdi
	callq	_ff_make_format_list
	leaq	12(%rbx), %rsi
	movq	%rax, %rdi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movl	4(%r12), %edi
	callq	_FF_COUNT2LAYOUT
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	-48(%rbp), %rdi
	leaq	8(%rbx), %rsi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_ff_make_format_list
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	addq	$4, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	leaq	_query_formats.pix_fmts(%rip), %rdi
	callq	_ff_make_format_list
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	leaq	_query_formats.pix_fmts(%rip), %rdi
	callq	_ff_make_format_list
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ff_formats_ref
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @query_formats.sample_fmts
_query_formats.sample_fmts:
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.p2align	4                               ## @query_formats.pix_fmts
_query_formats.pix_fmts:
	.long	134                             ## 0x86
	.long	135                             ## 0x87
	.long	132                             ## 0x84
	.long	130                             ## 0x82
	.long	131                             ## 0x83
	.long	133                             ## 0x85

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_formats
_query_formats:                         ; @query_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldp	x8, x22, [x0, #8]
	str	xzr, [sp, #8]
	ldr	x9, [x0]
	ldp	x20, x19, [x8]
	ldr	x21, [x9]
	mov	x8, #-17536
	movk	x8, #0, lsl #16
	str	x8, [sp]
Lloh0:
	adrp	x0, _query_formats.sample_fmts@PAGE
Lloh1:
	add	x0, x0, _query_formats.sample_fmts@PAGEOFF
	bl	_ff_make_format_list
	add	x1, x21, #12
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	w0, [x22, #4]
	bl	_FF_COUNT2LAYOUT
	mov	x1, x0
	add	x0, sp, #8
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	x0, [sp, #8]
	add	x1, x21, #8
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	w8, [x22]
	str	w8, [sp]
	mov	x0, sp
	bl	_ff_make_format_list
	cbz	x0, LBB0_9
; %bb.4:
	add	x1, x21, #4
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh2:
	adrp	x0, _query_formats.pix_fmts@PAGE
Lloh3:
	add	x0, x0, _query_formats.pix_fmts@PAGEOFF
	bl	_ff_make_format_list
	cbz	x0, LBB0_9
; %bb.6:
	mov	x1, x20
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_10
; %bb.7:
Lloh4:
	adrp	x0, _query_formats.pix_fmts@PAGE
Lloh5:
	add	x0, x0, _query_formats.pix_fmts@PAGEOFF
	bl	_ff_make_format_list
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x19
	bl	_ff_formats_ref
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @query_formats.sample_fmts
_query_formats.sample_fmts:
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.p2align	2                               ; @query_formats.pix_fmts
_query_formats.pix_fmts:
	.long	134                             ; 0x86
	.long	135                             ; 0x87
	.long	132                             ; 0x84
	.long	130                             ; 0x82
	.long	131                             ; 0x83
	.long	133                             ; 0x85

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_query_formats
.subsections_via_symbols
