	.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	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, (%r12)
	addq	$171200, %rbx                   ## imm = 0x29CC0
	shrq	$5, %rbx
	movabsq	$737869762948382065, %rcx       ## imm = 0xA3D70A3D70A3D71
	movq	%rbx, %rax
	mulq	%rcx
	movq	%rdx, %r15
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	testb	$1, %r15b
	jne	LBB0_1
## %bb.2:
	callq	_send_0_byte
	jmp	LBB0_3
LBB0_1:
	callq	_send_1_byte
LBB0_3:
	movq	%r12, %rdi
	testb	$2, %r15b
	jne	LBB0_4
## %bb.5:
	callq	_send_0_byte
	jmp	LBB0_6
LBB0_4:
	callq	_send_1_byte
LBB0_6:
	movq	%r12, %rdi
	testb	$4, %r15b
	jne	LBB0_7
## %bb.8:
	callq	_send_0_byte
	jmp	LBB0_9
LBB0_7:
	callq	_send_1_byte
LBB0_9:
	movq	%r12, %rdi
	testb	$8, %r15b
	jne	LBB0_10
## %bb.11:
	callq	_send_0_byte
	jmp	LBB0_12
LBB0_10:
	callq	_send_1_byte
LBB0_12:
	movq	%r12, %rdi
	testb	$16, %r15b
	jne	LBB0_13
## %bb.14:
	callq	_send_0_byte
	jmp	LBB0_15
LBB0_13:
	callq	_send_1_byte
LBB0_15:
	movq	%r12, %rdi
	testb	$32, %r15b
	jne	LBB0_16
## %bb.17:
	callq	_send_0_byte
	jmp	LBB0_18
LBB0_16:
	callq	_send_1_byte
LBB0_18:
	movq	%r12, %rdi
	testb	$64, %r15b
	jne	LBB0_19
## %bb.20:
	callq	_send_0_byte
	jmp	LBB0_21
LBB0_19:
	callq	_send_1_byte
LBB0_21:
	movq	%r12, %rdi
	testb	$-128, %r15b
	jne	LBB0_22
## %bb.23:
	callq	_send_0_byte
	jmp	LBB0_24
LBB0_22:
	callq	_send_1_byte
LBB0_24:
	movq	%r12, %rdi
	testl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_25
## %bb.26:
	callq	_send_0_byte
	jmp	LBB0_27
LBB0_25:
	callq	_send_1_byte
LBB0_27:
	movq	%r12, %rdi
	testl	$512, %r15d                     ## imm = 0x200
	jne	LBB0_28
## %bb.29:
	callq	_send_0_byte
	jmp	LBB0_30
LBB0_28:
	callq	_send_1_byte
LBB0_30:
	movq	%r12, %rdi
	testl	$1024, %r15d                    ## imm = 0x400
	jne	LBB0_31
## %bb.32:
	callq	_send_0_byte
	jmp	LBB0_33
LBB0_31:
	callq	_send_1_byte
LBB0_33:
	movq	%r12, %rdi
	testl	$2048, %r15d                    ## imm = 0x800
	jne	LBB0_34
## %bb.35:
	callq	_send_0_byte
	jmp	LBB0_36
LBB0_34:
	callq	_send_1_byte
LBB0_36:
	movq	%r12, %rdi
	testl	$4096, %r15d                    ## imm = 0x1000
	jne	LBB0_37
## %bb.38:
	callq	_send_0_byte
	jmp	LBB0_39
LBB0_37:
	callq	_send_1_byte
LBB0_39:
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_1_byte
	movq	%r12, %rdi
	callq	_send_0_byte
	movq	%r12, %rdi
	callq	_send_1_byte
	cmpq	$0, 8(%r12)
	je	LBB0_40
## %bb.41:
	xorl	%eax, %eax
	cmpq	$0, 24(%r12)
	sete	%al
	leal	208(,%rax,8), %edi
	jmp	LBB0_42
LBB0_40:
	movl	$208, %edi
LBB0_42:
	movl	20(%r12), %esi
	callq	_outb
	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	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	x21, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
	str	x21, [x20]
	add	x8, x21, #41, lsl #12           ; =167936
	add	x8, x8, #3264
	lsr	x8, x8, #5
	mov	x9, #15729
	movk	x9, #55050, lsl #16
	movk	x9, #28835, lsl #32
	movk	x9, #2621, lsl #48
	umulh	x21, x8, x9
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #0, LBB0_14
; %bb.1:
	bl	_send_0_byte
	mov	x0, x20
	tbz	w21, #1, LBB0_15
LBB0_2:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #2, LBB0_16
LBB0_3:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #3, LBB0_17
LBB0_4:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #4, LBB0_18
LBB0_5:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #5, LBB0_19
LBB0_6:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #6, LBB0_20
LBB0_7:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #7, LBB0_21
LBB0_8:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #8, LBB0_22
LBB0_9:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #9, LBB0_23
LBB0_10:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #10, LBB0_24
LBB0_11:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #11, LBB0_25
LBB0_12:
	bl	_send_1_byte
	mov	x0, x20
	tbz	w21, #12, LBB0_26
LBB0_13:
	bl	_send_1_byte
	b	LBB0_27
LBB0_14:
	bl	_send_1_byte
	mov	x0, x20
	tbnz	w21, #1, LBB0_2
LBB0_15:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #2, LBB0_3
LBB0_16:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #3, LBB0_4
LBB0_17:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #4, LBB0_5
LBB0_18:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #5, LBB0_6
LBB0_19:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #6, LBB0_7
LBB0_20:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #7, LBB0_8
LBB0_21:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #8, LBB0_9
LBB0_22:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #9, LBB0_10
LBB0_23:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #10, LBB0_11
LBB0_24:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #11, LBB0_12
LBB0_25:
	bl	_send_0_byte
	mov	x0, x20
	tbnz	w21, #12, LBB0_13
LBB0_26:
	bl	_send_0_byte
LBB0_27:
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_1_byte
	mov	x0, x20
	bl	_send_0_byte
	mov	x0, x20
	bl	_send_1_byte
	ldr	x8, [x20, #8]
	mov	w0, #208
	cbz	x8, LBB0_29
; %bb.28:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	mov	w8, #216
	csel	w0, w8, w0, eq
LBB0_29:
	ldr	w1, [x20, #20]
	bl	_outb
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rt_setfreq
.subsections_via_symbols
