	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_fmmod
_set_fmmod:                             ## @set_fmmod
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movzwl	16(%rsi), %r15d
	movq	8(%rsi), %rax
	movl	4(%rax), %ecx
	addl	(%rax), %ecx
	movswl	%r15w, %eax
	movq	_MOD_SENSE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	sarl	$8, %eax
	movslq	%ecx, %rcx
	imulq	$458129845, %rcx, %rbx          ## imm = 0x1B4E81B5
	movq	%rbx, %rcx
	shrq	$63, %rcx
	shrq	$39, %rbx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	movswl	%bx, %edi
	movl	$-128, %esi
	movl	$127, %edx
	callq	_LIMITVALUE
	shll	$8, %ebx
	movzbl	%r15b, %eax
	orl	%ebx, %eax
	movl	(%r12), %esi
	movzwl	%ax, %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EMU8000_FMMOD_WRITE            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MOD_SENSE,4,2                  ## @MOD_SENSE
	.no_dead_strip	_set_fmmod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_fmmod
_set_fmmod:                             ; @set_fmmod
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x1, #16]
	ldr	x8, [x1, #8]
	ldp	w9, w8, [x8]
	add	w8, w8, w9
Lloh0:
	adrp	x9, _MOD_SENSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MOD_SENSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #33205
	movk	w9, #6990, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #39
	add	w8, w8, w9
	lsl	w9, w21, #16
	add	w22, w8, w9, asr #24
	sxth	w0, w22
	mov	w1, #-128
	mov	w2, #127
	bl	_LIMITVALUE
	bfi	w21, w22, #8, #24
	ldr	w1, [x19]
	and	w2, w21, #0xffff
	mov	x0, x20
	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
	b	_EMU8000_FMMOD_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MOD_SENSE,4,2                  ; @MOD_SENSE
	.no_dead_strip	_set_fmmod
.subsections_via_symbols
