	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_luma_mv_merge_mode     ## -- Begin function ff_hevc_luma_mv_merge_mode
	.p2align	4, 0x90
_ff_hevc_luma_mv_merge_mode:            ## @ff_hevc_luma_mv_merge_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	16(%rbp), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MRG_MAX_NUM_CANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	cmpl	$3, %ebx
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	cmpl	$3, (%rax)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jl	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ebx
	movl	$8, %r12d
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %ecx
	movl	$8, %r15d
	jmp	LBB0_4
LBB0_1:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_ff_hevc_set_neighbour_available
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	movl	24(%rbp), %eax
	movq	%rax, %r15
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_derive_spatial_merge_candidates
	addq	$32, %rsp
	movslq	%r15d, %rcx
	movq	(%rbx,%rcx,8), %rax
	movq	_PF_BI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.5:
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	addl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	$12, %edx
	jne	LBB0_7
## %bb.6:
	movq	_PF_L0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx,%rcx,8)
LBB0_7:
	movq	32(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MRG_MAX_NUM_CANDS,4,2          ## @MRG_MAX_NUM_CANDS
	.comm	_PF_BI,8,3                      ## @PF_BI
	.comm	_PF_L0,8,3                      ## @PF_L0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_luma_mv_merge_mode     ; -- Begin function ff_hevc_luma_mv_merge_mode
	.p2align	2
_ff_hevc_luma_mv_merge_mode:            ; @ff_hevc_luma_mv_merge_mode
	.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, #32
	mov	x19, x7
	mov	x22, x6
	mov	x23, x5
	mov	x28, x4
	mov	x21, x3
	mov	x25, x2
	mov	x26, x1
	mov	x24, x0
	ldr	x8, [x29, #16]
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MRG_MAX_NUM_CANDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MRG_MAX_NUM_CANDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w27, #0
	cmp	w5, #3
	stp	w3, w4, [x29, #-104]            ; 8-byte Folded Spill
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x24]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
	mov	w22, #0
	ldr	x8, [x24, #8]
	ldp	w26, w25, [x8]
	mov	w28, #8
	mov	w27, #1
	mov	w21, #8
LBB0_3:
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	mov	x3, x21
	mov	x4, x28
	bl	_ff_hevc_set_neighbour_available
	sub	sp, sp, #16
	str	x20, [sp, #8]
	str	w19, [sp]
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	mov	x3, x21
	mov	x4, x28
	mov	x5, x23
	mov	x6, x27
	mov	x7, x22
	bl	_derive_spatial_merge_candidates
	add	sp, sp, #16
	ldr	x8, [x20, w19, sxtw #3]
Lloh8:
	adrp	x9, _PF_BI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PF_BI@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldp	w11, w10, [x29, #-104]          ; 8-byte Folded Reload
	add	w10, w10, w11
	cmp	x8, x9
	ccmp	w10, #12, #0, eq
	b.ne	LBB0_5
; %bb.4:
	sxtw	x9, w19
Lloh11:
	adrp	x8, _PF_L0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PF_L0@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x20, x9, lsl #3]
LBB0_5:
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	str	x8, [x9]
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #80
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MRG_MAX_NUM_CANDS,4,2          ; @MRG_MAX_NUM_CANDS
	.comm	_PF_BI,8,3                      ; @PF_BI
	.comm	_PF_L0,8,3                      ; @PF_L0
.subsections_via_symbols
