	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function test_motion
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_motion:                           ## @test_motion
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_img1@GOTPCREL(%rip), %rbx
	movq	_WIDTH@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	$20, %eax
	je	LBB0_11
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rdi
	imull	(%r13), %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_fill_random
	movq	_img2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HEIGHT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	imull	(%r13), %esi
	callq	_fill_random
	movl	(%r14), %esi
	cmpl	$18, %esi
	jl	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %ecx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	_img2@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_img1@GOTPCREL(%rip), %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	incl	%edi
	leal	-17(%rsi), %eax
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edi
	jge	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	cmpl	$18, %ecx
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=3
	incq	%r12
	movslq	(%r13), %rcx
	movq	%rcx, %rax
	addq	$-17, %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_img2@GOTPCREL(%rip), %rdx
	jge	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	imull	%ecx, %eax
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	(%rdx), %rbx
	addq	%r14, %rbx
	movq	_img1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$8, %r8d
	callq	*%r15
	movl	%eax, %r15d
	movq	_img1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r13), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rdx
	movl	$8, %r8d
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	cmpl	%eax, %r15d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
LBB0_11:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_emms_c
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	_NB_ITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.12:
	movq	_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_NB_ITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_22
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	cmpl	$18, %eax
	jl	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	incl	%r13d
	leal	-17(%rax), %edx
	cmpl	%edx, %r13d
	jge	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	cmpl	$18, %ecx
	jl	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r13d, %eax
	imull	%ecx, %eax
	movslq	%eax, %rdx
	shlq	$2, %rdx
	movq	_img2@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	_img1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$8, %r8d
	callq	*%r15
	addl	%eax, %r14d
	incq	%r12
	movq	_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	%rcx, %rax
	addq	$-17, %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_22:
	xorl	%eax, %eax
	callq	_emms_c
	movq	_dummy@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	_NB_ITS@GOTPCREL(%rip), %rax
	cvtsi2sdl	(%rax), %xmm1
	movq	_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-16, %eax
	cvtsi2sd	%eax, %xmm2
	subsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	%xmm1, %xmm2
	movq	_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-16, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	divsd	LCPI0_0(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	leaq	L_.str.2(%rip), %rdi
	movapd	%xmm1, %xmm0
	movb	$1, %al
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testing '%s'\n"

	.comm	_img1,8,3                       ## @img1
	.comm	_WIDTH,4,2                      ## @WIDTH
	.comm	_HEIGHT,4,2                     ## @HEIGHT
	.comm	_img2,8,3                       ## @img2
L_.str.1:                               ## @.str.1
	.asciz	"error: mmx=%d c=%d\n"

	.comm	_NB_ITS,4,2                     ## @NB_ITS
	.comm	_dummy,4,2                      ## @dummy
L_.str.2:                               ## @.str.2
	.asciz	"  %0.0f kop/s\n"

	.no_dead_strip	_test_motion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_motion
_test_motion:                           ; @test_motion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x2
	mov	x19, x1
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w9, #0
Lloh2:
	adrp	x8, _HEIGHT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x26, _img1@GOTPAGE
Lloh6:
	ldr	x26, [x26, _img1@GOTPAGEOFF]
Lloh7:
	adrp	x25, _WIDTH@GOTPAGE
Lloh8:
	ldr	x25, [x25, _WIDTH@GOTPAGEOFF]
Lloh9:
	adrp	x27, _img2@GOTPAGE
Lloh10:
	ldr	x27, [x27, _img2@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	cmp	w9, #20
	b.eq	LBB0_11
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x0, [x26]
	ldr	w9, [x25]
	mul	w1, w8, w9
	bl	_fill_random
	ldr	x0, [x27]
	ldr	w8, [x25]
Lloh11:
	adrp	x21, _HEIGHT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HEIGHT@GOTPAGEOFF]
	ldr	w9, [x21]
	mul	w1, w9, w8
	bl	_fill_random
	ldr	w8, [x21]
	cmp	w8, #18
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	ldr	w3, [x25]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
Lloh13:
	adrp	x8, _HEIGHT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HEIGHT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w24, w24, #1
	sub	w9, w8, #17
	cmp	w24, w9
	b.ge	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	cmp	w3, #18
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x28, #0
	mov	x21, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	add	x21, x21, #1
	ldrsw	x3, [x25]
	sub	x8, x3, #17
	add	x28, x28, #4
	cmp	x21, x8
	b.ge	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x27]
	mul	w9, w24, w3
	add	x8, x8, w9, sxtw #2
	add	x23, x8, x28
	ldr	x1, [x26]
	mov	x0, #0
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #8
	blr	x19
	mov	x22, x0
	ldr	x1, [x26]
	ldr	w3, [x25]
	mov	x0, #0
	mov	x2, x23
	mov	w4, #8
	blr	x20
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w22, w0
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	stp	x22, x0, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	b	LBB0_8
LBB0_11:
	bl	_emms_c
	bl	_av_gettime_relative
	fmov	d8, d0
Lloh18:
	adrp	x20, _NB_ITS@GOTPAGE
Lloh19:
	ldr	x20, [x20, _NB_ITS@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.12:
	mov	w22, #0
	mov	w21, #0
Lloh20:
	adrp	x8, _HEIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HEIGHT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x20]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w22, w22, #1
	cmp	w22, w9
	b.ge	LBB0_23
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	cmp	w8, #18
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w23, #0
	ldr	w3, [x25]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w23, w23, #1
	sub	w9, w8, #17
	cmp	w23, w9
	b.ge	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	cmp	w3, #18
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x24, #0
	mov	x28, #0
LBB0_20:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x27]
	mul	w9, w23, w3
	add	x8, x8, w9, sxtw #2
	add	x2, x8, x24
	ldr	x1, [x26]
	mov	x0, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #8
	blr	x19
	add	w21, w0, w21
	add	x28, x28, #1
	ldrsw	x3, [x25]
	sub	x8, x3, #17
	add	x24, x24, #4
	cmp	x28, x8
	b.lt	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh23:
	adrp	x8, _HEIGHT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HEIGHT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	b	LBB0_17
LBB0_22:
	mov	w21, #0
LBB0_23:
	bl	_emms_c
Lloh26:
	adrp	x8, _dummy@GOTPAGE
Lloh27:
	ldr	x8, [x8, _dummy@GOTPAGEOFF]
Lloh28:
	str	w21, [x8]
	bl	_av_gettime_relative
	fsub	d0, d0, d8
	ldr	s1, [x20]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	ldr	w8, [x25]
	sub	w8, w8, #16
	scvtf	d2, w8
Lloh29:
	adrp	x8, _HEIGHT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HEIGHT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	sub	w8, w8, #16
	scvtf	d3, w8
	fmul	d1, d1, d2
	fmul	d1, d1, d3
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d2, x8
	fdiv	d0, d0, d2
	fdiv	d0, d1, d0
	str	d0, [sp]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testing '%s'\n"

	.comm	_img1,8,3                       ; @img1
	.comm	_WIDTH,4,2                      ; @WIDTH
	.comm	_HEIGHT,4,2                     ; @HEIGHT
	.comm	_img2,8,3                       ; @img2
l_.str.1:                               ; @.str.1
	.asciz	"error: mmx=%d c=%d\n"

	.comm	_NB_ITS,4,2                     ; @NB_ITS
	.comm	_dummy,4,2                      ; @dummy
l_.str.2:                               ; @.str.2
	.asciz	"  %0.0f kop/s\n"

	.no_dead_strip	_test_motion
.subsections_via_symbols
