	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_test
_run_test:                              ## @run_test
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_sad_c@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	_sad_c@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	_W1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_W2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_run_single_test
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	(%r15), %edi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %ebx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	movq	_sad_c@GOTPCREL(%rip), %r15
LBB0_4:
	movl	(%r15), %edi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	xorl	%r13d, %r13d
	movq	_sad_c@GOTPCREL(%rip), %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	movq	_W1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_W2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r13d, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, %r9d
	callq	_run_single_test
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	(%r12), %edi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %r13d
	jl	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	_sad_c@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %edi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	_W1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_W2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	movl	$2, %r9d
	callq	_run_single_test
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movq	_sad_c@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %ebx
	jl	LBB0_10
LBB0_11:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sad_c,4,2                      ## @sad_c
	.comm	_W1,4,2                         ## @W1
	.comm	_W2,4,2                         ## @W2
	.no_dead_strip	_run_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_test
_run_test:                              ; @run_test
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _sad_c@GOTPAGE
Lloh1:
	ldr	x24, [x24, _sad_c@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_FF_ARRAY_ELEMS
Lloh2:
	adrp	x25, _W1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _W1@GOTPAGEOFF]
Lloh4:
	adrp	x26, _W2@GOTPAGE
Lloh5:
	ldr	x26, [x26, _W2@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	w5, #0
	mov	x6, x23
	bl	_run_single_test
	cmp	w0, #0
	csel	w22, w22, w0, eq
	ldr	w0, [x24]
	bl	_FF_ARRAY_ELEMS
	cmp	w23, w0
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	ldr	w0, [x24]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	w5, #1
	mov	x6, x23
	bl	_run_single_test
	cmp	w0, #0
	csel	w22, w22, w0, eq
	ldr	w0, [x24]
	bl	_FF_ARRAY_ELEMS
	cmp	w23, w0
	b.lt	LBB0_6
LBB0_7:
	ldr	w0, [x24]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	w23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	w5, #2
	mov	x6, x23
	bl	_run_single_test
	cmp	w0, #0
	csel	w22, w22, w0, eq
	ldr	w0, [x24]
	bl	_FF_ARRAY_ELEMS
	cmp	w23, w0
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_sad_c,4,2                      ; @sad_c
	.comm	_W1,4,2                         ; @W1
	.comm	_W2,4,2                         ; @W2
	.no_dead_strip	_run_test
.subsections_via_symbols
