	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function set_hp
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0xc000000000000000              ## double -2
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.space	8
	.quad	0xc000000000000000              ## double -2
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.space	8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_hp:                                ## @set_hp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_M_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cvtsi2ss	%eax, %xmm3
	movss	%xmm1, -12(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	mulss	%xmm0, %xmm3
	divss	%xmm2, %xmm3
	xorps	%xmm0, %xmm0
	cvtss2sd	%xmm3, %xmm0
	callq	___sincos_stret
	movss	-12(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm2
	cvtss2sd	%xmm2, %xmm2
	divsd	%xmm2, %xmm0
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm3
	addsd	%xmm2, %xmm3
	movapd	%xmm2, %xmm4
	divsd	%xmm3, %xmm4
	movapd	%xmm1, %xmm3
	addsd	%xmm2, %xmm3
	subsd	%xmm0, %xmm2
	unpcklpd	%xmm1, %xmm3                    ## xmm3 = xmm3[0],xmm1[0]
	movapd	LCPI0_1(%rip), %xmm0            ## xmm0 = <u,-2.0E+0>
	blendpd	$1, %xmm4, %xmm0                ## xmm0 = xmm4[0],xmm0[1]
	mulpd	%xmm3, %xmm0
	movapd	LCPI0_2(%rip), %xmm1            ## xmm1 = <5.0E-1,u>
	unpcklpd	%xmm4, %xmm1                    ## xmm1 = xmm1[0],xmm4[0]
	mulpd	%xmm0, %xmm1
	movlpd	%xmm1, (%rbx)
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	mulsd	%xmm4, %xmm2
	unpcklpd	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	shufpd	$1, %xmm2, %xmm1                ## xmm1 = xmm1[1],xmm2[0]
	cvttpd2dq	%xmm1, %xmm1
	cvttpd2dq	%xmm0, %xmm0
	unpcklpd	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movupd	%xmm0, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_set_hp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_hp
_set_hp:                                ; @set_hp
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	s8, s1
	mov	x19, x0
Lloh0:
	adrp	x8, _M_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	scvtf	s1, w8
	fmul	s0, s1, s0
	fdiv	s0, s0, s2
	fcvt	d0, s0
	bl	___sincos_stret
	fadd	s2, s8, s8
	fcvt	d2, s2
	fdiv	d0, d0, d2
	fmov	d2, #1.00000000
	fadd	d3, d0, d2
	fdiv	d3, d2, d3
	fadd	d4, d1, d2
	fmul	d4, d4, d3
	fmov	d5, #0.50000000
	fmul	d4, d4, d5
	str	d4, [x19]
	fmov	d5, #-2.00000000
	fmul	d6, d4, d5
	fcvtzs	w8, d6
	fcvtzs	w9, d4
	stp	w8, w9, [x19, #8]
	fmul	d1, d1, d5
	fmul	d1, d1, d3
	fcvtzs	w8, d1
	fsub	d0, d2, d0
	fmul	d0, d0, d3
	fcvtzs	w9, d0
	stp	w8, w9, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_set_hp
.subsections_via_symbols
