	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lapic_timer_set_divisor
_lapic_timer_set_divisor:               ## @lapic_timer_set_divisor
	.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
	movl	%edi, %ebx
	callq	_powerof2
	movslq	%ebx, %r15
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_KASSERT
	bsfl	%r15d, %r14d
	movl	$-1, %ebx
	cmovnel	%r14d, %ebx
	incl	%ebx
	movq	_lapic_timer_divisors@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_nitems
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	movq	_LAPIC_DCR_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	cmpl	$1, %r15d
	sbbl	%eax, %eax
	movq	(%r12), %rcx
	orl	%r14d, %eax
	cltq
	movl	(%rcx,%rax,4), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lapic_write32                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lapic_timer_divisors,8,3       ## @lapic_timer_divisors
	.comm	_LAPIC_DCR_TIMER,4,2            ## @LAPIC_DCR_TIMER
	.no_dead_strip	_lapic_timer_set_divisor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lapic_timer_set_divisor
_lapic_timer_set_divisor:               ; @lapic_timer_set_divisor
	.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, x0
	bl	_powerof2
	sxtw	x20, w19
	mov	x1, x20
	bl	_KASSERT
	rbit	w8, w19
	clz	w21, w8
Lloh0:
	adrp	x22, _lapic_timer_divisors@GOTPAGE
Lloh1:
	ldr	x22, [x22, _lapic_timer_divisors@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_nitems
	cmp	w19, #0
	csinc	w8, wzr, w21, eq
	csinv	w19, w21, wzr, ne
	cmp	w8, w0
	cset	w0, le
	mov	x1, x20
	bl	_KASSERT
Lloh2:
	adrp	x8, _LAPIC_DCR_TIMER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LAPIC_DCR_TIMER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	w1, [x8, w19, sxtw #2]
	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	_lapic_write32
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_lapic_timer_divisors,8,3       ; @lapic_timer_divisors
	.comm	_LAPIC_DCR_TIMER,4,2            ; @LAPIC_DCR_TIMER
	.no_dead_strip	_lapic_timer_set_divisor
.subsections_via_symbols
