	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apic_get_tmcct
_apic_get_tmcct:                        ## @apic_get_tmcct
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_ASSERT
	movq	_APIC_TMICT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_apic_get_reg
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$0, 4(%rbx)
	je	LBB0_5
## %bb.2:
	leaq	8(%rbx), %rdi
	callq	_hrtimer_get_remaining
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ktime_to_ns
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ktime_set
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %edi
	callq	_ktime_to_ns
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_mod_64
	movq	_APIC_BUS_CYCLE_NS@GOTPCREL(%rip), %rcx
	movl	(%rbx), %esi
	imull	(%rcx), %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_div64_u64                      ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_TMICT,4,2                 ## @APIC_TMICT
	.comm	_APIC_BUS_CYCLE_NS,4,2          ## @APIC_BUS_CYCLE_NS
	.no_dead_strip	_apic_get_tmcct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apic_get_tmcct
_apic_get_tmcct:                        ; @apic_get_tmcct
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ASSERT
Lloh0:
	adrp	x8, _APIC_TMICT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_TMICT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_apic_get_reg
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.2:
	add	x0, x19, #8
	bl	_hrtimer_get_remaining
	mov	x20, x0
	bl	_ktime_to_ns
	tbz	x0, #63, LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w1, #0
	bl	_ktime_set
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	bl	_ktime_to_ns
	ldr	w1, [x19, #4]
	bl	_mod_64
Lloh3:
	adrp	x8, _APIC_BUS_CYCLE_NS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APIC_BUS_CYCLE_NS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	mul	w1, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_div64_u64
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_TMICT,4,2                 ; @APIC_TMICT
	.comm	_APIC_BUS_CYCLE_NS,4,2          ; @APIC_BUS_CYCLE_NS
	.no_dead_strip	_apic_get_tmcct
.subsections_via_symbols
