	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pick_format
_pick_format:                           ## @pick_format
	.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
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.1:
	movq	%rdi, %r15
	movq	56(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.2:
	movq	%rsi, %r12
	leaq	56(%r15), %r14
	movq	(%r15), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.3:
	testq	%r12, %r12
	je	LBB0_17
## %bb.4:
	cmpq	%rcx, (%r12)
	jne	LBB0_17
## %bb.5:
	movl	8(%r12), %edi
	callq	_av_pix_fmt_desc_get
	movl	(%rax), %ebx
	notl	%ebx
	andl	$1, %ebx
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movl	8(%r12), %edx
	movl	%r13d, %edi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_av_find_best_pix_fmt_of_2
	movl	%eax, %r13d
	incq	%r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r14
	jl	LBB0_7
LBB0_8:
	movq	80(%r15), %r14
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_av_get_pix_fmt_name
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	56(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	callq	_av_get_pix_fmt_name
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_av_log
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	testq	%r12, %r12
	je	LBB0_17
## %bb.10:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.11:
	cmpq	%rcx, (%r12)
	jne	LBB0_17
## %bb.12:
	movq	_AV_SAMPLE_FMT_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movl	8(%r12), %edx
	movl	%r13d, %edi
	callq	_find_best_sample_fmt_of_2
	movl	%eax, %r13d
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_14
LBB0_15:
	movq	80(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_av_get_sample_fmt_name
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	56(%r15), %rax
	movl	(%rax), %ebx
	movl	8(%r12), %edi
	callq	_av_get_sample_fmt_name
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_av_log
LBB0_16:
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movl	%r13d, (%rcx)
LBB0_17:
	movl	$1, (%rax)
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	(%r15), %rax
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.18:
	movq	40(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.20:
	movl	$1, (%rax)
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	24(%r15), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_24
## %bb.21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	80(%r15), %rdi
	movq	88(%r15), %rax
	movl	(%rdi), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	24(%r15), %rax
	cmpl	$0, 16(%rax)
	jne	LBB0_23
## %bb.22:
	movq	80(%r15), %rdi
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_23
LBB0_19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	80(%r15), %rdi
	movq	88(%r15), %rax
	movl	(%rdi), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_24:
	movl	$1, (%rax)
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	movq	%rdi, 64(%r15)
	callq	_FF_LAYOUT2COUNT
	movl	%eax, 72(%r15)
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movq	$0, 64(%r15)
	jmp	LBB0_27
LBB0_26:
	movq	64(%r15), %rdi
	callq	_av_get_channel_layout_nb_channels
	movl	%eax, 72(%r15)
LBB0_27:
	movq	%r14, %rdi
	callq	_ff_formats_unref
	leaq	48(%r15), %rdi
	callq	_ff_formats_unref
	leaq	40(%r15), %rdi
	callq	_ff_formats_unref
	leaq	32(%r15), %rdi
	callq	_ff_formats_unref
	leaq	24(%r15), %rdi
	callq	_ff_channel_layouts_unref
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_ff_channel_layouts_unref
LBB0_28:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"picking %s out of %d ref:%s alpha:%d\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_SAMPLE_FMT_NONE,4,2         ## @AV_SAMPLE_FMT_NONE
L_.str.1:                               ## @.str.1
	.asciz	"picking %s out of %d ref:%s\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Cannot select sample rate for the link between filters %s and %s.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Cannot select channel layout for the link between filters %s and %s.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown channel layouts not supported, try specifying a channel layout using 'aformat=channel_layouts=something'.\n"

	.no_dead_strip	_pick_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pick_format
_pick_format:                           ; @pick_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_29
; %bb.1:
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #56]!
	cbz	x8, LBB0_29
; %bb.2:
	mov	x21, x1
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x27, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x27, [x27, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.3:
	cbz	x21, LBB0_17
; %bb.4:
	ldr	x10, [x21]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.5:
	ldr	w0, [x21, #8]
	bl	_av_pix_fmt_desc_get
	ldr	w8, [x0]
	mvn	w8, w8
	and	w23, w8, #0x1
Lloh5:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x24, lsl #2]
	ldr	w2, [x21, #8]
	mov	x0, x22
	mov	x3, x23
	mov	x4, #0
	bl	_av_find_best_pix_fmt_of_2
	mov	x22, x0
	add	x24, x24, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.lt	LBB0_7
LBB0_8:
	ldr	x24, [x19, #80]
Lloh8:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	mov	x0, x22
	bl	_av_get_pix_fmt_name
	mov	x26, x0
	ldr	x8, [x19, #56]
	ldr	w0, [x21, #8]
	ldr	w21, [x8]
	bl	_av_get_pix_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x23, [sp, #16]
	stp	x26, x21, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	b	LBB0_16
LBB0_9:
	cbz	x21, LBB0_17
; %bb.10:
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.11:
	ldr	x10, [x21]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.12:
Lloh13:
	adrp	x9, _AV_SAMPLE_FMT_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AV_SAMPLE_FMT_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x9]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x23, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x23, lsl #2]
	ldr	w2, [x21, #8]
	mov	x0, x22
	bl	_find_best_sample_fmt_of_2
	mov	x22, x0
	add	x23, x23, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.lt	LBB0_14
LBB0_15:
	ldr	x23, [x19, #80]
Lloh16:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_av_get_sample_fmt_name
	mov	x25, x0
	ldr	x8, [x19, #56]
	ldr	w0, [x21, #8]
	ldr	w21, [x8]
	bl	_av_get_sample_fmt_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #8]
	str	x25, [sp]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x1, x24
LBB0_16:
	bl	_av_log
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	str	w22, [x9]
LBB0_17:
	mov	w9, #1
	str	w9, [x8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.18:
	ldr	x9, [x19, #40]
	ldr	w8, [x9]
	cbz	w8, LBB0_22
; %bb.19:
	mov	w8, #1
	str	w8, [x9]
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	str	w9, [x19, #12]
	ldr	x9, [x19, #24]
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_25
; %bb.20:
Lloh21:
	adrp	x20, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x20, [x20, _AV_LOG_ERROR@GOTPAGEOFF]
	ldr	w1, [x20]
	ldp	x0, x8, [x19, #80]
	ldr	w9, [x0]
	ldr	w8, [x8]
	stp	x9, x8, [sp]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #16]
	cbnz	w8, LBB0_24
; %bb.21:
	ldr	x0, [x19, #80]
	ldr	w1, [x20]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldp	x0, x8, [x19, #80]
	ldr	w9, [x0]
	ldr	w8, [x8]
	stp	x9, x8, [sp]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_23:
	bl	_av_log
LBB0_24:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_25:
	str	w8, [x9]
	ldr	x8, [x9, #8]
	ldr	x0, [x8]
	str	x0, [x19, #64]
	bl	_FF_LAYOUT2COUNT
	str	w0, [x19, #72]
	cbz	w0, LBB0_27
; %bb.26:
	str	xzr, [x19, #64]
	b	LBB0_28
LBB0_27:
	ldr	x0, [x19, #64]
	bl	_av_get_channel_layout_nb_channels
	str	w0, [x19, #72]
LBB0_28:
	mov	x0, x20
	bl	_ff_formats_unref
	add	x0, x19, #48
	bl	_ff_formats_unref
	add	x0, x19, #40
	bl	_ff_formats_unref
	add	x0, x19, #32
	bl	_ff_formats_unref
	add	x0, x19, #24
	bl	_ff_channel_layouts_unref
	add	x0, x19, #16
	bl	_ff_channel_layouts_unref
LBB0_29:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"picking %s out of %d ref:%s alpha:%d\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_SAMPLE_FMT_NONE,4,2         ; @AV_SAMPLE_FMT_NONE
l_.str.1:                               ; @.str.1
	.asciz	"picking %s out of %d ref:%s\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Cannot select sample rate for the link between filters %s and %s.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Cannot select channel layout for the link between filters %s and %s.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown channel layouts not supported, try specifying a channel layout using 'aformat=channel_layouts=something'.\n"

	.no_dead_strip	_pick_format
.subsections_via_symbols
