	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function Decode
LCPI0_0:
	.long	0x34000000                      ## float 1.1920929E-7
	.long	0x34000000                      ## float 1.1920929E-7
	.long	0x34000000                      ## float 1.1920929E-7
	.long	0x34000000                      ## float 1.1920929E-7
LCPI0_3:
	.long	0x38000000                      ## float 3.05175781E-5
	.long	0x38000000                      ## float 3.05175781E-5
	.long	0x38000000                      ## float 3.05175781E-5
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x34000000                      ## float 1.1920929E-7
LCPI0_2:
	.long	0x36000000                      ## float 1.90734863E-6
LCPI0_4:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_Decode:                                ## @Decode
	.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
	movq	(%rdi), %r14
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_57
## %bb.1:
	movl	4(%r14), %r12d
	imull	%r12d, %ebx
	shll	$2, %ebx
	movq	56(%r14), %r8
	cmpl	%ebx, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	%r8, %rdi
	movl	%ebx, %esi
	callq	_realloc
	movq	%rax, %r8
	movq	%rax, 56(%r14)
	movl	%ebx, 8(%r14)
	movl	4(%r14), %r12d
LBB0_3:
	movl	12(%r14), %eax
	movl	16(%r14), %ecx
	cltd
	idivl	%r12d
	cmpl	$24, %ecx
	je	LBB0_19
## %bb.4:
	cmpl	$20, %ecx
	je	LBB0_42
## %bb.5:
	cmpl	$16, %ecx
	jne	LBB0_51
## %bb.6:
	testl	%eax, %eax
	je	LBB0_51
## %bb.7:
	movq	24(%r14), %rcx
	leal	-1(%r12), %r10d
	leaq	1(%r10), %r9
	movq	%r9, %r11
	andq	$-8, %r11
	leaq	(%r11,%r11), %rsi
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_3(%rip), %xmm1            ## xmm1 = [3.05175781E-5,3.05175781E-5,3.05175781E-5,3.05175781E-5]
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%r8, %rdi
	movq	%rcx, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rcx
	movq	%rdi, %r8
	testl	%eax, %eax
	je	LBB0_51
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	decl	%eax
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edx, %edx
	cmpl	$7, %r10d
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rcx, %rbx
	movq	%r8, %rdi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%rcx,%rsi,4), %rbx
	leaq	(%r8,%r11,4), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rcx,%rdx,8), %xmm2
	movups	16(%rcx,%rdx,8), %xmm3
	movups	32(%rcx,%rdx,8), %xmm4
	movups	48(%rcx,%rdx,8), %xmm5
	movaps	%xmm2, %xmm6
	shufps	$136, %xmm3, %xmm6              ## xmm6 = xmm6[0,2],xmm3[0,2]
	movaps	%xmm4, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	shufps	$221, %xmm5, %xmm4              ## xmm4 = xmm4[1,3],xmm5[1,3]
	pslld	$24, %xmm6
	pslld	$24, %xmm7
	psrad	$16, %xmm6
	por	%xmm2, %xmm6
	psrad	$16, %xmm7
	por	%xmm4, %xmm7
	cvtdq2ps	%xmm6, %xmm2
	cvtdq2ps	%xmm7, %xmm3
	mulps	%xmm1, %xmm2
	mulps	%xmm1, %xmm3
	movups	%xmm2, (%r8,%rdx,4)
	movups	%xmm3, 16(%r8,%rdx,4)
	addq	$8, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r11d, %edx
	cmpq	%r11, %r9
	je	LBB0_9
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, %ecx
	subl	%edx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edx
	shll	$8, %edx
	orl	4(%rbx), %edx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%edx, %xmm2
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%rdi)
	addq	$4, %rdi
	addq	$8, %rbx
	decl	%ecx
	jne	LBB0_17
	jmp	LBB0_9
LBB0_19:
	testl	%eax, %eax
	je	LBB0_51
