	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rdi), %r15
	leaq	_query_formats.sample_fmts(%rip), %rdi
	callq	_ff_make_format_list
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_formats
	testl	%eax, %eax
	js	LBB0_29
## %bb.4:
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_ff_all_samplerates
	testq	%rax, %rax
	jne	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_31
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movl	4(%r15), %eax
	movl	%eax, -40(%rbp)
	movl	$-1, -36(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_ff_make_format_list
LBB0_7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_samplerates
	testl	%eax, %eax
	js	LBB0_29
## %bb.8:
	movl	(%r15), %edi
	cmpl	$2, %edi
	je	LBB0_15
## %bb.9:
	cmpl	$1, %edi
	jne	LBB0_19
## %bb.10:
	cmpl	$1, 8(%r15)
	jne	LBB0_18
## %bb.11:
	xorl	%eax, %eax
	callq	_ff_all_channel_counts
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_channel_layouts
	jmp	LBB0_27
LBB0_15:
	cmpl	$2, 8(%r15)
	jne	LBB0_18
## %bb.16:
	movq	$0, -40(%rbp)
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_29
## %bb.17:
	movq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ff_set_common_channel_layouts
	jmp	LBB0_27
LBB0_19:
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	jge	LBB0_20
	jmp	LBB0_24
LBB0_18:
	movq	8(%rbx), %rax
	movq	(%rax), %r14
LBB0_20:
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	callq	_FF_COUNT2LAYOUT
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_29
## %bb.21:
	movq	-40(%rbp), %rdi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_29
## %bb.22:
	cmpl	$0, 8(%r15)
	jne	LBB0_24
## %bb.23:
	movq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_29
LBB0_24:
	movl	8(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_28
## %bb.25:
	callq	_FF_COUNT2LAYOUT
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_29
## %bb.26:
	movq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ff_channel_layouts_ref
LBB0_27:
	testl	%eax, %eax
	js	LBB0_29
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_31
## %bb.30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_29
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @query_formats.sample_fmts
_query_formats.sample_fmts:
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x21, [x0, #16]
Lloh3:
	adrp	x0, _query_formats.sample_fmts@PAGE
Lloh4:
	add	x0, x0, _query_formats.sample_fmts@PAGEOFF
	bl	_ff_make_format_list
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_formats
	tbnz	w0, #31, LBB0_27
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.3:
	bl	_ff_all_samplerates
	cbnz	x0, LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.5:
	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
	b	_AVERROR
LBB0_6:
	ldr	w8, [x21, #4]
	mov	w9, #-1
	stp	w8, w9, [sp]
	mov	x0, sp
	bl	_ff_make_format_list
LBB0_7:
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_samplerates
	tbnz	w0, #31, LBB0_27
; %bb.8:
	ldr	w0, [x21]
	cmp	w0, #2
	b.eq	LBB0_13
; %bb.9:
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.10:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.11:
	bl	_ff_all_channel_counts
	str	x0, [sp]
	cbz	x0, LBB0_29
; %bb.12:
	mov	x1, x0
	b	LBB0_16
LBB0_13:
	ldr	w8, [x21, #8]
	cmp	w8, #2
	b.ne	LBB0_18
; %bb.14:
	str	xzr, [sp]
Lloh11:
	adrp	x8, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_27
; %bb.15:
	ldr	x1, [sp]
LBB0_16:
	mov	x0, x19
	bl	_ff_set_common_channel_layouts
	tbz	w0, #31, LBB0_26
	b	LBB0_27
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	cmp	w0, #1
	b.ge	LBB0_19
	b	LBB0_23
LBB0_18:
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
LBB0_19:
	ldr	x8, [x19]
	ldr	x19, [x8]
	bl	_FF_COUNT2LAYOUT
	mov	x1, x0
	str	xzr, [sp]
	mov	x0, sp
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_27
; %bb.20:
	ldr	x0, [sp]
	add	x1, x19, #4
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_27
; %bb.21:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_23
; %bb.22:
	ldr	x0, [sp]
	mov	x1, x20
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_27
LBB0_23:
	ldr	w0, [x21, #8]
	cmp	w0, #1
	b.lt	LBB0_26
; %bb.24:
	bl	_FF_COUNT2LAYOUT
	mov	x1, x0
	str	xzr, [sp]
	mov	x0, sp
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_27
; %bb.25:
	ldr	x0, [sp]
	mov	x1, x20
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_27
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldr	x8, [sp, #8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.28:
	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
LBB0_29:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_27
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @query_formats.sample_fmts
_query_formats.sample_fmts:
	.long	129                             ; 0x81
	.long	128                             ; 0x80

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