	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_es_format_to_waveformatex ## -- Begin function vc_container_es_format_to_waveformatex
	.p2align	4, 0x90
_vc_container_es_format_to_waveformatex: ## @vc_container_es_format_to_waveformatex
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_codec_to_waveformat
	movl	%eax, %ecx
	movq	(%rbx), %rdx
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.1:
	movq	_WAVE_FORMAT_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_6
## %bb.2:
	movl	8(%rbx), %edx
	addl	$18, %edx
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	cmpl	%r15d, %edx
	ja	LBB0_6
## %bb.5:
	movl	%ecx, (%r14)
	sarl	$8, %ecx
	movl	%ecx, 4(%r14)
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	$0, 12(%r14)
	movzbl	4(%rax), %ecx
	movl	%ecx, 16(%r14)
	movzbl	5(%rax), %ecx
	movl	%ecx, 20(%r14)
	movzbl	6(%rax), %ecx
	movl	%ecx, 24(%r14)
	movzbl	7(%rax), %ecx
	movl	%ecx, 28(%r14)
	movl	12(%rbx), %ecx
	shrl	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 32(%r14)
	movl	12(%rbx), %ecx
	shrl	$11, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 36(%r14)
	movl	12(%rbx), %ecx
	shrl	$19, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 40(%r14)
	movl	12(%rbx), %ecx
	sarl	$27, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 44(%r14)
	movzbl	8(%rax), %ecx
	movl	%ecx, 48(%r14)
	movzbl	9(%rax), %ecx
	movl	%ecx, 52(%r14)
	movzbl	12(%rax), %ecx
	movl	%ecx, 56(%r14)
	movzbl	13(%rax), %eax
	movl	%eax, 60(%r14)
	movzbl	8(%rbx), %eax
	movl	%eax, 64(%r14)
	movzbl	9(%rbx), %eax
	movl	%eax, 68(%r14)
	addq	$72, %r14
	movl	8(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_memcpy
	movl	8(%rbx), %eax
	addl	$18, %eax
	jmp	LBB0_6
LBB0_3:
	movl	%edx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ## @VC_CONTAINER_ES_TYPE_AUDIO
	.comm	_WAVE_FORMAT_UNKNOWN,4,2        ## @WAVE_FORMAT_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_es_format_to_waveformatex ; -- Begin function vc_container_es_format_to_waveformatex
	.p2align	2
_vc_container_es_format_to_waveformatex: ; @vc_container_es_format_to_waveformatex
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_codec_to_waveformat
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WAVE_FORMAT_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WAVE_FORMAT_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w0, w10, #4, eq
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	add	w8, w8, #18
	cbz	x20, LBB0_5
; %bb.2:
	cmp	w8, w21
	b.ls	LBB0_4
LBB0_3:
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	asr	w8, w0, #8
	stp	w0, w8, [x20]
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	stp	w9, wzr, [x20, #8]
	ldrb	w9, [x8, #4]
	str	w9, [x20, #16]
	ldrb	w9, [x8, #5]
	str	w9, [x20, #20]
	ldrb	w9, [x8, #6]
	str	w9, [x20, #24]
	ldrb	w9, [x8, #7]
	str	w9, [x20, #28]
	ldr	w9, [x19, #12]
	ubfx	w9, w9, #3, #8
	str	w9, [x20, #32]
	ldr	w9, [x19, #12]
	ubfx	w9, w9, #11, #8
	str	w9, [x20, #36]
	ldr	w9, [x19, #12]
	ubfx	w9, w9, #19, #8
	str	w9, [x20, #40]
	ldr	w9, [x19, #12]
	asr	w9, w9, #27
	and	w9, w9, #0xff
	str	w9, [x20, #44]
	ldrb	w9, [x8, #8]
	str	w9, [x20, #48]
	ldrb	w9, [x8, #9]
	str	w9, [x20, #52]
	ldrb	w9, [x8, #12]
	str	w9, [x20, #56]
	ldrb	w8, [x8, #13]
	str	w8, [x20, #60]
	ldrb	w8, [x19, #8]
	str	w8, [x20, #64]
	ldrb	w8, [x19, #9]
	str	w8, [x20, #68]
	add	x0, x20, #72
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #8]
	bl	_memcpy
	ldr	w8, [x19, #8]
	add	w8, w8, #18
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ; @VC_CONTAINER_ES_TYPE_AUDIO
	.comm	_WAVE_FORMAT_UNKNOWN,4,2        ; @WAVE_FORMAT_UNKNOWN
.subsections_via_symbols
