	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_convert_alloc         ## -- Begin function ff_audio_convert_alloc
	.p2align	4, 0x90
_ff_audio_convert_alloc:                ## @ff_audio_convert_alloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	$40, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, 32(%rax)
	movl	%r13d, (%rax)
	movl	%r15d, 4(%rax)
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, 8(%rax)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, 12(%rax)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_AV_RESAMPLE_DITHER_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%r15d, %edx
	je	LBB0_7
## %bb.3:
	movl	%r13d, %edi
	movl	%edx, %r15d
	movl	%r8d, %r14d
	callq	_av_get_packed_sample_fmt
	movl	%r14d, %r8d
	movl	%r15d, %edx
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movl	%edx, %edi
	callq	_av_get_bytes_per_sample
	movl	%r14d, %r8d
	movl	%r15d, %edx
	cmpl	$3, %eax
	jl	LBB0_7
## %bb.5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r8d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_ff_dither_alloc
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.6:
	movq	%rbx, %rdi
	callq	_av_free
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_7:
	movl	%edx, %edi
	movl	%r8d, %esi
	movl	%r8d, %r14d
	callq	_ff_sample_fmt_is_planar
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_ff_sample_fmt_is_planar
	cmpl	%eax, %r12d
	jne	LBB0_12
## %bb.8:
	movq	_CONV_FUNC_TYPE_FLAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.10:
	movl	8(%rbx), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_12:
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	movq	_CONV_FUNC_TYPE_INTERLEAVE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movl	$1, %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_16
LBB0_14:
	movq	_CONV_FUNC_TYPE_DEINTERLEAVE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_16:
	movq	%rbx, %rdi
	callq	_set_generic_function
	movq	_ARCH_AARCH64@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_ff_audio_convert_init_aarch64
LBB0_18:
	movq	_ARCH_ARM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_ff_audio_convert_init_arm
LBB0_20:
	movq	_ARCH_X86@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_ff_audio_convert_init_x86
LBB0_22:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_RESAMPLE_DITHER_NONE,8,3    ## @AV_RESAMPLE_DITHER_NONE
	.comm	_AV_SAMPLE_FMT_S16,8,3          ## @AV_SAMPLE_FMT_S16
	.comm	_CONV_FUNC_TYPE_FLAT,4,2        ## @CONV_FUNC_TYPE_FLAT
	.comm	_CONV_FUNC_TYPE_INTERLEAVE,4,2  ## @CONV_FUNC_TYPE_INTERLEAVE
	.comm	_CONV_FUNC_TYPE_DEINTERLEAVE,4,2 ## @CONV_FUNC_TYPE_DEINTERLEAVE
	.comm	_ARCH_AARCH64,8,3               ## @ARCH_AARCH64
	.comm	_ARCH_ARM,8,3                   ## @ARCH_ARM
	.comm	_ARCH_X86,8,3                   ## @ARCH_X86
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_convert_alloc         ; -- Begin function ff_audio_convert_alloc
	.p2align	2
_ff_audio_convert_alloc:                ; @ff_audio_convert_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x25, x0
	mov	w0, #40
	bl	_av_mallocz
	mov	x19, x0
	cbz	x0, LBB0_20
; %bb.1:
	str	x25, [x19, #32]
	stp	w21, w24, [x19]
	stp	w20, w22, [x19, #8]
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _AV_RESAMPLE_DITHER_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_RESAMPLE_DITHER_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_av_get_packed_sample_fmt
Lloh3:
	adrp	x8, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x24
	bl	_av_get_bytes_per_sample
	cmp	w0, #3
	b.lt	LBB0_6
; %bb.4:
	mov	x0, x25
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	mov	x4, x23
	mov	x5, x22
	bl	_ff_dither_alloc
	str	w0, [x19, #24]
	cbnz	w0, LBB0_20
; %bb.5:
	mov	x0, x19
	bl	_av_free
	mov	x19, #0
	b	LBB0_20
LBB0_6:
	mov	x0, x24
	mov	x1, x20
	bl	_ff_sample_fmt_is_planar
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_ff_sample_fmt_is_planar
	cmp	w22, w0
	b.ne	LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _CONV_FUNC_TYPE_FLAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONV_FUNC_TYPE_FLAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	cbz	w22, LBB0_11
; %bb.8:
	ldr	w8, [x19, #8]
	str	w8, [x19, #16]
	b	LBB0_14
LBB0_9:
	cbz	w22, LBB0_12
; %bb.10:
Lloh9:
	adrp	x8, _CONV_FUNC_TYPE_INTERLEAVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONV_FUNC_TYPE_INTERLEAVE@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x8, _CONV_FUNC_TYPE_DEINTERLEAVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONV_FUNC_TYPE_DEINTERLEAVE@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_14:
	mov	x0, x19
	bl	_set_generic_function
Lloh13:
	adrp	x8, _ARCH_AARCH64@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCH_AARCH64@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_ff_audio_convert_init_aarch64
LBB0_16:
Lloh16:
	adrp	x8, _ARCH_ARM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCH_ARM@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_ff_audio_convert_init_arm
LBB0_18:
Lloh19:
	adrp	x8, _ARCH_X86@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARCH_X86@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_ff_audio_convert_init_x86
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_RESAMPLE_DITHER_NONE,8,3    ; @AV_RESAMPLE_DITHER_NONE
	.comm	_AV_SAMPLE_FMT_S16,8,3          ; @AV_SAMPLE_FMT_S16
	.comm	_CONV_FUNC_TYPE_FLAT,4,2        ; @CONV_FUNC_TYPE_FLAT
	.comm	_CONV_FUNC_TYPE_INTERLEAVE,4,2  ; @CONV_FUNC_TYPE_INTERLEAVE
	.comm	_CONV_FUNC_TYPE_DEINTERLEAVE,4,2 ; @CONV_FUNC_TYPE_DEINTERLEAVE
	.comm	_ARCH_AARCH64,8,3               ; @ARCH_AARCH64
	.comm	_ARCH_ARM,8,3                   ; @ARCH_ARM
	.comm	_ARCH_X86,8,3                   ; @ARCH_X86
.subsections_via_symbols
