	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ft_trig_downscale
_ft_trig_downscale:                     ## @ft_trig_downscale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	negq	%rax
	cmovsq	%rdi, %rax
	movzwl	%ax, %ecx
	sarl	$16, %eax
	movq	_FT_TRIG_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movzwl	%dx, %esi
	sarl	$16, %edx
	movl	%esi, %r8d
	imull	%ecx, %r8d
	imull	%edx, %ecx
	imull	%eax, %esi
	imull	%eax, %edx
	addl	%ecx, %esi
	shrl	$15, %ecx
	andl	$65536, %ecx                    ## imm = 0x10000
	addl	%edx, %ecx
	movl	%esi, %eax
	sarl	$16, %eax
	addl	%ecx, %eax
	shll	$16, %esi
	addl	%r8d, %esi
	cmpl	$-1073741824, %esi              ## imm = 0xC0000000
	sbbl	$-1, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	negq	%rax
	testq	%rdi, %rdi
	cmovnsq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FT_TRIG_SCALE,4,2              ## @FT_TRIG_SCALE
	.no_dead_strip	_ft_trig_downscale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ft_trig_downscale
_ft_trig_downscale:                     ; @ft_trig_downscale
	.cfi_startproc
; %bb.0:
	cmp	x0, #0
	cneg	x8, x0, mi
	and	w9, w8, #0xffff
	asr	w8, w8, #16
Lloh0:
	adrp	x10, _FT_TRIG_SCALE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FT_TRIG_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w11, w10, #0xffff
	asr	w10, w10, #16
	mul	w12, w11, w9
	mul	w9, w10, w9
	madd	w11, w11, w8, w9
	lsr	w9, w9, #15
	and	w9, w9, #0x10000
	madd	w8, w10, w8, w9
	add	w8, w8, w11, asr #16
	add	w9, w12, w11, lsl #16
	lsr	w9, w9, #30
	cmp	w9, #2
	cinc	w8, w8, hi
	cmp	x0, #0
	sxtw	x8, w8
	cneg	x0, x8, lt
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FT_TRIG_SCALE,4,2              ; @FT_TRIG_SCALE
	.no_dead_strip	_ft_trig_downscale
.subsections_via_symbols
