	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function test_rotate
LCPI0_0:
	.quad	0x407f400000000000              ## double 500
	.quad	0x407f400000000000              ## double 500
LCPI0_1:
	.quad	0x40f0000000000000              ## double 65536
	.quad	0x40f0000000000000              ## double 65536
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x40f0000000000000              ## double 65536
LCPI0_3:
	.quad	0x3ef0000000000000              ## double 1.52587890625E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_rotate:                           ## @test_rotate
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FT_ANGLE_2PI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	movq	_THRESHOLD@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$65536, %ebx                    ## imm = 0x10000
	cmpl	%r13d, %ebx
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %eax
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	callq	___sincos_stret
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r12d, %r14d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	callq	___sincos_stret
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	mulpd	LCPI0_0(%rip), %xmm1
	movapd	%xmm1, -128(%rbp)               ## 16-byte Spill
	movapd	%xmm1, %xmm0
	mulpd	LCPI0_1(%rip), %xmm0
	movapd	%xmm0, -176(%rbp)               ## 16-byte Spill
	movapd	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%ebx, %esi
	callq	_FT_Vector_Rotate
	movapd	-128(%rbp), %xmm5               ## 16-byte Reload
	movapd	%xmm5, %xmm3
	unpckhpd	%xmm5, %xmm3                    ## xmm3 = xmm3[1],xmm5[1]
	movsd	-88(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm0
	mulsd	%xmm3, %xmm0
	movapd	%xmm5, %xmm4
	movsd	-80(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm4
	subsd	%xmm0, %xmm4
	movapd	%xmm2, %xmm0
	movapd	%xmm3, -160(%rbp)               ## 16-byte Spill
	mulsd	%xmm3, %xmm0
	movapd	%xmm5, %xmm2
	mulsd	%xmm1, %xmm2
	addsd	%xmm0, %xmm2
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm4
	mulsd	%xmm0, %xmm2
	movapd	%xmm2, -112(%rbp)               ## 16-byte Spill
	movapd	%xmm4, -144(%rbp)               ## 16-byte Spill
	movapd	%xmm4, %xmm0
	subsd	-64(%rbp), %xmm0
	callq	_abs
	cmpq	(%r15), %rax
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movapd	-112(%rbp), %xmm0               ## 16-byte Reload
	subsd	-56(%rbp), %xmm0
	callq	_abs
	cmpq	(%r15), %rax
	jle	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_error@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movapd	-176(%rbp), %xmm4               ## 16-byte Reload
	movapd	%xmm4, %xmm3
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm3
	unpckhpd	%xmm4, %xmm4                    ## xmm4 = xmm4[1,1]
	mulsd	%xmm0, %xmm4
	movapd	-144(%rbp), %xmm5               ## 16-byte Reload
	mulsd	%xmm0, %xmm5
	movapd	-112(%rbp), %xmm6               ## 16-byte Reload
	mulsd	%xmm0, %xmm6
	leaq	L_.str(%rip), %rdi
	movapd	-128(%rbp), %xmm0               ## 16-byte Reload
	movapd	-160(%rbp), %xmm1               ## 16-byte Reload
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	callq	_printf
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	addl	$65536, %r12d                   ## imm = 0x10000
	movq	_FT_ANGLE_2PI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r13d, %r12d
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_SPI@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_10:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FT_ANGLE_2PI,4,2               ## @FT_ANGLE_2PI
	.comm	_SPI,4,2                        ## @SPI
	.comm	_THRESHOLD,8,3                  ## @THRESHOLD
	.comm	_error,4,2                      ## @error
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FT_Rotate( (%.7f,%.7f), %.5f ) = ( %.7f, %.7f ), rot = ( %.7f, %.7f )\n"

	.no_dead_strip	_test_rotate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rotate
_test_rotate:                           ; @test_rotate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d15, d14, [sp, #32]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
Lloh0:
	adrp	x21, _FT_ANGLE_2PI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FT_ANGLE_2PI@GOTPAGEOFF]
	ldr	w27, [x21]
	cmp	w27, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w19, #0
Lloh2:
	adrp	x22, _SPI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SPI@GOTPAGEOFF]
	mov	x23, #70368744177664
	movk	x23, #16511, lsl #48
	mov	x24, #4679240012837945344
Lloh4:
	adrp	x25, _THRESHOLD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _THRESHOLD@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #16, lsl #12          ; =65536
	cmp	w19, w27
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w28, [x22]
	mul	w8, w28, w19
	scvtf	d0, w8
	str	d0, [sp]                        ; 8-byte Folded Spill
	bl	___sincos_stret
	str	d0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	d10, d1
	mov	w26, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w28, w26
	scvtf	d0, w8
	bl	___sincos_stret
	fmov	d13, d0
	fmov	d8, x23
	fmul	d11, d1, d8
	fmul	d12, d0, d8
	fmov	d9, x24
	fmul	d14, d11, d9
	fmul	d15, d12, d9
	stp	d14, d15, [sp, #16]
	add	x0, sp, #16
	mov	x1, x19
	bl	_FT_Vector_Rotate
	fnmul	d0, d13, d8
	ldr	d2, [sp, #8]                    ; 8-byte Folded Reload
	fmul	d0, d2, d0
	fmadd	d0, d11, d10, d0
	fmul	d1, d10, d12
	fmadd	d1, d11, d2, d1
	fmul	d13, d0, d9
	fmul	d8, d1, d9
	ldr	d0, [sp, #16]
	fsub	d0, d13, d0
	bl	_abs
	ldr	x8, [x25]
	cmp	x0, x8
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	d0, [sp, #24]
	fsub	d0, d8, d0
	bl	_abs
	ldr	x8, [x25]
	cmp	x0, x8
	b.le	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=2
Lloh8:
	adrp	x8, _error@GOTPAGE
Lloh9:
	ldr	x8, [x8, _error@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
	mov	x8, #4535124824762089472
	fmov	d0, x8
	fmul	d3, d14, d0
	fmul	d4, d15, d0
	fmul	d5, d13, d0
	fmul	d6, d8, d0
	mov	x0, x20
	fmov	d0, d11
	fmov	d1, d12
	ldr	d2, [sp]                        ; 8-byte Folded Reload
	bl	_printf
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w26, w26, #16, lsl #12          ; =65536
	ldr	w27, [x21]
	cmp	w26, w27
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w28, [x22]
	b	LBB0_5
LBB0_10:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FT_ANGLE_2PI,4,2               ; @FT_ANGLE_2PI
	.comm	_SPI,4,2                        ; @SPI
	.comm	_THRESHOLD,8,3                  ; @THRESHOLD
	.comm	_error,4,2                      ; @error
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FT_Rotate( (%.7f,%.7f), %.5f ) = ( %.7f, %.7f ), rot = ( %.7f, %.7f )\n"

	.no_dead_strip	_test_rotate
.subsections_via_symbols
