	.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_unit
LCPI0_0:
	.quad	0x40f0000000000000              ## double 65536
LCPI0_1:
	.quad	0x3ef0000000000000              ## double 1.52587890625E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_unit:                             ## @test_unit
	.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	$24, %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), %r12
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	movq	_SPI@GOTPCREL(%rip), %r13
	movq	_THRESHOLD@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsd	-48(%rbp), %xmm1                ## xmm1 = mem[0],zero
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_error@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	%ebx, %esi
	sarl	$16, %esi
	movsd	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm1
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$65536, %ebx                    ## imm = 0x10000
	cmpl	(%r12), %ebx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_FT_Vector_Unit
	movl	(%r13), %eax
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	___sincos_stret
	movapd	%xmm1, %xmm2
	movsd	LCPI0_0(%rip), %xmm5            ## xmm5 = mem[0],zero
	mulsd	%xmm5, %xmm1
	cvttsd2si	%xmm1, %rax
	movapd	%xmm0, %xmm3
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movapd	%xmm0, %xmm4
	subsd	%xmm1, %xmm4
	cvttsd2si	%xmm4, %rax
	movq	%rax, %rcx
	negq	%rcx
	cmovsq	%rax, %rcx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movapd	%xmm3, %xmm1
	mulsd	%xmm5, %xmm1
	cvttsd2si	%xmm1, %rcx
	xorps	%xmm4, %xmm4
	cvtsi2sd	%rcx, %xmm4
	movsd	-48(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm5
	subsd	%xmm4, %xmm5
	cvttsd2si	%xmm5, %rcx
	movq	%rcx, %rdx
	negq	%rdx
	cmovsq	%rcx, %rdx
	cmpq	%rax, %rdx
	jg	LBB0_5
	jmp	LBB0_6
LBB0_7:
	addq	$24, %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_Vector_Unit[%3d] = ( %.7f, %.7f )  vec = ( %.7f, %.7f )\n"

	.no_dead_strip	_test_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_unit
_test_unit:                             ; @test_unit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x21, _FT_ANGLE_2PI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FT_ANGLE_2PI@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w19, #0
Lloh2:
	adrp	x22, _SPI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SPI@GOTPAGEOFF]
	mov	x23, #4679240012837945344
Lloh4:
	adrp	x24, _THRESHOLD@GOTPAGE
Lloh5:
	ldr	x24, [x24, _THRESHOLD@GOTPAGEOFF]
Lloh6:
	adrp	x25, _error@GOTPAGE
Lloh7:
	ldr	x25, [x25, _error@GOTPAGEOFF]
	mov	w26, #1
	mov	x27, #4535124824762089472
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	d1, [sp, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w26, [x25]
	asr	w1, w19, #16
	fmov	d4, x27
	fmul	d0, d0, d4
	fmul	d1, d1, d4
	mov	x0, x20
	bl	_printf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w19, w19, #16, lsl #12          ; =65536
	ldr	w8, [x21]
	cmp	w19, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x19
	bl	_FT_Vector_Unit
	ldr	w8, [x22]
	mul	w8, w8, w19
	scvtf	d0, w8
	bl	___sincos_stret
	fmov	d3, d0
	fmov	d2, d1
	fmov	d0, x23
	fmul	d1, d1, d0
	ldr	d0, [sp]
	fcvtzs	d1, d1
	scvtf	d1, d1
	fsub	d1, d0, d1
	fcvtzs	x8, d1
	cmp	x8, #0
	cneg	x9, x8, mi
	ldr	x8, [x24]
	cmp	x9, x8
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	fmov	d1, x23
	fmul	d4, d3, d1
	ldr	d1, [sp, #8]
	fcvtzs	d4, d4
	scvtf	d4, d4
	fsub	d4, d1, d4
	fcvtzs	x9, d4
	cmp	x9, #0
	cneg	x9, x9, mi
	cmp	x9, x8
	b.gt	LBB0_3
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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_Vector_Unit[%3d] = ( %.7f, %.7f )  vec = ( %.7f, %.7f )\n"

	.no_dead_strip	_test_unit
.subsections_via_symbols