## %bb.20:
	movq	24(%r14), %rdx
	leal	(,%r12,4), %ecx
	movslq	%ecx, %rcx
	leal	-1(%r12), %r15d
	leaq	1(%r15), %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	andq	$-8, %r13
	movq	%r13, %rsi
	addq	%r13, %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	16(,%rcx,4), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [1.1920929E-7,1.1920929E-7,1.1920929E-7,1.1920929E-7]
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r11, %r8
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r9, %rdx
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	decl	%eax
	je	LBB0_51
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
                                        ##     Child Loop BB0_40 Depth 2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %r9
	testl	%r12d, %r12d
	jle	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	xorl	%edi, %edi
	cmpl	$7, %r15d
	jae	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rdx, %rcx
	movq	%r8, %r11
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%r9,%r13,4), %r9
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%r8,%r13,4), %r11
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rdx,%rsi), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rdx,%rdi,8), %xmm2
	movups	16(%rdx,%rdi,8), %xmm3
	movups	32(%rdx,%rdi,8), %xmm4
	movups	48(%rdx,%rdi,8), %xmm5
	movaps	%xmm2, %xmm6
	shufps	$136, %xmm3, %xmm6              ## xmm6 = xmm6[0,2],xmm3[0,2]
	movaps	%xmm4, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	shufps	$221, %xmm5, %xmm4              ## xmm4 = xmm4[1,3],xmm5[1,3]
	pslld	$24, %xmm6
	pslld	$24, %xmm7
	psrad	$8, %xmm6
	psrad	$8, %xmm7
	pslld	$8, %xmm2
	pslld	$8, %xmm4
	movdqu	-16(%rbx,%rdi,4), %xmm3
	por	%xmm2, %xmm3
	por	%xmm6, %xmm3
	movdqu	(%rbx,%rdi,4), %xmm2
	por	%xmm4, %xmm2
	por	%xmm7, %xmm2
	cvtdq2ps	%xmm3, %xmm3
	cvtdq2ps	%xmm2, %xmm2
	mulps	%xmm1, %xmm3
	mulps	%xmm1, %xmm2
	movups	%xmm3, (%r8,%rdi,4)
	movups	%xmm2, 16(%r8,%rdi,4)
	addq	$8, %rdi
	cmpq	%rdi, %r13
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%r13d, %edi
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%r12d, %r8d
	subl	%edi, %r8d
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rcx), %ebx
	shll	$16, %ebx
	movl	4(%rcx), %esi
	shll	$8, %esi
	orl	%ebx, %esi
	orl	(%r9,%rdi,4), %esi
	xorps	%xmm2, %xmm2
	cvtsi2ss	%esi, %xmm2
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%r11,%rdi,4)
	addq	$8, %rcx
	addq	$-4, %rdx
	incq	%rdi
	cmpl	%edi, %r8d
	jne	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_23 Depth=1
	subq	%rdx, %r9
	subq	%rdx, %r11
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=1
	xorl	%edi, %edi
	cmpl	$7, %r15d
	jae	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r9, %rdx
	movq	%rcx, %r10
	movq	%r11, %r8
	jmp	LBB0_39
LBB0_36:                                ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%r9,%r13,4), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rcx,%rsi,4), %r10
	leaq	(%r11,%r13,4), %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	(%rcx,%rdi,8), %xmm2
	movups	16(%rcx,%rdi,8), %xmm3
	movups	32(%rcx,%rdi,8), %xmm4
	movups	48(%rcx,%rdi,8), %xmm5
	movaps	%xmm2, %xmm6
	shufps	$136, %xmm3, %xmm6              ## xmm6 = xmm6[0,2],xmm3[0,2]
	movaps	%xmm4, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	shufps	$221, %xmm5, %xmm4              ## xmm4 = xmm4[1,3],xmm5[1,3]
	pslld	$24, %xmm6
	pslld	$24, %xmm7
	psrad	$8, %xmm6
	psrad	$8, %xmm7
	pslld	$8, %xmm2
	pslld	$8, %xmm4
	movdqu	(%r9,%rdi,4), %xmm3
	por	%xmm2, %xmm3
	por	%xmm6, %xmm3
	movdqu	16(%r9,%rdi,4), %xmm2
	por	%xmm4, %xmm2
	por	%xmm7, %xmm2
	cvtdq2ps	%xmm3, %xmm3
	cvtdq2ps	%xmm2, %xmm2
	mulps	%xmm1, %xmm3
	mulps	%xmm1, %xmm2
	movups	%xmm3, (%r11,%rdi,4)
	movups	%xmm2, 16(%r11,%rdi,4)
	addq	$8, %rdi
	cmpq	%rdi, %r13
	jne	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%r13d, %edi
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_22
LBB0_39:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%r12d, %r9d
	subl	%edi, %r9d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_40:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r10,%rbx,8), %esi
	shll	$16, %esi
	movl	4(%r10,%rbx,8), %ecx
	shll	$8, %ecx
	orl	%esi, %ecx
	orl	(%rdx,%rbx,4), %ecx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%ecx, %xmm2
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%r8,%rbx,4)
	addq	$-4, %rdi
	incq	%rbx
	cmpl	%ebx, %r9d
	jne	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_23 Depth=1
	subq	%rdi, %rdx
	subq	%rdi, %r8
	jmp	LBB0_22
