	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_intra_pred_angular_upper_16width_msa
_hevc_intra_pred_angular_upper_16width_msa: ## @hevc_intra_pred_angular_upper_16width_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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_intra_pred_angle_up@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%r8d, %rax
	movl	-72(%rcx,%rax,4), %edx
	addq	$-4, %rdi
	cmpl	$-3, %edx
	movq	%rdx, -496(%rbp)                ## 8-byte Spill
	jg	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	leaq	l___const.hevc_intra_pred_angular_upper_16width_msa.inv_angle(%rip), %rcx
	movl	-72(%rcx,%rax,4), %ebx
	callq	_LD_UB
	movl	%eax, -460(%rbp)                ## 4-byte Spill
	addq	$60, %r14
	movq	%r14, %rdi
	callq	_LW
	movl	%eax, %r14d
	movl	-460(%rbp), %edi                ## 4-byte Reload
	leaq	-384(%rbp), %rsi
	callq	_ST_UB
	leaq	-320(%rbp), %rsi
	movl	%r14d, %edi
	callq	_SW
	movq	-496(%rbp), %rdx                ## 8-byte Reload
	movl	%edx, %edi
	sarl	%edi
	movl	%ebx, %eax
	imull	%edi, %eax
	movslq	%edi, %rcx
	testb	$1, %cl
	je	LBB0_4
## %bb.3:
	leal	128(%rax), %esi
	sarl	$8, %esi
	movslq	%esi, %rsi
	movl	-4(%r13,%rsi,4), %esi
	movl	%esi, -384(%rbp,%rcx,4)
	addl	%ebx, %eax
	incq	%rcx
LBB0_4:
	cmpl	$-1, %edi
	je	LBB0_7
## %bb.5:
	subl	$-128, %eax
	leal	(%rbx,%rbx), %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	sarl	$8, %esi
	movslq	%esi, %rsi
	movl	-4(%r13,%rsi,4), %esi
	movl	%esi, -384(%rbp,%rcx,4)
	leal	(%rbx,%rax), %esi
	sarl	$8, %esi
	movslq	%esi, %rsi
	movl	-4(%r13,%rsi,4), %esi
	movl	%esi, -380(%rbp,%rcx,4)
	addl	%edi, %eax
	addq	$2, %rcx
	jne	LBB0_6
LBB0_7:
	leaq	-384(%rbp), %rdi
	jmp	LBB0_8
