	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r13
	movq	24(%rdi), %r12
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	(%r12), %rcx
	movl	(%rcx,%r14,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_16
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movl	%r14d, %edi
	callq	_ff_all_formats
	movq	%rax, %rdi
	movq	16(%r13), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r15d
	movq	(%rax,%r15,8), %rsi
	addq	$8, %rsi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_ff_all_samplerates
	movq	%rax, %rbx
	movq	16(%r13), %rax
	movq	(%rax,%r15,8), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_ff_all_channel_layouts
	movq	%rax, %rdi
	movq	16(%r13), %rax
	movq	(%rax,%r15,8), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_19
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 8(%r12)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r12d, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=3
	addl	(%r13), %r15d
	incl	%r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	8(%rax), %r12d
	jae	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r13), %rax
	movl	%r15d, %r15d
	movq	(%rax,%r15,8), %rsi
	addq	$8, %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_ff_formats_ref
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movl	%eax, %ecx
	cmpq	%rcx, %r14
	jb	LBB0_2
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_ALL,4,2                   ## @TYPE_ALL
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _TYPE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	x22, #0
	mov	x21, #0
	mov	w26, #0
	ldr	x25, [x0, #24]
Lloh3:
	adrp	x27, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x9, [x25]
	ldr	w9, [x9, x20, lsl #2]
	cbz	w9, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w26, w9
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w26, w26, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w26, w8
	b.eq	LBB0_16
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x0, x20
	bl	_ff_all_formats
	mov	x23, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, w26, uxtw #3]
	add	x1, x8, #8
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x27]
	cmp	x20, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w24, w26
	bl	_ff_all_samplerates
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x24, lsl #3]
	add	x1, x8, #4
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	bl	_ff_all_channel_layouts
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x24, lsl #3]
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	w24, #0
	mov	x28, x26
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	ldr	w8, [x19]
	add	w28, w28, w8
	add	w24, w24, #1
	ldr	w8, [x25, #8]
	cmp	w24, w8
	b.hs	LBB0_4
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w28, uxtw #3]
	add	x1, x8, #8
	mov	x0, x23
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	mov	w28, w28
	ldr	w8, [x27]
	cmp	x20, x8
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=3
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x28, lsl #3]
	add	x1, x8, #4
	mov	x0, x21
	bl	_ff_formats_ref
	tbnz	w0, #31, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=3
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x28, lsl #3]
	mov	x0, x22
	bl	_ff_channel_layouts_ref
	tbz	w0, #31, LBB0_11
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh5:
	adrp	x8, _TYPE_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TYPE_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.lo	LBB0_2
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_ALL,4,2                   ; @TYPE_ALL
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_query_formats
.subsections_via_symbols
