	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pit_get_count
_pit_get_count:                         ## @pit_get_count
	.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	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rdi), %r12
	movslq	%esi, %r14
	leaq	(%r12,%r14,8), %r15
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_kpit_elapsed
	movq	_KVM_PIT_FREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_muldiv64
	movl	(%r12,%r14,8), %ecx
	cmpl	$5, %ecx
	ja	LBB0_4
## %bb.1:
	movl	$51, %edx
	btl	%ecx, %edx
	jae	LBB0_2
## %bb.7:
	movl	4(%r12,%r14,8), %ecx
	subl	%eax, %ecx
	movzwl	%cx, %ebx
	jmp	LBB0_6
LBB0_2:
	cmpl	$3, %ecx
	jne	LBB0_4
## %bb.3:
	movl	4(%r12,%r14,8), %ebx
	addl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	4(%r12,%r14,8), %ebx
LBB0_5:
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_mod_64
	subl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_PIT_FREQ,4,2               ## @KVM_PIT_FREQ
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.no_dead_strip	_pit_get_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pit_get_count
_pit_get_count:                         ; @pit_get_count
	.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	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x22, [x0, #8]
	sxtw	x23, w19
	add	x21, x22, w1, sxtw #3
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_kpit_elapsed
Lloh0:
	adrp	x8, _KVM_PIT_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVM_PIT_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_muldiv64
	ldr	w8, [x21]
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.1:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #51
	tst	w9, w10
	b.eq	LBB0_3
; %bb.2:
	add	x8, x22, x23, lsl #3
	ldr	w8, [x8, #4]
	sub	w8, w8, w0
	and	w0, w8, #0xffff
	b	LBB0_7
LBB0_3:
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.4:
	add	x8, x22, x23, lsl #3
	ldr	w19, [x8, #4]
	lsl	w0, w0, #1
	b	LBB0_6
LBB0_5:
	add	x8, x22, x23, lsl #3
	ldr	w19, [x8, #4]
LBB0_6:
	mov	x1, x19
	bl	_mod_64
	sub	w0, w19, w0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_PIT_FREQ,4,2               ; @KVM_PIT_FREQ
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.no_dead_strip	_pit_get_count
.subsections_via_symbols
