	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bilateral_me
_bilateral_me:                          ## @bilateral_me
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %r15
	movl	4(%rdi), %r11d
	movslq	%r11d, %r8
	movl	%r8d, %esi
	andl	$-2, %esi
	movl	$1, %edi
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	%r8, %rdi
	cmpq	%r9, %rbx
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r11d, %r11d
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r10
	cmpl	$1, %r11d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdi,%rdi,2), %rax
	leaq	(%r10,%rax,8), %rdx
	addq	$8, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	%xmm0, -24(%rdx)
	movq	-32(%rdx), %rcx
	movq	(%rcx), %rcx
	movups	%xmm0, (%rcx)
	movups	%xmm0, (%rdx)
	movq	-8(%rdx), %rcx
	movq	(%rcx), %rcx
	addq	$2, %rax
	movups	%xmm0, (%rcx)
	addq	$48, %rdx
	cmpq	%rax, %rsi
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r11b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rcx
	imulq	%r8, %rcx
	addq	%rax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movups	%xmm0, 8(%r10,%rax,8)
	movq	(%r10,%rax,8), %rax
	movq	(%rax), %rax
	movups	%xmm0, (%rax)
	jmp	LBB0_9
LBB0_10:
	movl	4(%r15), %eax
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r14d
	cmpl	%r9d, %r14d
	jge	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%eax, %eax
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_search_mv
	incl	%ebx
	movl	4(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r15), %r9d
	jmp	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bilateral_me
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bilateral_me
_bilateral_me:                          ; @bilateral_me
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	x9, #0
	mov	x10, #0
	ldr	w11, [x0, #4]
	sxtw	x12, w11
	mov	w13, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x9, x9, x12
	cmp	x10, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x19, #8]
	madd	x14, x9, x13, x14
	add	x14, x14, #8
	mov	x15, x11
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	xzr, xzr, [x14]
	ldur	x16, [x14, #-8]
	ldr	x16, [x16]
	stp	xzr, xzr, [x16]
	add	x14, x14, #24
	subs	x15, x15, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w20, #0
	ldr	w9, [x19, #4]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w21, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	bl	_search_mv
	add	w21, w21, #1
	ldr	w9, [x19, #4]
	cmp	w21, w9
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bilateral_me
.subsections_via_symbols
