	.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_sin
LCPI0_0:
	.quad	0x40f0000000000000              ## double 65536
LCPI0_1:
	.quad	0x3ef0000000000000              ## double 1.52587890625E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_sin:                              ## @test_sin
	.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), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_SPI@GOTPCREL(%rip), %r12
	movq	_THRESHOLD@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$65536, %ebx                    ## imm = 0x10000
	cmpl	(%r15), %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_FT_Sin
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	(%r12), %edi
	imull	%ebx, %edi
	callq	_sin
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	mulsd	LCPI0_0(%rip), %xmm0
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_abs
	cmpq	(%r13), %rax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_error@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	%ebx, %edx
	sarl	$16, %edx
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm0
	movq	%r14, %rdi
	movl	%edx, %esi
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_printf
	jmp	LBB0_4
LBB0_5:
	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_Sin[%3d] = %.7f  sin[%3d] = %.7f\n"

	.no_dead_strip	_test_sin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_sin
_test_sin:                              ; @test_sin
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x21, _FT_ANGLE_2PI@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FT_ANGLE_2PI@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %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_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #16, lsl #12          ; =65536
	ldr	w8, [x21]
	cmp	w19, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_FT_Sin
	fmov	d8, d0
	ldr	w8, [x22]
	mul	w0, w8, w19
	bl	_sin
	fmov	d9, d0
	fmov	d0, x23
	fmul	d0, d9, d0
	fsub	d0, d0, d8
	bl	_abs
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w26, [x25]
	asr	w1, w19, #16
	fmov	d0, x27
	fmul	d0, d8, d0
	mov	x0, x20
	mov	x2, x1
	fmov	d1, d9
	bl	_printf
	b	LBB0_2
LBB0_5:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	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_Sin[%3d] = %.7f  sin[%3d] = %.7f\n"

	.no_dead_strip	_test_sin
.subsections_via_symbols
