	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channelmap_query_formats
_channelmap_query_formats:              ## @channelmap_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, %r14
	movq	16(%rdi), %rbx
	movq	$0, -32(%rbp)
	xorl	%eax, %eax
	callq	_ff_all_channel_counts
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movl	(%rbx), %esi
	leaq	-32(%rbp), %rdi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_ff_planar_sample_fmts
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_set_common_formats
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_ff_all_samplerates
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_set_common_samplerates
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rdi
	movq	(%r14), %rax
	movq	(%rax), %rsi
	callq	_ff_channel_layouts_ref
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_8
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_freep
	jmp	LBB0_7
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_7:
	leaq	-40(%rbp), %rdi
	callq	_av_freep
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_channelmap_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channelmap_query_formats
_channelmap_query_formats:              ; @channelmap_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	x20, x0
	ldr	x21, [x0, #16]
	str	xzr, [sp]
	bl	_ff_all_channel_counts
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w1, [x21]
	mov	x0, sp
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_7
; %bb.2:
	bl	_ff_planar_sample_fmts
	mov	x1, x0
	mov	x0, x20
	bl	_ff_set_common_formats
	tbnz	w0, #31, LBB0_7
; %bb.3:
	bl	_ff_all_samplerates
	mov	x1, x0
	mov	x0, x20
	bl	_ff_set_common_samplerates
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x0, [sp]
	ldr	x8, [x20]
	ldr	x1, [x8]
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w21, #0
	b	LBB0_10
LBB0_7:
	mov	x21, x0
	mov	x0, x19
	bl	_av_freep
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_9:
	add	x0, sp, #8
	bl	_av_freep
LBB0_10:
	mov	x0, x21
	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	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_channelmap_query_formats
.subsections_via_symbols