LBB0_42:
	testl	%eax, %eax
	je	LBB0_51
## %bb.43:
	movq	24(%r14), %r11
	leal	(,%r12,4), %ecx
	movslq	%ecx, %r10
	movl	%r12d, %r9d
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_45 Depth=1
	movq	%rbx, %r11
	decl	%eax
	je	LBB0_51
LBB0_45:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_47 Depth 2
                                        ##     Child Loop BB0_50 Depth 2
	leaq	(%r11,%r10,4), %rbx
	testl	%r12d, %r12d
	jle	LBB0_44
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=1
	movl	$4, %ecx
	movl	%r12d, %edi
	.p2align	4, 0x90
LBB0_47:                                ##   Parent Loop BB0_45 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r11), %esi
	shll	$12, %esi
	movl	4(%r11), %edx
	shll	$4, %edx
	orl	%esi, %edx
	movl	(%rbx), %esi
	sarl	%cl, %esi
	andl	$15, %esi
	orl	%edx, %esi
	xorps	%xmm1, %xmm1
	cvtsi2ss	%esi, %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r8)
	addq	$4, %r8
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	leaq	(%rbx,%rdx,4), %rbx
	xorl	$4, %ecx
	addq	$8, %r11
	decl	%edi
	jne	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_45 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_44
## %bb.49:                              ##   in Loop: Header=BB0_45 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_50:                                ##   Parent Loop BB0_45 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r11,%rdi,8), %edx
	shll	$12, %edx
	movl	4(%r11,%rdi,8), %esi
	shll	$4, %esi
	orl	%edx, %esi
	movl	(%rbx), %edx
	sarl	%cl, %edx
	andl	$15, %edx
	orl	%esi, %edx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	mulss	%xmm0, %xmm1
	movss	%xmm1, (%r8)
	addq	$4, %r8
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	leaq	(%rbx,%rdx,4), %rbx
	xorl	$4, %ecx
	incq	%rdi
	cmpl	%edi, %r9d
	jne	LBB0_50
	jmp	LBB0_44
LBB0_51:
	movl	64(%r14), %edi
	movq	_hdr2layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movl	-4(%rax,%rcx,4), %esi
	callq	_hb_audio_resample_set_channel_layout
	movl	64(%r14), %edi
	movl	68(%r14), %esi
	callq	_hb_audio_resample_set_sample_rate
	movl	64(%r14), %edi
	callq	_hb_audio_resample_update
	testq	%rax, %rax
	je	LBB0_53
## %bb.52:
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
LBB0_57:
	xorl	%eax, %eax
LBB0_58:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_53:
	leaq	56(%r14), %rsi
	movl	(%r14), %edx
	movl	64(%r14), %edi
	callq	_hb_audio_resample
	testq	%rax, %rax
	je	LBB0_57
## %bb.54:
	movq	32(%r14), %rcx
	movq	%rcx, (%rax)
	movq	40(%r14), %rdx
	movq	%rdx, 8(%rax)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_56
## %bb.55:
	addq	%rcx, %rdx
	movq	%rdx, 32(%r14)
	movq	%rdx, 16(%rax)
LBB0_56:
	movl	48(%r14), %ecx
	movl	%ecx, 24(%rax)
	jmp	LBB0_58
	.cfi_endproc
                                        ## -- End function
	.comm	_hdr2layout,8,3                 ## @hdr2layout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"declpcm: hb_audio_resample_update() failed"

	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_Decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Decode
