	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swri_audio_convert_alloc       ## -- Begin function swri_audio_convert_alloc
	.p2align	4, 0x90
_swri_audio_convert_alloc:              ## @swri_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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	_fmt_pair_to_conv_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_av_get_packed_sample_fmt
	movq	%rax, %rbx
	movq	_AV_SAMPLE_FMT_NB@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%r12d, %edi
	callq	_av_get_packed_sample_fmt
	imulq	%r13, %rax
	addq	%rbx, %rax
	movq	(%r14,%rax,8), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movl	$32, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movl	%r15d, %r13d
	cmpl	$1, %r15d
	jne	LBB0_6
## %bb.3:
	movl	%r12d, %edi
	callq	_av_get_planar_sample_fmt
	movl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_get_planar_sample_fmt
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_6:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_7:
	movl	%r13d, (%rbx)
	movq	%r14, 24(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 8(%rbx)
	movq	_AV_SAMPLE_FMT_U8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_9
## %bb.8:
	movq	_AV_SAMPLE_FMT_U8P@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_10
LBB0_9:
	movl	20(%rbx), %edi
	movl	$128, %esi
	movl	$4, %edx
	callq	_memset
LBB0_10:
	testq	%r14, %r14
	jne	LBB0_15
## %bb.11:
	cmpl	%r12d, %r15d
	jne	LBB0_15
## %bb.12:
	movl	%r12d, %edi
	callq	_av_get_bytes_per_sample
	decl	%eax
	cmpl	$7, %eax
	ja	LBB0_15
## %bb.13:
	movl	$139, %ecx
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.14:
	cltq
	leaq	l_switch.table.swri_audio_convert_alloc(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_15:
	movq	_HAVE_X86ASM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.16:
	movq	_HAVE_MMX@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_swri_audio_convert_init_x86
LBB0_18:
	movq	_ARCH_ARM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_swri_audio_convert_init_arm
LBB0_20:
	movq	_ARCH_AARCH64@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_swri_audio_convert_init_aarch64
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	_fmt_pair_to_conv_functions,8,3 ## @fmt_pair_to_conv_functions
	.comm	_AV_SAMPLE_FMT_NB,8,3           ## @AV_SAMPLE_FMT_NB
	.comm	_AV_SAMPLE_FMT_U8,4,2           ## @AV_SAMPLE_FMT_U8
	.comm	_AV_SAMPLE_FMT_U8P,4,2          ## @AV_SAMPLE_FMT_U8P
	.comm	_cpy1,4,2                       ## @cpy1
	.comm	_cpy2,4,2                       ## @cpy2
	.comm	_cpy4,4,2                       ## @cpy4
	.comm	_cpy8,4,2                       ## @cpy8
	.comm	_HAVE_X86ASM,8,3                ## @HAVE_X86ASM
	.comm	_HAVE_MMX,8,3                   ## @HAVE_MMX
	.comm	_ARCH_ARM,8,3                   ## @ARCH_ARM
	.comm	_ARCH_AARCH64,8,3               ## @ARCH_AARCH64
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.swri_audio_convert_alloc
l_switch.table.swri_audio_convert_alloc:
	.quad	_cpy1
	.quad	_cpy2
	.quad	_cpy1
	.quad	_cpy4
	.quad	_cpy1
	.quad	_cpy1
	.quad	_cpy1
	.quad	_cpy8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swri_audio_convert_alloc       ; -- Begin function swri_audio_convert_alloc
	.p2align	2
_swri_audio_convert_alloc:              ; @swri_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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _fmt_pair_to_conv_functions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fmt_pair_to_conv_functions@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	bl	_av_get_packed_sample_fmt
	mov	x22, x0
Lloh3:
	adrp	x8, _AV_SAMPLE_FMT_NB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_SAMPLE_FMT_NB@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	mov	x0, x20
	bl	_av_get_packed_sample_fmt
	madd	x8, x0, x25, x22
	ldr	x24, [x24, x8, lsl #3]
	cbz	x24, LBB0_17
; %bb.1:
	mov	w0, #32
	bl	_av_mallocz
	mov	x22, x0
	cbz	x0, LBB0_18
; %bb.2:
	cmp	w19, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_av_get_planar_sample_fmt
	mov	x20, x0
	mov	x0, x21
	bl	_av_get_planar_sample_fmt
	mov	x21, x0
LBB0_4:
	str	w19, [x22]
	str	x24, [x22, #24]
	str	x23, [x22, #8]
Lloh6:
	adrp	x8, _AV_SAMPLE_FMT_U8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_SAMPLE_FMT_U8@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AV_SAMPLE_FMT_U8P@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_SAMPLE_FMT_U8P@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x22, #20]
	mov	w1, #128
	mov	w2, #4
	bl	_memset
LBB0_6:
	cbnz	x23, LBB0_11
; %bb.7:
	cmp	w21, w20
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_av_get_bytes_per_sample
	sub	w8, w0, #1
	cmp	w8, #7
	b.hi	LBB0_11
; %bb.9:
	mov	w9, #139
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_11
; %bb.10:
Lloh12:
	adrp	x9, l_switch.table.swri_audio_convert_alloc@PAGE
Lloh13:
	add	x9, x9, l_switch.table.swri_audio_convert_alloc@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x22, #16]
LBB0_11:
Lloh14:
	adrp	x8, _HAVE_X86ASM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HAVE_X86ASM@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HAVE_MMX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HAVE_MMX@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_swri_audio_convert_init_x86
LBB0_13:
Lloh20:
	adrp	x8, _ARCH_ARM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCH_ARM@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_swri_audio_convert_init_arm
LBB0_15:
Lloh23:
	adrp	x8, _ARCH_AARCH64@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCH_AARCH64@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.16:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_swri_audio_convert_init_aarch64
	b	LBB0_18
LBB0_17:
	mov	x22, #0
LBB0_18:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_fmt_pair_to_conv_functions,8,3 ; @fmt_pair_to_conv_functions
	.comm	_AV_SAMPLE_FMT_NB,8,3           ; @AV_SAMPLE_FMT_NB
	.comm	_AV_SAMPLE_FMT_U8,4,2           ; @AV_SAMPLE_FMT_U8
	.comm	_AV_SAMPLE_FMT_U8P,4,2          ; @AV_SAMPLE_FMT_U8P
	.comm	_cpy1,4,2                       ; @cpy1
	.comm	_cpy2,4,2                       ; @cpy2
	.comm	_cpy4,4,2                       ; @cpy4
	.comm	_cpy8,4,2                       ; @cpy8
	.comm	_HAVE_X86ASM,8,3                ; @HAVE_X86ASM
	.comm	_HAVE_MMX,8,3                   ; @HAVE_MMX
	.comm	_ARCH_ARM,8,3                   ; @ARCH_ARM
	.comm	_ARCH_AARCH64,8,3               ; @ARCH_AARCH64
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.swri_audio_convert_alloc
l_switch.table.swri_audio_convert_alloc:
	.quad	_cpy1
	.quad	_cpy2
	.quad	_cpy1
	.quad	_cpy4
	.quad	_cpy1
	.quad	_cpy1
	.quad	_cpy1
	.quad	_cpy8

.subsections_via_symbols
