	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_query_formats
_filter_query_formats:                  ## @filter_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	%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	%rdi, %r13
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_2:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	movq	32(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_sanitize_channel_layouts
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	cmpl	$0, 4(%r13)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_sanitize_channel_layouts
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movl	%r14d, %edi
	callq	_ff_all_formats
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_formats
	testl	%eax, %eax
	js	LBB0_21
## %bb.13:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_16
## %bb.14:
	xorl	%eax, %eax
	callq	_ff_all_samplerates
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_samplerates
	testl	%eax, %eax
	js	LBB0_21
## %bb.15:
	xorl	%eax, %eax
	callq	_ff_all_channel_layouts
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_ff_set_common_channel_layouts
	testl	%eax, %eax
	js	LBB0_21
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_17:
	movl	%eax, %r15d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %r15d
	je	LBB0_22
## %bb.18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	24(%r13), %r12d
	movl	%r15d, %edi
	callq	_av_err2str
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_av_log
	jmp	LBB0_22
LBB0_21:
	movl	%eax, %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Query format failed for '%s': %s\n"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_filter_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_query_formats
_filter_query_formats:                  ; @filter_query_formats
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
LBB0_2:
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x9]
	cmp	x9, #0
	csel	x8, x8, x9, eq
LBB0_4:
	ldr	w20, [x8]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_16
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_sanitize_channel_layouts
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_8:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_sanitize_channel_layouts
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_11:
	mov	x0, x20
	bl	_ff_all_formats
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_formats
	tbnz	w0, #31, LBB0_18
; %bb.12:
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_15
; %bb.13:
	bl	_ff_all_samplerates
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_samplerates
	tbnz	w0, #31, LBB0_18
; %bb.14:
	bl	_ff_all_channel_layouts
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_channel_layouts
	tbnz	w0, #31, LBB0_18
LBB0_15:
	mov	w21, #0
	b	LBB0_19
LBB0_16:
	mov	x21, x0
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w21, w0
	b.eq	LBB0_19
; %bb.17:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	ldr	w22, [x19, #24]
	mov	x0, x21
	bl	_av_err2str
	mov	x4, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_av_log
	b	LBB0_19
LBB0_18:
	mov	x21, x0
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Query format failed for '%s': %s\n"

	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_filter_query_formats
.subsections_via_symbols
