	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_cos
_f_cos:                                 ## @f_cos
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_getsign
	movq	_TAG_Valid@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	cmpq	%rbx, %rsi
	jne	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_exponent
	cmpl	$-39, %eax
	jl	LBB0_16
## %bb.2:
	movq	%r14, %rdi
	callq	_exponent
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_exponent
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	_FCOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_trig_arg
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_poly_sine
	incl	%ebx
	testb	$2, %bl
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_changesign
	jmp	LBB0_9
LBB0_10:
	movq	_TAG_Zero@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	_CONST_1@GOTPCREL(%rip), %rdi
	callq	_FPU_copy_to_reg0
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_setcc
	jmp	LBB0_21
LBB0_12:
	movq	_TAG_Special@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_FPU_Special
	movq	%rax, %rbx
LBB0_14:
	movq	_TW_Denormal@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_17
## %bb.15:
	xorl	%eax, %eax
	callq	_denormal_operand
	testq	%rax, %rax
	js	LBB0_20
LBB0_16:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_setcc
	movq	(%r15), %rsi
	movq	_CONST_1@GOTPCREL(%rip), %rdi
	callq	_FPU_copy_to_reg0
	xorl	%eax, %eax
	callq	_set_precision_flag_up
	jmp	LBB0_21
LBB0_17:
	movq	_TW_Infinity@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_19
## %bb.18:
	xorl	%edi, %edi
	callq	_arith_invalid
	jmp	LBB0_20
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_single_arg_error
LBB0_20:
	movl	$1, %ebx
	jmp	LBB0_21
LBB0_4:
	movq	%r14, %rdi
	callq	_significand
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_poly_cos
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_set_precision_flag_down
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_Valid,8,3                  ## @TAG_Valid
	.comm	_FCOS,4,2                       ## @FCOS
	.comm	_CONST_1,4,2                    ## @CONST_1
	.comm	_TAG_Zero,8,3                   ## @TAG_Zero
	.comm	_TAG_Special,8,3                ## @TAG_Special
	.comm	_TW_Denormal,8,3                ## @TW_Denormal
	.comm	_TW_Infinity,8,3                ## @TW_Infinity
	.no_dead_strip	_f_cos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_cos
_f_cos:                                 ; @f_cos
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_getsign
Lloh0:
	adrp	x21, _TAG_Valid@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TAG_Valid@GOTPAGEOFF]
	ldr	x1, [x21]
	cmp	x1, x20
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_exponent
	cmn	w0, #39
	b.lt	LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_exponent
	tbnz	w0, #31, LBB0_19
; %bb.3:
	mov	x0, x19
	bl	_exponent
	cbz	w0, LBB0_18
LBB0_4:
Lloh2:
	adrp	x8, _FCOS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FCOS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_trig_arg
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	bl	_poly_sine
	add	w8, w20, #1
	tbz	w8, #1, LBB0_20
; %bb.6:
	mov	x0, x19
	bl	_changesign
	b	LBB0_20
LBB0_7:
Lloh5:
	adrp	x8, _TAG_Zero@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TAG_Zero@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, _CONST_1@GOTPAGE
Lloh9:
	ldr	x0, [x0, _CONST_1@GOTPAGEOFF]
	bl	_FPU_copy_to_reg0
	mov	w0, #0
	bl	_setcc
	b	LBB0_21
LBB0_9:
Lloh10:
	adrp	x8, _TAG_Special@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TAG_Special@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_FPU_Special
	mov	x20, x0
LBB0_11:
Lloh13:
	adrp	x8, _TW_Denormal@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TW_Denormal@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_14
; %bb.12:
	bl	_denormal_operand
	tbnz	x0, #63, LBB0_17
LBB0_13:
	mov	w0, #0
	bl	_setcc
	ldr	x1, [x21]
Lloh16:
	adrp	x0, _CONST_1@GOTPAGE
Lloh17:
	ldr	x0, [x0, _CONST_1@GOTPAGEOFF]
	bl	_FPU_copy_to_reg0
	bl	_set_precision_flag_up
	b	LBB0_21
LBB0_14:
Lloh18:
	adrp	x8, _TW_Infinity@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TW_Infinity@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	bl	_arith_invalid
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_single_arg_error
LBB0_17:
	mov	w0, #1
	b	LBB0_22
LBB0_18:
	mov	x0, x19
	bl	_significand
	tbnz	w0, #31, LBB0_4
LBB0_19:
	mov	x0, x19
	bl	_poly_cos
LBB0_20:
	bl	_set_precision_flag_down
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_Valid,8,3                  ; @TAG_Valid
	.comm	_FCOS,4,2                       ; @FCOS
	.comm	_CONST_1,4,2                    ; @CONST_1
	.comm	_TAG_Zero,8,3                   ; @TAG_Zero
	.comm	_TAG_Special,8,3                ; @TAG_Special
	.comm	_TW_Denormal,8,3                ; @TW_Denormal
	.comm	_TW_Infinity,8,3                ; @TW_Infinity
	.no_dead_strip	_f_cos
.subsections_via_symbols
