	.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_atan2
LCPI0_0:
	.quad	0x4014000000000000              ## double 5
LCPI0_1:
	.quad	0x40f0000000000000              ## double 65536
LCPI0_2:
	.quad	0x3ef0000000000000              ## double 1.52587890625E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_atan2:                            ## @test_atan2
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	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	%ecx, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	imull	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	___sincos_stret
	movapd	%xmm0, %xmm2
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm2
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm2
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movapd	%xmm2, %xmm1
	callq	_FT_Atan2
	movl	(%r15), %ecx
	movl	%eax, %edx
	sarl	$31, %edx
	andl	%ecx, %edx
	addl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	negl	%esi
	cmovsl	%eax, %esi
	cmpl	$2, %esi
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm2, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edx, %xmm1
	mulsd	%xmm2, %xmm1
	cvttsd2si	%xmm1, %esi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%ebx, %xmm3
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm3
	cvttsd2si	%xmm3, %edx
	movq	%r14, %rdi
	callq	_printf
	movl	(%r15), %ecx
	jmp	LBB0_4
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FT_Atan2( %.7f, %.7f ) = %.5f, atan = %.5f\n"

	.no_dead_strip	_test_atan2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_atan2
_test_atan2:                            ; @test_atan2
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
Lloh0:
	adrp	x20, _FT_ANGLE_2PI@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FT_ANGLE_2PI@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w21, #0
Lloh2:
	adrp	x22, _SPI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SPI@GOTPAGEOFF]
	fmov	d10, #5.00000000
	mov	x23, #4679240012837945344
	mov	x24, #4535124824762089472
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #16, lsl #12          ; =65536
	cmp	w21, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	mul	w8, w8, w21
	scvtf	d0, w8
	bl	___sincos_stret
	fmul	d1, d1, d10
	fmul	d0, d0, d10
	fmov	d2, x23
	fmul	d9, d1, d2
	fmul	d8, d0, d2
	fmov	d0, d9
	fmov	d1, d8
	bl	_FT_Atan2
	ldr	w8, [x20]
	and	w9, w8, w0, asr #31
	add	w9, w9, w0
	subs	w10, w21, w9
	cneg	w10, w10, mi
	cmp	w10, #2
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	d2, x24
	fmul	d0, d9, d2
	scvtf	d1, w9
	fmul	d1, d1, d2
	fcvtzs	w1, d1
	fmul	d1, d8, d2
	scvtf	d3, w21
	fmul	d2, d3, d2
	fcvtzs	w2, d2
	mov	x0, x19
	bl	_printf
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FT_ANGLE_2PI,4,2               ; @FT_ANGLE_2PI
	.comm	_SPI,4,2                        ; @SPI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FT_Atan2( %.7f, %.7f ) = %.5f, atan = %.5f\n"

	.no_dead_strip	_test_atan2
.subsections_via_symbols
