	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_s_frequency
_typhoon_s_frequency:                   ## @typhoon_s_frequency
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movslq	%esi, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movslq	%eax, %rsi
	movq	%rsi, %rdi
	imulq	%rsi, %rdi
	leaq	2500(%rdi), %rax
	movabsq	$3777893186295716171, %rcx      ## imm = 0x346DC5D63886594B
	mulq	%rcx
	shrq	$10, %rdx
	imulq	%rsi, %rdx
	leaq	5000(%rdx), %rax
	mulq	%rcx
	movq	%rdx, %rcx
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	addq	$10433, %rax                    ## imm = 0x28C1
	movabsq	$-3962345774866587287, %rdx     ## imm = 0xC902EB82DBCEA169
	mulq	%rdx
	shrq	$11, %rcx
	shrq	$14, %rdx
	subq	%rdx, %rcx
	leaq	(%rcx,%rsi,4), %rbx
	addq	$-11505, %rbx                   ## imm = 0xD30F
	movl	%ebx, %edi
	shrl	$8, %edi
	andl	$1, %edi
	movq	(%r14), %rsi
	addq	$4, %rsi
	callq	_outb_p
	movq	%rbx, %rdi
	shrq	$9, %rdi
	movq	(%r14), %rsi
	addq	$6, %rsi
	callq	_outb_p
	movzbl	%bl, %edi
	movq	(%r14), %rsi
	addq	$8, %rsi
	callq	_outb_p
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_typhoon_s_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_s_frequency
_typhoon_s_frequency:                   ; @typhoon_s_frequency
	.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
	mov	x19, x0
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x9, w8
	smull	x10, w8, w8
	add	x11, x10, #2500
	mov	x12, #22859
	movk	x12, #14470, lsl #16
	movk	x12, #50646, lsl #32
	movk	x12, #13421, lsl #48
	umulh	x11, x11, x12
	lsr	x11, x11, #10
	mov	w13, #5000
	madd	x9, x11, x9, x13
	umulh	x9, x9, x12
	lsr	x9, x9, #11
	mov	w11, #10
	mov	w12, #10433
	madd	x10, x10, x11, x12
	mov	x11, #41321
	movk	x11, #56270, lsl #16
	movk	x11, #60290, lsl #32
	movk	x11, #51458, lsl #48
	umulh	x10, x10, x11
	sub	x9, x9, x10, lsr #14
	add	x8, x9, w8, sxtw #2
	mov	x9, #-11505
	add	x20, x8, x9
	ubfx	x0, x20, #8, #1
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_outb_p
	lsr	x0, x20, #9
	ldr	x8, [x19]
	add	x1, x8, #6
	bl	_outb_p
	and	x0, x20, #0xff
	ldr	x8, [x19]
	add	x1, x8, #8
	bl	_outb_p
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_typhoon_s_frequency
.subsections_via_symbols
