	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pit_load_count
_pit_load_count:                        ## @pit_load_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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r12
	leaq	16(%r12), %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_pr_debug
	testl	%ebx, %ebx
	movl	$65536, %esi                    ## imm = 0x10000
	cmovnel	%ebx, %esi
	movq	8(%r12), %rax
	movslq	%r15d, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	%esi, (%rax,%rbx,4)
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_ktime_get
	movq	8(%r12), %rcx
	movl	%eax, 8(%rcx,%rbx,4)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	4(%rax), %eax
	cmpl	$4, %eax
	ja	LBB0_10
## %bb.4:
	movl	$19, %ecx
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.5:
	movq	_KVM_PIT_FLAGS_HPET_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_8:
	movq	_KVM_PIT_FLAGS_HPET_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.9:
	movq	%r14, %rdi
	movl	$1, %edx
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_create_pit_timer               ## TAILCALL
LBB0_10:
	movq	(%r14), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroy_pit_timer              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pit: load_count val is %d, channel is %d\n"

	.comm	_KVM_PIT_FLAGS_HPET_LEGACY,4,2  ## @KVM_PIT_FLAGS_HPET_LEGACY
	.no_dead_strip	_pit_load_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pit_load_count
_pit_load_count:                        ; @pit_load_count
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	add	x0, x22, #16
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_pr_debug
	mov	w8, #65536
	cmp	w21, #0
	csel	w1, w8, w21, eq
	ldr	x8, [x22, #8]
	mov	w9, #12
	smull	x9, w20, w9
	str	w1, [x8, x9]
	cbz	w20, LBB0_3
; %bb.1:
	sxtw	x19, w20
	bl	_ktime_get
	ldr	x8, [x22, #8]
	mov	w9, #12
	madd	x8, x19, x9, x8
	str	w0, [x8, #8]
LBB0_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
	ret
LBB0_3:
	ldr	w8, [x8, #4]
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #19
	tst	w8, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _KVM_PIT_FLAGS_HPET_LEGACY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KVM_PIT_FLAGS_HPET_LEGACY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.6:
	mov	x0, x19
	mov	w2, #0
	b	LBB0_9
LBB0_7:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _KVM_PIT_FLAGS_HPET_LEGACY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KVM_PIT_FLAGS_HPET_LEGACY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.8:
	mov	x0, x19
	mov	w2, #1
LBB0_9:
	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	_create_pit_timer
LBB0_10:
	ldr	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	_destroy_pit_timer
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pit: load_count val is %d, channel is %d\n"

	.comm	_KVM_PIT_FLAGS_HPET_LEGACY,4,2  ; @KVM_PIT_FLAGS_HPET_LEGACY
	.no_dead_strip	_pit_load_count
.subsections_via_symbols
