	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timer_spkr_setfreq             ## -- Begin function timer_spkr_setfreq
	.p2align	4, 0x90
_timer_spkr_setfreq:                    ## @timer_spkr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_i8254_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%edi
	movl	%eax, %ebx
	movq	_clock_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock_spin
	movq	_TIMER_CNTR2@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movzbl	%bl, %esi
	callq	_outb
	movl	(%r15), %edi
	sarl	$8, %ebx
	movl	%ebx, %esi
	callq	_outb
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock_spin                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_i8254_freq,4,2                 ## @i8254_freq
	.comm	_clock_lock,4,2                 ## @clock_lock
	.comm	_TIMER_CNTR2,4,2                ## @TIMER_CNTR2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timer_spkr_setfreq             ; -- Begin function timer_spkr_setfreq
	.p2align	2
_timer_spkr_setfreq:                    ; @timer_spkr_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
Lloh0:
	adrp	x8, _i8254_freq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i8254_freq@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w20, w8, w0
Lloh3:
	adrp	x19, _clock_lock@GOTPAGE
Lloh4:
	ldr	x19, [x19, _clock_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock_spin
Lloh5:
	adrp	x21, _TIMER_CNTR2@GOTPAGE
Lloh6:
	ldr	x21, [x21, _TIMER_CNTR2@GOTPAGEOFF]
	ldr	w0, [x21]
	and	w1, w20, #0xff
	bl	_outb
	ldr	w0, [x21]
	asr	w1, w20, #8
	bl	_outb
	mov	x0, x19
	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	_mtx_unlock_spin
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_i8254_freq,4,2                 ; @i8254_freq
	.comm	_clock_lock,4,2                 ; @clock_lock
	.comm	_TIMER_CNTR2,4,2                ; @TIMER_CNTR2
.subsections_via_symbols
