	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hevc_luma_mv_mvp_mode
_hevc_luma_mv_mvp_mode:                 ## @hevc_luma_mv_mvp_mode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	32(%rbp), %rbx
	movq	24(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PRED_L0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_ff_hevc_set_neighbour_available
	movq	$0, 8(%rbx)
	movq	(%r15), %rax
	movq	_HEVC_SLICE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_ff_hevc_inter_pred_idc_decode
	movl	%eax, %r12d
LBB0_2:
	movq	_PRED_L1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_6
## %bb.3:
	movq	16(%r15), %rax
	movq	_L0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	movq	32(%rbp), %rbx
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_ff_hevc_ref_idx_lx_decode
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	movq	_PF_L0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_ff_hevc_hls_mvd_coding
	movq	%r15, %rdi
	callq	_ff_hevc_mvp_lx_flag_decode
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	$0
	pushq	%rax
	pushq	%rbx
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_ff_hevc_luma_mv_mvp_mode
	addq	$48, %rsp
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %eax
	movq	(%rbx), %rcx
	addl	%eax, 4(%rcx)
	movl	(%rdx), %eax
	addl	%eax, (%rcx)
LBB0_6:
	movq	_PRED_L0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_14
## %bb.7:
	movq	16(%r15), %rax
	movq	_L1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_ff_hevc_ref_idx_lx_decode
	movq	32(%rbp), %rcx
	movq	16(%rcx), %rcx
	movq	%rax, 8(%rcx)
LBB0_9:
	cmpl	$1, 8(%r15)
	jne	LBB0_12
## %bb.10:
	movq	_PRED_BI@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_12
## %bb.11:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_AV_ZERO32
	jmp	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	$1, %ecx
	callq	_ff_hevc_hls_mvd_coding
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movq	32(%rbp), %rbx
	movq	_PF_L1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_ff_hevc_mvp_lx_flag_decode
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	%rax
	pushq	%rbx
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_ff_hevc_luma_mv_mvp_mode
	addq	$48, %rsp
	movl	8(%r12), %eax
	movq	(%rbx), %rcx
	addl	%eax, 12(%rcx)
	movl	(%r12), %eax
	addl	%eax, 8(%rcx)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRED_L0,4,2                    ## @PRED_L0
	.comm	_HEVC_SLICE_B,8,3               ## @HEVC_SLICE_B
	.comm	_PRED_L1,4,2                    ## @PRED_L1
	.comm	_L0,8,3                         ## @L0
	.comm	_PF_L0,8,3                      ## @PF_L0
	.comm	_L1,8,3                         ## @L1
	.comm	_PRED_BI,4,2                    ## @PRED_BI
	.comm	_PF_L1,8,3                      ## @PF_L1
	.no_dead_strip	_hevc_luma_mv_mvp_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hevc_luma_mv_mvp_mode
_hevc_luma_mv_mvp_mode:                 ; @hevc_luma_mv_mvp_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w6, w7, [sp, #24]               ; 8-byte Folded Spill
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x27, x0
	ldr	x19, [x29, #16]
	ldr	x22, [x0, #24]
Lloh0:
	adrp	x20, _PRED_L0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PRED_L0@GOTPAGEOFF]
	ldr	w28, [x20]
	bl	_ff_hevc_set_neighbour_available
	str	xzr, [x19, #8]
	ldr	x8, [x27]
Lloh2:
	adrp	x9, _HEVC_SLICE_B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HEVC_SLICE_B@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x27
	mov	x1, x24
	mov	x2, x23
	bl	_ff_hevc_inter_pred_idc_decode
	mov	x28, x0
LBB0_2:
Lloh5:
	adrp	x8, _PRED_L1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRED_L1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w28, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x27, #16]
Lloh8:
	adrp	x9, _L0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L0@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x27
	bl	_ff_hevc_ref_idx_lx_decode
	ldr	x8, [x19, #16]
	str	x0, [x8]
LBB0_5:
Lloh11:
	adrp	x8, _PF_L0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PF_L0@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	w3, #0
	bl	_ff_hevc_hls_mvd_coding
	mov	x0, x27
	bl	_ff_hevc_mvp_lx_flag_decode
	stp	w0, wzr, [sp, #8]
	str	x19, [sp]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x21
	ldp	w6, w7, [sp, #24]               ; 8-byte Folded Reload
	bl	_ff_hevc_luma_mv_mvp_mode
	ldr	x8, [x19]
	ldr	q0, [x22]
	ldr	d1, [x8]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x8]
LBB0_6:
	ldr	w8, [x20]
	cmp	w28, w8
	b.eq	LBB0_14
; %bb.7:
	ldr	x8, [x27, #16]
Lloh14:
	adrp	x9, _L1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _L1@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x27
	bl	_ff_hevc_ref_idx_lx_decode
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
LBB0_9:
	ldr	w8, [x27, #8]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.10:
Lloh17:
	adrp	x8, _PRED_BI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PRED_BI@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_AV_ZERO32
	b	LBB0_13
LBB0_12:
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	w3, #1
	bl	_ff_hevc_hls_mvd_coding
LBB0_13:
Lloh20:
	adrp	x8, _PF_L1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PF_L1@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x8, x9, x8
	str	x8, [x19, #8]
	mov	x0, x27
	bl	_ff_hevc_mvp_lx_flag_decode
	mov	w8, #1
	stp	w0, w8, [sp, #8]
	str	x19, [sp]
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x21
	ldp	w6, w7, [sp, #24]               ; 8-byte Folded Reload
	bl	_ff_hevc_luma_mv_mvp_mode
	ldr	x8, [x19]
	ldr	q0, [x22]
	ldr	d1, [x8, #8]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x8, #8]
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PRED_L0,4,2                    ; @PRED_L0
	.comm	_HEVC_SLICE_B,8,3               ; @HEVC_SLICE_B
	.comm	_PRED_L1,4,2                    ; @PRED_L1
	.comm	_L0,8,3                         ; @L0
	.comm	_PF_L0,8,3                      ; @PF_L0
	.comm	_L1,8,3                         ; @L1
	.comm	_PRED_BI,4,2                    ; @PRED_BI
	.comm	_PF_L1,8,3                      ; @PF_L1
	.no_dead_strip	_hevc_luma_mv_mvp_mode
.subsections_via_symbols
