	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cos
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cos
	.p2align	4, 0x90
_cos:                                   ## @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	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	callq	___HI
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	cmpl	$1072243195, %eax               ## imm = 0x3FE921FB
	ja	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	movapd	-48(%rbp), %xmm0                ## 16-byte Reload
	jne	LBB0_14
## %bb.2:
	xorps	%xmm1, %xmm1
	addq	$48, %rsp
	popq	%rbp
	jmp	___kernel_cos                   ## TAILCALL
LBB0_3:
	cmpl	$2146435072, %eax               ## imm = 0x7FF00000
	jb	LBB0_5
## %bb.4:
	movapd	-48(%rbp), %xmm0                ## 16-byte Reload
	subsd	%xmm0, %xmm0
	jmp	LBB0_12
LBB0_5:
	leaq	-32(%rbp), %rdi
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	callq	___ieee754_rem_pio2
	andl	$3, %eax
	cmpl	$2, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$1, %eax
	je	LBB0_9
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
	callq	___kernel_cos
	jmp	LBB0_12
LBB0_9:
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movl	$1, %edi
	callq	___kernel_sin
	xorpd	LCPI0_0(%rip), %xmm0
	jmp	LBB0_12
LBB0_10:
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
	callq	___kernel_cos
	xorpd	LCPI0_0(%rip), %xmm0
	jmp	LBB0_12
LBB0_11:
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movl	$1, %edi
	callq	___kernel_sin
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cos                            ; -- Begin function cos
	.p2align	2
_cos:                                   ; @cos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
	fmov	d8, d0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	___HI
	and	w8, w0, #0x7fffffff
	mov	w9, #8699
	movk	w9, #16361, lsl #16
	cmp	w8, w9
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.2:
	movi	d1, #0000000000000000
	fmov	d0, d8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #64
	b	___kernel_cos
LBB0_3:
	lsr	w8, w8, #20
	cmp	w8, #2047
	b.lo	LBB0_5
; %bb.4:
	fsub	d0, d8, d8
	b	LBB0_12
LBB0_5:
	add	x0, sp, #8
	fmov	d0, d8
	bl	___ieee754_rem_pio2
	and	w8, w0, #0x3
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.7:
	cbnz	w8, LBB0_11
; %bb.8:
	ldp	d0, d1, [sp, #8]
	bl	___kernel_cos
	b	LBB0_12
LBB0_9:
	ldp	d0, d1, [sp, #8]
	mov	w0, #1
	bl	___kernel_sin
	fneg	d0, d0
	b	LBB0_12
LBB0_10:
	ldp	d0, d1, [sp, #8]
	bl	___kernel_cos
	fneg	d0, d0
	b	LBB0_12
LBB0_11:
	ldp	d0, d1, [sp, #8]
	mov	w0, #1
	bl	___kernel_sin
LBB0_12:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
