	.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	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r15
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_are_gains_pure
	movl	%eax, 16(%r12)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ff_all_formats
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ff_set_common_formats
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_ff_all_samplerates
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_samplerates
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_ff_all_channel_counts
	addq	$4, %r15
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	$0, -40(%rbp)
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	callq	_FF_COUNT2LAYOUT
	movq	%rax, %rsi
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	-40(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ff_channel_layouts_ref
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.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	x21, x0
	ldp	x8, x20, [x0, #8]
	ldr	x9, [x0]
	ldr	x22, [x8]
	ldr	x19, [x9]
	mov	x0, x20
	bl	_are_gains_pure
	str	w0, [x20, #16]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ff_all_formats
	mov	x1, x0
	mov	x0, x21
	bl	_ff_set_common_formats
	tbnz	w0, #31, LBB0_7
; %bb.1:
	bl	_ff_all_samplerates
	mov	x1, x0
	mov	x0, x21
	bl	_ff_set_common_samplerates
	tbnz	w0, #31, LBB0_7
; %bb.2:
	bl	_ff_all_channel_counts
	add	x1, x22, #4
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_7
; %bb.3:
	str	xzr, [sp, #8]
	ldr	x1, [x20, #8]
	cbnz	x1, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	bl	_FF_COUNT2LAYOUT
	mov	x1, x0
LBB0_5:
	add	x0, sp, #8
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_ff_channel_layouts_ref
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_query_formats
.subsections_via_symbols
