	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt_setfreq
_rt_setfreq:                            ## @rt_setfreq
	.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, %rbx
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, (%r12)
	shrq	$3, %rbx
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	movq	%rbx, %rax
	mulq	%rcx
	movq	%rdx, %r15
	shrq	$2, %r15
	movl	12(%r12), %esi
	movl	$200, %edi
	callq	_outb_p
	movl	12(%r12), %esi
	movl	$201, %edi
	callq	_outb_p
	movl	12(%r12), %esi
	movl	$201, %edi
	callq	_outb_p
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	movq	%r12, %rdi
	callq	_zero
	addq	$856, %r15                      ## imm = 0x358
	movl	$14, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_zero
	addl	$-1, %ebx
	jae	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltq
	movq	%r12, %rdi
	testq	%rax, %r15
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	callq	_one
	addl	$-1, %ebx
	jb	LBB0_1
LBB0_5:
	movl	12(%r12), %esi
	movl	$200, %edi
	callq	_outb_p
	cmpl	$0, 16(%r12)
	jne	LBB0_7
## %bb.6:
	movl	12(%r12), %esi
	xorl	%edi, %edi
	callq	_outb_p
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rt_setfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt_setfreq
_rt_setfreq:                            ; @rt_setfreq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	str	x21, [x20]
	lsr	x8, x21, #3
	mov	x9, #62915
	movk	x9, #23592, lsl #16
	movk	x9, #49807, lsl #32
	movk	x9, #10485, lsl #48
	umulh	x8, x8, x9
	lsr	x21, x8, #2
	ldr	w1, [x20, #12]
	mov	w0, #200
	bl	_outb_p
	ldr	w1, [x20, #12]
	mov	w0, #201
	bl	_outb_p
	ldr	w1, [x20, #12]
	mov	w0, #201
	bl	_outb_p
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	mov	x0, x20
	bl	_zero
	add	x21, x21, #856
	mov	w22, #14
	mov	w23, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_zero
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w22, #1
	cmn	w22, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w23, w22
	sxtw	x8, w8
	mov	x0, x20
	tst	x21, x8
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_one
	b	LBB0_2
LBB0_5:
	ldr	w1, [x20, #12]
	mov	w0, #200
	bl	_outb_p
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w1, [x20, #12]
	mov	w0, #0
	bl	_outb_p
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rt_setfreq
.subsections_via_symbols
