	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compat_effect
_compat_effect:                         ## @compat_effect
	.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
	xorl	%r14d, %r14d
	cmpl	$128, (%rsi)
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	_FF_PERIODIC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	(%rdi), %esi
	movl	%eax, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movslq	40(%rbx), %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	movslq	44(%rbx), %rcx
	imulq	$715827883, %rcx, %rdi          ## imm = 0x2AAAAAAB
	movq	%rdi, %rcx
	shrq	$63, %rcx
	shrq	$32, %rdi
	addl	%ecx, %edi
	addl	%eax, %edi
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	_FF_SINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$50, 4(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$32767, %esi                    ## imm = 0x7FFF
	callq	_max
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_PERIODIC,4,2                ## @FF_PERIODIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FF_SINE,4,2                    ## @FF_SINE
	.no_dead_strip	_compat_effect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compat_effect
_compat_effect:                         ; @compat_effect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [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 w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x20, _FF_PERIODIC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FF_PERIODIC@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.2:
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	ldpsw	x9, x10, [x19, #40]
	mul	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	mul	x9, x10, x9
	lsr	x10, x9, #63
	ldr	w11, [x20]
	mov	w12, #50
	str	w11, [x19]
Lloh2:
	adrp	x11, _FF_SINE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _FF_SINE@GOTPAGEOFF]
	lsr	x9, x9, #32
Lloh4:
	ldr	w11, [x11]
	add	w9, w9, w10
	add	w0, w9, w8
	str	w11, [x19, #36]
	str	w12, [x19, #4]
	mov	w1, #32767
	bl	_max
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_PERIODIC,4,2                ; @FF_PERIODIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FF_SINE,4,2                    ; @FF_SINE
	.no_dead_strip	_compat_effect
.subsections_via_symbols