LBB0_1:
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
LBB0_8:
	leal	(,%r15,4), %eax
	cltq
	addq	$4, %rdi
	movq	%rdi, -504(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -512(%rbp)                ## 8-byte Spill
	leal	(,%rdx,4), %eax
	leal	(%rdx,%rdx,2), %ecx
	leal	(%rdx,%rdx), %r13d
	movl	$-4, %esi
	movl	%eax, -468(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	movl	%edx, %ebx
	movq	%r15, -520(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -464(%rbp)               ## 4-byte Spill
	movl	%esi, -484(%rbp)                ## 4-byte Spill
	movl	%ecx, -488(%rbp)                ## 4-byte Spill
	movq	%r12, -528(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	sarl	$5, %eax
	movl	%ebx, %esi
	andl	$31, %esi
	movl	%esi, -452(%rbp)                ## 4-byte Spill
	addl	%edx, %ebx
	movl	%r13d, %r15d
	sarl	$5, %r13d
	movl	%r15d, %esi
	andl	$31, %esi
	movl	%esi, -472(%rbp)                ## 4-byte Spill
	addl	%edx, %ebx
	movl	%ecx, %r12d
	sarl	$5, %r12d
	andl	$31, %ecx
	movl	%ecx, -476(%rbp)                ## 4-byte Spill
	addl	%edx, %ebx
	movl	-464(%rbp), %ecx                ## 4-byte Reload
	sarl	$5, %ecx
	movl	%ecx, -456(%rbp)                ## 4-byte Spill
	movl	-464(%rbp), %ecx                ## 4-byte Reload
	andl	$31, %ecx
	movl	%ecx, -480(%rbp)                ## 4-byte Spill
	addl	%edx, %ebx
	cltq
	movq	-504(%rbp), %r14                ## 8-byte Reload
	leaq	(%r14,%rax,4), %rdi
	movl	$16, %esi
	movl	-460(%rbp), %edx                ## 4-byte Reload
	callq	_LD_UB2
	movslq	%r13d, %rax
	movl	%r15d, %r13d
	leaq	(%r14,%rax,4), %rdi
	movl	$16, %esi
	callq	_LD_UB2
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %rdi
	movl	$16, %esi
	callq	_LD_UB2
	movslq	-456(%rbp), %rax                ## 4-byte Folded Reload
	leaq	(%r14,%rax,4), %rdi
	movl	$16, %esi
	callq	_LD_UB2
	movl	-452(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, -456(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	subl	%r14d, %edi
	callq	___msa_fill_h
	movl	-472(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %edi
	callq	___msa_fill_h
	movl	%eax, -452(%rbp)                ## 4-byte Spill
	movl	$32, %edi
	subl	%r14d, %edi
	callq	___msa_fill_h
	movl	-476(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %edi
	callq	___msa_fill_h
	movl	%eax, %r14d
	movl	$32, %edi
	subl	%r15d, %edi
	callq	___msa_fill_h
	movl	-480(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %edi
	callq	___msa_fill_h
	movl	%eax, %r15d
	movl	$32, %edi
	subl	%r12d, %edi
	callq	___msa_fill_h
	movl	$1, 16(%rsp)
	movl	-460(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %esi
	callq	_SLDI_B4_UB
	movl	%r12d, %edi
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	callq	_UNPCK_UB_SH
	movl	-452(%rbp), %r9d                ## 4-byte Reload
	movl	%r9d, 8(%rsp)
	movl	-456(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, %esi
	callq	_MUL4
	movl	%r15d, 8(%rsp)
	movl	%r14d, %esi
	movl	%r14d, %ecx
	movl	-464(%rbp), %r14d               ## 4-byte Reload
	movl	%r15d, %r9d
	movq	-520(%rbp), %r15                ## 8-byte Reload
	callq	_MUL4
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	movl	$5, %r8d
	callq	_SRARI_H4_SH
	callq	_PCKEV_B4_SB
	movq	-528(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r8
	movl	%r15d, %r9d
	callq	_ST_SB4
	movl	-484(%rbp), %esi                ## 4-byte Reload
	movl	-488(%rbp), %ecx                ## 4-byte Reload
	movq	-496(%rbp), %rdx                ## 8-byte Reload
	addq	-512(%rbp), %r12                ## 8-byte Folded Reload
	movl	-468(%rbp), %eax                ## 4-byte Reload
	addl	%eax, %r14d
	addl	%eax, %ecx
	addl	%eax, %r13d
	incl	%esi
	jne	LBB0_9
## %bb.10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.hevc_intra_pred_angular_upper_16width_msa.inv_angle
l___const.hevc_intra_pred_angular_upper_16width_msa.inv_angle:
	.long	4294967040                      ## 0xffffff00
	.long	4294966981                      ## 0xfffffec5
	.long	4294966906                      ## 0xfffffe7a
	.long	4294966814                      ## 0xfffffe1e
	.long	4294966666                      ## 0xfffffd8a
	.long	4294966386                      ## 0xfffffc72
	.long	4294965658                      ## 0xfffff99a
	.long	4294963200                      ## 0xfffff000

	.comm	_intra_pred_angle_up,8,3        ## @intra_pred_angle_up
	.no_dead_strip	_hevc_intra_pred_angular_upper_16width_msa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_intra_pred_angular_upper_16width_msa
_hevc_intra_pred_angular_upper_16width_msa: ; @hevc_intra_pred_angular_upper_16width_msa
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #496
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x20, x3
	mov	x25, x2
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _intra_pred_angle_up@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intra_pred_angle_up@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	sbfiz	x8, x4, #2, #32
	sub	x8, x8, #72
	ldr	w26, [x9, x8]
	sub	x0, x0, #4
	cmn	w26, #3
	b.gt	LBB0_3
; %bb.1:
	add	x24, sp, #80
	add	x22, x24, #64
	sub	x19, x1, #4
Lloh6:
	adrp	x9, l___const.hevc_intra_pred_angular_upper_16width_msa.inv_angle@PAGE
Lloh7:
	add	x9, x9, l___const.hevc_intra_pred_angular_upper_16width_msa.inv_angle@PAGEOFF
	ldr	w21, [x9, x8]
	bl	_LD_UB
	mov	x27, x0
	add	x0, x23, #60
	bl	_LW
	mov	x23, x0
	mov	x0, x27
	mov	x1, x22
	bl	_ST_UB
	add	x1, x24, #128
	mov	x0, x23
	bl	_SW
	asr	w8, w26, #1
	mul	w9, w21, w8
	sbfx	x17, x26, #1, #31
	neg	x11, x17
	cmp	x11, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x8, x17
	mov	x10, x9
	b	LBB0_7
LBB0_3:
                                        ; implicit-def: $w27
	mov	x22, x0
	b	LBB0_9
LBB0_4:
	and	x12, x11, #0xfffffffffffffffc
	add	x8, x12, x17
	madd	w10, w21, w12, w9
	madd	w13, w21, w17, w21
	lsl	w14, w21, #2
	add	x15, sp, #80
	add	x15, x15, x17, lsl #2
	add	x15, x15, #76
	add	w16, w17, #2
	mul	w16, w21, w16
	add	w17, w17, #3
	mul	w17, w21, w17
	mov	w0, #128
	mov	x1, x12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w2, w9, w0
	add	w3, w13, w0
	add	w4, w16, w0
	add	w5, w17, w0
	asr	w2, w2, #8
	asr	w3, w3, #8
	asr	w4, w4, #8
	ldr	w2, [x19, w2, sxtw #2]
	ldr	w3, [x19, w3, sxtw #2]
	asr	w5, w5, #8
	ldr	w4, [x19, w4, sxtw #2]
	ldr	w5, [x19, w5, sxtw #2]
	stp	w2, w3, [x15, #-12]
	stp	w4, w5, [x15, #-4]
	add	w0, w0, w14
	add	x15, x15, #16
	subs	x1, x1, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x12, x11
	b.eq	LBB0_9
LBB0_7:
	add	x9, sp, #80
	add	x9, x9, #64
	add	w10, w10, #128
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	asr	w11, w10, #8
	ldr	w11, [x19, w11, sxtw #2]
	str	w11, [x9, x8, lsl #2]
	add	w10, w10, w21
	adds	x8, x8, #1
	b.lo	LBB0_8
LBB0_9:
	mov	w28, #0
	lsl	w8, w20, #2
	add	x9, x22, #4
	sbfiz	x8, x8, #2, #32
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	lsl	w10, w26, #2
	lsl	w8, w26, #1
	stp	w8, w10, [sp, #32]              ; 8-byte Folded Spill
	add	w8, w8, w26
	stp	w27, w8, [sp, #24]              ; 8-byte Folded Spill
	mov	w8, #-4
	str	x26, [sp, #56]                  ; 8-byte Folded Spill
	mov	x27, x9
	ldr	w23, [sp, #24]                  ; 4-byte Folded Reload
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	str	x25, [sp, #72]                  ; 8-byte Folded Spill
	add	w8, w26, w28
	asr	w9, w8, #5
	and	w24, w8, #0x1f
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	add	w8, w8, w28
	asr	w22, w8, #5
	and	w25, w8, #0x1f
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, w28
	asr	w21, w8, #5
	and	w26, w8, #0x1f
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	add	w28, w8, w28
	mov	x19, x20
	asr	w20, w28, #5
	and	w8, w28, #0x1f
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	add	x0, x27, w9, sxtw #2
	mov	w1, #16
	mov	x2, x23
	bl	_LD_UB2
	add	x0, x27, w22, sxtw #2
	mov	w1, #16
	bl	_LD_UB2
	add	x0, x27, w21, sxtw #2
	mov	w1, #16
	bl	_LD_UB2
	add	x0, x27, w20, sxtw #2
	mov	x20, x19
	mov	w1, #16
	bl	_LD_UB2
	mov	x0, x24
	bl	___msa_fill_h
	mov	x22, x0
	mov	w19, #32
	sub	w0, w19, w24
	bl	___msa_fill_h
	mov	x0, x25
	bl	___msa_fill_h
	mov	x24, x0
	sub	w0, w19, w25
	bl	___msa_fill_h
	mov	x0, x26
	bl	___msa_fill_h
	mov	x25, x0
	sub	w0, w19, w26
	bl	___msa_fill_h
	ldr	w21, [sp, #64]                  ; 4-byte Folded Reload
	mov	x0, x21
	bl	___msa_fill_h
	mov	x26, x0
	sub	w0, w19, w21
	bl	___msa_fill_h
	mov	w8, #1
	str	w8, [sp]
	mov	x1, x23
	bl	_SLDI_B4_UB
	mov	x0, x23
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	bl	_UNPCK_UB_SH
	mov	x1, x22
	mov	x3, x22
	mov	x5, x24
	mov	x7, x24
	bl	_MUL4
	mov	x1, x25
	mov	x3, x25
	ldr	x25, [sp, #72]                  ; 8-byte Folded Reload
	mov	x5, x26
	mov	x7, x26
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
	bl	_MUL4
	mov	w4, #5
	bl	_SRARI_H4_SH
	mov	w4, #5
	bl	_SRARI_H4_SH
	bl	_PCKEV_B4_SB
	mov	x4, x25
	mov	x5, x20
	bl	_ST_SB4
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x25, x25, x8
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	adds	w8, w8, #1
	b.lo	LBB0_10
; %bb.11:
	ldur	x8, [x29, #-96]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #496
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.hevc_intra_pred_angular_upper_16width_msa.inv_angle
l___const.hevc_intra_pred_angular_upper_16width_msa.inv_angle:
	.long	4294967040                      ; 0xffffff00
	.long	4294966981                      ; 0xfffffec5
	.long	4294966906                      ; 0xfffffe7a
	.long	4294966814                      ; 0xfffffe1e
	.long	4294966666                      ; 0xfffffd8a
	.long	4294966386                      ; 0xfffffc72
	.long	4294965658                      ; 0xfffff99a
	.long	4294963200                      ; 0xfffff000

	.comm	_intra_pred_angle_up,8,3        ; @intra_pred_angle_up
	.no_dead_strip	_hevc_intra_pred_angular_upper_16width_msa
.subsections_via_symbols
