	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_bi_copy_6w_msa
_hevc_bi_copy_6w_msa:                   ## @hevc_bi_copy_6w_msa
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %edx
	cmpl	$8, %edx
	jb	LBB0_3
## %bb.1:
	movq	%r8, %r15
	sarl	$3, %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movslq	%eax, %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,8), %eax
	movslq	%eax, %r9
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	leal	(%r8,%r8), %eax
	movslq	%eax, %rcx
	leal	(,%r8,4), %eax
	cltq
	leaq	(,%rsi,8), %rbx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	shlq	$2, %r9
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,8), %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_LD4
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %r13
	xorl	%edx, %edx
	callq	_INSERT_D2_SB
	xorl	%edx, %edx
	callq	_INSERT_D2_SB
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r14, %r12
	callq	_LD4
	xorl	%edx, %edx
	callq	_INSERT_D2_SB
	xorl	%edx, %edx
	callq	_INSERT_D2_SB
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_LD_SH8
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ILVRL_B2_SH
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ILVRL_B2_SH
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$6, %r8d
	callq	_SLLI_4V
	movl	$7, 16(%rsp)
	callq	_HEVC_BI_RND_CLIP4_MAX_SATU
	movl	$7, 16(%rsp)
	callq	_HEVC_BI_RND_CLIP4_MAX_SATU
	callq	_PCKEV_B2_UB
	callq	_PCKEV_B2_UB
	xorl	%esi, %esi
	movl	$2, %edx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_ST_W2
	leaq	16(%r15), %rcx
	movl	$2, %esi
	movl	$6, %edx
	movl	%ebx, %r8d
	callq	_ST_H2
	movq	-120(%rbp), %r14                ## 8-byte Reload
	leaq	(%r15,%r14), %rcx
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%ebx, %r8d
	callq	_ST_W2
	leaq	(%r15,%r14), %rcx
	addq	$16, %rcx
	movl	$2, %esi
	movl	$6, %edx
	movl	%ebx, %r8d
	callq	_ST_H2
	movq	-112(%rbp), %r14                ## 8-byte Reload
	leaq	(%r15,%r14), %rcx
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%ebx, %r8d
	callq	_ST_W2
	leaq	(%r15,%r14), %rcx
	addq	$16, %rcx
	movl	$2, %esi
	movl	$6, %edx
	movl	%ebx, %r8d
	callq	_ST_H2
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r15,%r14), %rcx
	xorl	%esi, %esi
	movl	$2, %edx
	movl	%ebx, %r8d
	callq	_ST_W2
	leaq	(%r15,%r14), %rcx
	addq	$16, %rcx
	movl	$2, %esi
	movl	$6, %edx
	movl	%ebx, %r8d
	callq	_ST_H2
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	-104(%rbp), %rdi                ## 8-byte Folded Reload
	addq	-128(%rbp), %r12                ## 8-byte Folded Reload
	addq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	decl	%edx
	jne	LBB0_2
LBB0_3:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hevc_bi_copy_6w_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_bi_copy_6w_msa
_hevc_bi_copy_6w_msa:                   ; @hevc_bi_copy_6w_msa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #60]                   ; 4-byte Folded Spill
	cmp	w6, #8
	b.lo	LBB0_3
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	asr	w26, w6, #3
	lsl	w8, w1, #2
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	lsl	w9, w9, #3
	lsl	w10, w5, #1
	lsl	w11, w5, #2
	sbfiz	x12, x8, #3, #32
	sbfiz	x8, x8, #2, #32
	stp	x8, x12, [sp, #40]              ; 16-byte Folded Spill
	sbfiz	x8, x9, #2, #32
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	sbfiz	x27, x10, #2, #32
	sbfiz	x28, x11, #2, #32
	add	x8, x28, x27
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sbfiz	x21, x11, #3, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	mov	x0, x24
	mov	x1, x23
	bl	_LD4
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x25, x24, x8
	mov	x2, #0
	bl	_INSERT_D2_SB
	mov	x2, #0
	bl	_INSERT_D2_SB
	mov	x0, x25
	mov	x1, x23
	bl	_LD4
	mov	x2, #0
	bl	_INSERT_D2_SB
	mov	x2, #0
	bl	_INSERT_D2_SB
	mov	x0, x22
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	bl	_LD_SH8
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	x0, #0
	mov	x1, #0
	bl	_ILVRL_B2_SH
	mov	w4, #6
	bl	_SLLI_4V
	mov	w4, #6
	bl	_SLLI_4V
	mov	w25, #7
	str	w25, [sp]
	bl	_HEVC_BI_RND_CLIP4_MAX_SATU
	str	w25, [sp]
	bl	_HEVC_BI_RND_CLIP4_MAX_SATU
	bl	_PCKEV_B2_UB
	bl	_PCKEV_B2_UB
	mov	w1, #0
	mov	w2, #2
	mov	x3, x20
	mov	x4, x19
	bl	_ST_W2
	add	x3, x20, #16
	mov	w1, #2
	mov	w2, #6
	mov	x4, x19
	bl	_ST_H2
	add	x25, x20, x27
	mov	w1, #0
	mov	w2, #2
	mov	x3, x25
	mov	x4, x19
	bl	_ST_W2
	add	x3, x25, #16
	mov	w1, #2
	mov	w2, #6
	mov	x4, x19
	bl	_ST_H2
	add	x25, x20, x28
	mov	w1, #0
	mov	w2, #2
	mov	x3, x25
	mov	x4, x19
	bl	_ST_W2
	add	x3, x25, #16
	mov	w1, #2
	mov	w2, #6
	mov	x4, x19
	bl	_ST_H2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x20, x8
	mov	w1, #0
	mov	w2, #2
	mov	x3, x25
	mov	x4, x19
	bl	_ST_W2
	add	x3, x25, #16
	mov	w1, #2
	mov	w2, #6
	mov	x4, x19
	bl	_ST_H2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x24, x24, x8
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x22, x22, x8
	add	x20, x20, x21
	cbnz	w26, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hevc_bi_copy_6w_msa
.subsections_via_symbols
