	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_dec_start                  ## -- Begin function vpu_dec_start
	.p2align	4, 0x90
_vpu_dec_start:                         ## @vpu_dec_start
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_mtk_vcodec_debug_enter
	callq	_ARRAY_SIZE
	cmpl	%r15d, %eax
	jae	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_mtk_vcodec_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_2:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_AP_IPIMSG_DEC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	(%r14), %eax
	movl	%eax, -32(%rbp)
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.3:
	movq	-40(%rbp), %rax
	movl	%r15d, %r8d
	xorl	%edx, %edx
	cmpl	$8, %r15d
	jb	LBB0_13
## %bb.4:
	movq	%rax, %rcx
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_13
## %bb.5:
	movl	%r8d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rcx
	jae	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rcx,4), %xmm0
	movups	16(%rbx,%rcx,4), %xmm1
	movups	%xmm0, (%rax,%rcx,4)
	movups	%xmm1, 16(%rax,%rcx,4)
	movups	32(%rbx,%rcx,4), %xmm0
	movups	48(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 32(%rax,%rcx,4)
	movups	%xmm1, 48(%rax,%rcx,4)
	movups	64(%rbx,%rcx,4), %xmm0
	movups	80(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 64(%rax,%rcx,4)
	movups	%xmm1, 80(%rax,%rcx,4)
	movups	96(%rbx,%rcx,4), %xmm0
	movups	112(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 96(%rax,%rcx,4)
	movups	%xmm1, 112(%rax,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rdi
	jne	LBB0_8
LBB0_9:
	testq	%r9, %r9
	je	LBB0_12
## %bb.10:
	leaq	(%rax,%rcx,4), %rdi
	addq	$16, %rdi
	leaq	(%rbx,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rsi), %xmm0
	movups	(%rcx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_11
LBB0_12:
	cmpq	%r8, %rdx
	je	LBB0_17
LBB0_13:
	movq	%rdx, %rcx
	notq	%rcx
	addq	%r8, %rcx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %edi
	movl	%edi, (%rax,%rdx,4)
	incq	%rdx
	decq	%rsi
	jne	LBB0_14
LBB0_15:
	cmpq	$3, %rcx
	jb	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	4(%rbx,%rdx,4), %ecx
	movl	%ecx, 4(%rax,%rdx,4)
	movl	8(%rbx,%rdx,4), %ecx
	movl	%ecx, 8(%rax,%rdx,4)
	movl	12(%rbx,%rdx,4), %ecx
	movl	%ecx, 12(%rax,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_16
LBB0_17:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_vcodec_vpu_send_msg
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mtk_vcodec_debug
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid len = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AP_IPIMSG_DEC_START,4,2        ## @AP_IPIMSG_DEC_START
L_.str.1:                               ## @.str.1
	.asciz	"- ret=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vpu_dec_start                  ; -- Begin function vpu_dec_start
	.p2align	2
_vpu_dec_start:                         ; @vpu_dec_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_mtk_vcodec_debug_enter
	bl	_ARRAY_SIZE
	cmp	w0, w21
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mtk_vcodec_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh5:
	adrp	x8, _AP_IPIMSG_DEC_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AP_IPIMSG_DEC_START@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	w9, w8, [sp, #8]
	cbz	w21, LBB0_10
; %bb.3:
	mov	x8, #0
	ldr	x10, [sp]
	mov	w9, w21
	cmp	w21, #16
	b.lo	LBB0_8
; %bb.4:
	sub	x11, x10, x20
	cmp	x11, #64
	b.lo	LBB0_8
; %bb.5:
	and	x8, x9, #0xfffffff0
	add	x11, x10, #32
	add	x12, x20, #32
	mov	x13, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_8:
	lsl	x11, x8, #2
	add	x10, x10, x11
	add	x11, x20, x11
	sub	x8, x9, x8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11], #4
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_vcodec_vpu_send_msg
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_mtk_vcodec_debug
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid len = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AP_IPIMSG_DEC_START,4,2        ; @AP_IPIMSG_DEC_START
l_.str.1:                               ; @.str.1
	.asciz	"- ret=%d"

.subsections_via_symbols