_Decode:                                ; @Decode
	.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
	ldr	x21, [x0]
	ldr	w9, [x21]
	cbz	w9, LBB0_17
; %bb.1:
	mov	x19, x21
	ldr	x0, [x19, #56]!
	ldp	w8, w10, [x19, #-52]
	mul	w9, w9, w8
	lsl	w20, w9, #2
	cmp	w10, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x20
	bl	_realloc
	str	x0, [x21, #56]
	str	w20, [x21, #8]
	ldr	w8, [x21, #4]
LBB0_3:
	ldp	w9, w10, [x21, #12]
	sdiv	w9, w9, w8
	cmp	w10, #24
	b.eq	LBB0_18
; %bb.4:
	cmp	w10, #20
	b.eq	LBB0_39
; %bb.5:
	cmp	w10, #16
	b.ne	LBB0_48
; %bb.6:
	cbz	w9, LBB0_48
; %bb.7:
	ldr	x14, [x21, #24]
	sub	w10, w8, #1
	add	x11, x10, #1
	and	x12, x11, #0x1fffffff0
	lsl	x13, x12, #1
	movi.2s	v0, #56, lsl #24
	movi.4s	v1, #56, lsl #24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	w9, LBB0_48
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	sub	w9, w9, #1
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w10, #15
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w15, #0
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x15, x14, #64
	add	x16, x0, #32
	mov	x17, x12
	add	x14, x14, x13, lsl #2
	add	x0, x0, x12, lsl #2
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x1, x15, #64
	ld2.4s	{ v2, v3 }, [x1]
	sub	x1, x15, #32
	ld2.4s	{ v4, v5 }, [x1]
	mov	x1, x15
	ld2.4s	{ v6, v7 }, [x1], #32
	ld2.4s	{ v16, v17 }, [x1]
	shl.4s	v18, v2, #24
	shl.4s	v19, v4, #24
	shl.4s	v20, v6, #24
	shl.4s	v21, v16, #24
	sshr.4s	v18, v18, #16
	sshr.4s	v19, v19, #16
	sshr.4s	v20, v20, #16
	sshr.4s	v21, v21, #16
	orr.16b	v2, v18, v3
	orr.16b	v3, v19, v5
	orr.16b	v4, v20, v7
	orr.16b	v5, v21, v17
	scvtf.4s	v2, v2
	scvtf.4s	v3, v3
	scvtf.4s	v4, v4
	scvtf.4s	v5, v5
	fmul.4s	v2, v2, v1
	fmul.4s	v3, v3, v1
	fmul.4s	v4, v4, v1
	stp	q2, q3, [x16, #-32]
	fmul.4s	v2, v5, v1
	stp	q4, q2, [x16], #64
	add	x15, x15, #128
	subs	x17, x17, #16
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x15, x12
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w15, w8, w15
LBB0_16:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w16, w17, [x14], #8
	lsl	w16, w16, #24
	orr	w16, w17, w16, asr #16
	scvtf	s2, w16
	fmul	s2, s2, s0
	str	s2, [x0], #4
	subs	w15, w15, #1
	b.ne	LBB0_16
	b	LBB0_8
LBB0_17:
	mov	x0, #0
	b	LBB0_54
LBB0_18:
	cbz	w9, LBB0_48
; %bb.19:
	ldr	x16, [x21, #24]
	mov	x10, x8
	sbfiz	x10, x10, #2, #32
	sub	w11, w8, #1
	add	x12, x11, #1
	and	x13, x12, #0x1fffffff0
	lsl	x14, x13, #1
	add	x15, x10, #8
	movi.2s	v0, #52, lsl #24
	movi.4s	v1, #52, lsl #24
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x2
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x16, x17
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	subs	w9, w9, #1
	b.eq	LBB0_48
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
                                        ;     Child Loop BB0_38 Depth 2
	add	x17, x16, x10, lsl #2
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w11, #15
	b.hs	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w3, #0
	mov	x1, x16
	mov	x2, x0
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	lsl	x2, x13, #2
	add	x17, x17, x2
	add	x1, x16, x14, lsl #2
	add	x2, x0, x2
	add	x0, x0, #32
	add	x3, x16, #64
	mov	x4, x13
	add	x16, x16, x15, lsl #2
LBB0_27:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x5, x3, #64
	ld2.4s	{ v2, v3 }, [x5]
	sub	x5, x3, #32
	ld2.4s	{ v4, v5 }, [x5]
	mov	x5, x3
	ld2.4s	{ v6, v7 }, [x5], #32
	ld2.4s	{ v16, v17 }, [x5]
	shl.4s	v18, v2, #24
	shl.4s	v19, v4, #24
	shl.4s	v20, v6, #24
	shl.4s	v21, v16, #24
	sshr.4s	v18, v18, #8
	sshr.4s	v19, v19, #8
	sshr.4s	v20, v20, #8
	sshr.4s	v21, v21, #8
	shl.4s	v2, v3, #8
	shl.4s	v3, v5, #8
	shl.4s	v4, v7, #8
	shl.4s	v5, v17, #8
	orr.16b	v2, v18, v2
	orr.16b	v3, v19, v3
	orr.16b	v4, v20, v4
	orr.16b	v5, v21, v5
	ldp	q6, q7, [x16, #-32]
	ldp	q16, q17, [x16], #64
	orr.16b	v2, v2, v6
	orr.16b	v3, v3, v7
	orr.16b	v4, v4, v16
	orr.16b	v5, v5, v17
	scvtf.4s	v2, v2
	scvtf.4s	v3, v3
	scvtf.4s	v4, v4
	scvtf.4s	v5, v5
	fmul.4s	v2, v2, v1
	fmul.4s	v3, v3, v1
	fmul.4s	v4, v4, v1
	fmul.4s	v5, v5, v1
	stp	q2, q3, [x0, #-32]
	stp	q4, q5, [x0], #64
	add	x3, x3, #128
	subs	x4, x4, #16
	b.ne	LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x3, x13
	cmp	x12, x13
	b.eq	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
	sub	w16, w8, w3
LBB0_30:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w0, w3, [x1], #8
	sbfiz	w0, w0, #16, #8
	orr	w0, w0, w3, lsl #8
	ldr	w3, [x17], #4
	orr	w0, w0, w3
	scvtf	s2, w0
	fmul	s2, s2, s0
	str	s2, [x2], #4
	subs	w16, w16, #1
	b.ne	LBB0_30
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w11, #15
	b.hs	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w3, #0
	mov	x16, x17
	mov	x0, x2
	b	LBB0_37
LBB0_34:                                ;   in Loop: Header=BB0_23 Depth=1
	lsl	x0, x13, #2
	add	x16, x17, x0
	add	x0, x2, x0
	add	x17, x17, #32
	add	x2, x2, #32
	add	x3, x1, #64
	mov	x4, x13
	add	x1, x1, x14, lsl #2
LBB0_35:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x5, x3, #64
	ld2.4s	{ v2, v3 }, [x5]
	sub	x5, x3, #32
	ld2.4s	{ v4, v5 }, [x5]
	mov	x5, x3
	ld2.4s	{ v6, v7 }, [x5], #32
	ld2.4s	{ v16, v17 }, [x5]
	shl.4s	v18, v2, #24
	shl.4s	v19, v4, #24
	shl.4s	v20, v6, #24
	shl.4s	v21, v16, #24
	sshr.4s	v18, v18, #8
	sshr.4s	v19, v19, #8
	sshr.4s	v20, v20, #8
	sshr.4s	v21, v21, #8
	shl.4s	v2, v3, #8
	shl.4s	v3, v5, #8
	shl.4s	v4, v7, #8
	shl.4s	v5, v17, #8
	orr.16b	v2, v18, v2
	orr.16b	v3, v19, v3
	orr.16b	v4, v20, v4
	orr.16b	v5, v21, v5
	ldp	q6, q7, [x17, #-32]
	ldp	q16, q17, [x17], #64
	orr.16b	v2, v2, v6
	orr.16b	v3, v3, v7
	orr.16b	v4, v4, v16
	orr.16b	v5, v5, v17
	scvtf.4s	v2, v2
	scvtf.4s	v3, v3
	scvtf.4s	v4, v4
	scvtf.4s	v5, v5
	fmul.4s	v2, v2, v1
	fmul.4s	v3, v3, v1
	fmul.4s	v4, v4, v1
	fmul.4s	v5, v5, v1
	stp	q2, q3, [x2, #-32]
	stp	q4, q5, [x2], #64
	add	x3, x3, #128
	subs	x4, x4, #16
	b.ne	LBB0_35
; %bb.36:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x3, x13
	cmp	x12, x13
	b.eq	LBB0_22
LBB0_37:                                ;   in Loop: Header=BB0_23 Depth=1
	sub	w17, w8, w3
LBB0_38:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w3, [x1], #8
	sbfiz	w2, w2, #16, #8
	orr	w2, w2, w3, lsl #8
	ldr	w3, [x16], #4
	orr	w2, w2, w3
	scvtf	s2, w2
	fmul	s2, s2, s0
	str	s2, [x0], #4
	subs	w17, w17, #1
	b.ne	LBB0_38
	b	LBB0_22
LBB0_39:
	cbz	w9, LBB0_48
; %bb.40:
	ldr	x11, [x21, #24]
	sbfiz	x10, x8, #2, #32
	movi.2s	v0, #54, lsl #24
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	mov	x11, x12
	subs	w9, w9, #1
	b.eq	LBB0_48
LBB0_42:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_44 Depth 2
                                        ;     Child Loop BB0_47 Depth 2
	add	x12, x11, x10, lsl #2
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	w13, #4
	mov	x14, x8
LBB0_44:                                ;   Parent Loop BB0_42 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w15, w16, [x11], #8
	sbfiz	w15, w15, #12, #8
	orr	w15, w15, w16, lsl #4
	ldr	w16, [x12]
	asr	w16, w16, w13
	bfxil	w15, w16, #0, #4
	scvtf	s1, w15
	fmul	s1, s1, s0
	str	s1, [x0], #4
	cmp	w13, #0
	cset	w15, eq
	add	x12, x12, w15, uxtw #2
	eor	w13, w13, #0x4
	subs	w14, w14, #1
	b.ne	LBB0_44
; %bb.45:                               ;   in Loop: Header=BB0_42 Depth=1
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.46:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	x14, x8
LBB0_47:                                ;   Parent Loop BB0_42 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w15, w16, [x11], #8
	sbfiz	w15, w15, #12, #8
	orr	w15, w15, w16, lsl #4
	ldr	w16, [x12]
	asr	w16, w16, w13
	bfxil	w15, w16, #0, #4
	scvtf	s1, w15
	fmul	s1, s1, s0
	str	s1, [x0], #4
	cmp	w13, #0
	cset	w15, eq
	add	x12, x12, w15, uxtw #2
	eor	w13, w13, #0x4
	subs	w14, w14, #1
	b.ne	LBB0_47
	b	LBB0_41
LBB0_48:
	ldr	w0, [x21, #64]
Lloh0:
	adrp	x9, _hdr2layout@GOTPAGE
Lloh1:
	ldr	x9, [x9, _hdr2layout@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x9, w8, sxtw #2
	ldur	w1, [x8, #-4]
	bl	_hb_audio_resample_set_channel_layout
	ldp	w0, w1, [x21, #64]
	bl	_hb_audio_resample_set_sample_rate
	ldr	w0, [x21, #64]
	bl	_hb_audio_resample_update
	cbz	x0, LBB0_50
; %bb.49:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	mov	x0, #0
	b	LBB0_54
LBB0_50:
	ldr	w0, [x21, #64]
	ldr	w2, [x21]
	mov	x1, x19
	bl	_hb_audio_resample
	cbz	x0, LBB0_54
; %bb.51:
	ldp	x8, x9, [x21, #32]
	stp	x8, x9, [x0]
Lloh5:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_53
; %bb.52:
	add	x8, x9, x8
	str	x8, [x21, #32]
	str	x8, [x0, #16]
LBB0_53:
	ldr	w8, [x21, #48]
	str	w8, [x0, #24]
LBB0_54:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hdr2layout,8,3                 ; @hdr2layout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"declpcm: hb_audio_resample_update() failed"

	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_Decode
.subsections_via_symbols
