	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function join_query_formats
_join_query_formats:                    ## @join_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	$0, -24(%rbp)
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdi
	callq	_ff_add_channel_layout
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	-24(%rbp), %rdi
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ff_all_channel_layouts
	movq	%rax, -24(%rbp)
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%rax, %rdi
	callq	_ff_channel_layouts_ref
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_ff_planar_sample_fmts
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_set_common_formats
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_ff_all_samplerates
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_set_common_samplerates
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_join_query_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function join_query_formats
_join_query_formats:                    ; @join_query_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	str	xzr, [sp, #8]
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ff_add_channel_layout
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x0, [sp, #8]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ff_all_channel_layouts
	str	x0, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x20, lsl #3]
	bl	_ff_channel_layouts_ref
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_6:
	bl	_ff_planar_sample_fmts
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_formats
	tbnz	w0, #31, LBB0_8
; %bb.7:
	bl	_ff_all_samplerates
	mov	x1, x0
	mov	x0, x19
	bl	_ff_set_common_samplerates
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_join_query_formats
.subsections_via_symbols
