	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int_cos
_int_cos:                               ## @int_cos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FRAC_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-1(%rcx), %edx
	andl	%edi, %edx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%ecx, %edi
	subl	%edx, %edi
	cmpl	%eax, %edx
	cmovll	%edx, %edi
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	subl	%edi, %eax
	xorl	%r9d, %r9d
	cmpl	%edx, %edi
	setg	%r9b
	cmovlel	%edi, %eax
	movl	%r9d, %r8d
	negl	%r8d
	movq	_cos_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	_CSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %dl
	movl	%eax, %esi
	movl	%edx, %ecx
	sarl	%cl, %esi
	movslq	%esi, %rsi
	movl	$-1, %edi
	shll	%cl, %edi
	notl	%edi
	andl	%eax, %edi
	movzwl	(%r10,%rsi,2), %r11d
	movzwl	2(%r10,%rsi,2), %esi
	subl	%r11d, %esi
	imull	%edi, %esi
	leal	-1(%rdx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	%esi, %eax
	movl	%edx, %ecx
	sarl	%cl, %eax
	addl	%r11d, %eax
	xorl	%r8d, %eax
	addl	%r9d, %eax
	movq	_FRAC_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	$-15, %cl
	shll	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAC_ONE,4,2                   ## @FRAC_ONE
	.comm	_cos_table,8,3                  ## @cos_table
	.comm	_CSHIFT,4,2                     ## @CSHIFT
	.comm	_FRAC_BITS,4,2                  ## @FRAC_BITS
	.no_dead_strip	_int_cos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int_cos
_int_cos:                               ; @int_cos
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FRAC_ONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRAC_ONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	and	w9, w9, w0
	sub	w10, w8, w9
	add	w11, w8, #3
	cmp	w8, #0
	csel	w11, w11, w8, lt
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w9, w8
	csel	w9, w9, w10, lt
	sub	w8, w8, w9
	cmp	w9, w11, asr #2
	csel	w8, w8, w9, gt
Lloh3:
	adrp	x10, _cos_table@GOTPAGE
Lloh4:
	ldr	x10, [x10, _cos_table@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x12, _CSHIFT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CSHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	asr	w13, w8, w12
	add	x10, x10, w13, sxtw #1
	ldrh	w13, [x10]
	ldrh	w10, [x10, #2]
	sub	w10, w10, w13
	sub	w14, w12, #1
	cmp	w9, w11, asr #2
	csetm	w9, gt
	mov	w11, #-1
	lsl	w11, w11, w12
	bic	w8, w8, w11
	mov	w11, #1
	lsl	w11, w11, w14
	madd	w8, w8, w10, w11
	asr	w8, w8, w12
	add	w8, w8, w13
	cinv	w8, w8, gt
	sub	w8, w8, w9
Lloh9:
	adrp	x9, _FRAC_BITS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FRAC_BITS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w9, w9, #15
	lsl	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAC_ONE,4,2                   ; @FRAC_ONE
	.comm	_cos_table,8,3                  ; @cos_table
	.comm	_CSHIFT,4,2                     ; @CSHIFT
	.comm	_FRAC_BITS,4,2                  ; @FRAC_BITS
	.no_dead_strip	_int_cos
.subsections_via_symbols
