	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function __kernel_cos
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0xbfd2000000000000              ## double -0.28125
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___kernel_cos:                          ## @__kernel_cos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movsd	%xmm1, -8(%rbp)                 ## 8-byte Spill
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	callq	___HI
	movsd	-16(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	cmpl	$1044381695, %eax               ## imm = 0x3E3FFFFF
	ja	LBB0_3
## %bb.1:
	cvttsd2si	%xmm4, %ecx
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_one@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_6
LBB0_3:
	movapd	%xmm4, %xmm1
	mulsd	%xmm4, %xmm1
	movq	_C1@GOTPCREL(%rip), %rcx
	movq	_C2@GOTPCREL(%rip), %rdx
	movq	_C5@GOTPCREL(%rip), %rsi
	movq	_C6@GOTPCREL(%rip), %rdi
	movsd	(%rdi), %xmm2                   ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	addsd	(%rsi), %xmm2
	movq	_C4@GOTPCREL(%rip), %rsi
	mulsd	%xmm1, %xmm2
	addsd	(%rsi), %xmm2
	movq	_C3@GOTPCREL(%rip), %rsi
	mulsd	%xmm1, %xmm2
	addsd	(%rsi), %xmm2
	mulsd	%xmm1, %xmm2
	addsd	(%rdx), %xmm2
	mulsd	%xmm1, %xmm2
	addsd	(%rcx), %xmm2
	mulsd	%xmm1, %xmm2
	cmpl	$1070805810, %eax               ## imm = 0x3FD33332
	ja	LBB0_5
## %bb.4:
	movq	_one@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	-8(%rbp), %xmm4                 ## 8-byte Folded Reload
	mulsd	%xmm1, %xmm2
	subsd	%xmm4, %xmm2
	mulsd	LCPI0_0(%rip), %xmm1
	subsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	jmp	LBB0_6
LBB0_5:
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm1, %xmm3
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm3
	movq	_one@GOTPCREL(%rip), %rax
	addsd	(%rax), %xmm0
	mulsd	-8(%rbp), %xmm4                 ## 8-byte Folded Reload
	mulsd	%xmm1, %xmm2
	subsd	%xmm4, %xmm2
	subsd	%xmm2, %xmm3
	subsd	%xmm3, %xmm0
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_one,8,3                        ## @one
	.comm	_C1,8,3                         ## @C1
	.comm	_C2,8,3                         ## @C2
	.comm	_C3,8,3                         ## @C3
	.comm	_C4,8,3                         ## @C4
	.comm	_C5,8,3                         ## @C5
	.comm	_C6,8,3                         ## @C6
	.no_dead_strip	___kernel_cos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __kernel_cos
___kernel_cos:                          ; @__kernel_cos
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-32]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
	fmov	d8, d1
	fmov	d9, d0
	bl	___HI
	fcvtzs	w8, d9
	ubfx	w9, w0, #22, #9
	cmp	w9, #248
	ccmp	w8, #0, #0, ls
	b.eq	LBB0_3
; %bb.1:
	and	w8, w0, #0x7fffffff
	fmul	d0, d9, d9
Lloh0:
	adrp	x9, _C1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _C1@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x9]
Lloh3:
	adrp	x9, _C2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _C2@GOTPAGEOFF]
Lloh5:
	ldr	d2, [x9]
Lloh6:
	adrp	x9, _C3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _C3@GOTPAGEOFF]
Lloh8:
	ldr	d3, [x9]
Lloh9:
	adrp	x9, _C4@GOTPAGE
Lloh10:
	ldr	x9, [x9, _C4@GOTPAGEOFF]
Lloh11:
	ldr	d4, [x9]
Lloh12:
	adrp	x9, _C5@GOTPAGE
Lloh13:
	ldr	x9, [x9, _C5@GOTPAGEOFF]
Lloh14:
	ldr	d5, [x9]
Lloh15:
	adrp	x9, _C6@GOTPAGE
Lloh16:
	ldr	x9, [x9, _C6@GOTPAGEOFF]
Lloh17:
	ldr	d6, [x9]
	fmadd	d5, d0, d6, d5
	fmadd	d4, d0, d5, d4
	fmadd	d3, d0, d4, d3
	fmadd	d2, d0, d3, d2
	fmadd	d1, d0, d2, d1
	fmul	d1, d0, d1
	mov	w9, #13106
	movk	w9, #16339, lsl #16
	cmp	w8, w9
	b.hi	LBB0_4
; %bb.2:
Lloh18:
	adrp	x8, _one@GOTPAGE
Lloh19:
	ldr	x8, [x8, _one@GOTPAGEOFF]
Lloh20:
	ldr	d2, [x8]
	fneg	d3, d9
	fmul	d3, d3, d8
	fmadd	d1, d0, d1, d3
	fmov	d3, #0.50000000
	fnmsub	d0, d0, d3, d1
	b	LBB0_5
LBB0_3:
Lloh21:
	adrp	x8, _one@GOTPAGE
Lloh22:
	ldr	x8, [x8, _one@GOTPAGEOFF]
Lloh23:
	ldr	d0, [x8]
	b	LBB0_6
LBB0_4:
	fmov	d2, #-0.28125000
	fmov	d3, #0.50000000
	fmadd	d3, d0, d3, d2
Lloh24:
	adrp	x8, _one@GOTPAGE
Lloh25:
	ldr	x8, [x8, _one@GOTPAGEOFF]
Lloh26:
	ldr	d4, [x8]
	fadd	d2, d4, d2
	fneg	d4, d9
	fmul	d4, d4, d8
	fmadd	d0, d0, d1, d4
	fsub	d0, d3, d0
LBB0_5:
	fsub	d0, d2, d0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_one,8,3                        ; @one
	.comm	_C1,8,3                         ; @C1
	.comm	_C2,8,3                         ; @C2
	.comm	_C3,8,3                         ; @C3
	.comm	_C4,8,3                         ; @C4
	.comm	_C5,8,3                         ; @C5
	.comm	_C6,8,3                         ; @C6
	.no_dead_strip	___kernel_cos
.subsections_via_symbols
