	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max_ticks_available
_max_ticks_available:                   ## @max_ticks_available
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpl	$1, (%rdi)
	jne	LBB0_10
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_10:
	testq	%r14, %r14
	je	LBB0_14
## %bb.11:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_NUM_OF_HPTSI_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	decq	%rax
	movq	%rax, (%r14)
LBB0_14:
	movq	24(%rbx), %rdi
	movl	$1, %ecx
	cmpq	%r15, %rdi
	je	LBB0_16
## %bb.15:
	movq	%r15, %rsi
	callq	_hpts_ticks_diff
	movq	%rax, %rcx
LBB0_16:
	movq	_NUM_OF_HPTSI_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rcx, %rax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testq	%r14, %r14
	je	LBB0_6
## %bb.3:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_NUM_OF_HPTSI_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	decq	%rax
	movq	%rax, (%r14)
LBB0_6:
	movq	16(%rbx), %rdi
	movq	32(%rbx), %rsi
	movl	$1, %r12d
	cmpq	%rsi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_hpts_ticks_diff
	movq	%rax, %r12
	movq	32(%rbx), %rdi
LBB0_8:
	cmpq	%r15, %rdi
	jne	LBB0_17
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_17:
	movq	%r15, %rsi
	callq	_hpts_ticks_diff
	movq	%rax, %rcx
LBB0_18:
	movq	_NUM_OF_HPTSI_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r12, %rax
	subq	%rcx, %rax
	jg	LBB0_20
## %bb.19:
	movq	_combined_wheel_wrap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	40(%rbx), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_OF_HPTSI_SLOTS,8,3         ## @NUM_OF_HPTSI_SLOTS
	.comm	_combined_wheel_wrap,4,2        ## @combined_wheel_wrap
	.no_dead_strip	_max_ticks_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max_ticks_available
_max_ticks_available:                   ; @max_ticks_available
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
LBB0_2:
Lloh0:
	adrp	x22, _NUM_OF_HPTSI_SLOTS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_OF_HPTSI_SLOTS@GOTPAGEOFF]
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x8, [x20, #24]
	ldr	x9, [x22]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_4:
	ldr	x0, [x20, #24]
	cmp	x0, x21
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	x1, x21
	bl	_hpts_ticks_diff
LBB0_7:
	ldr	x8, [x22]
	sub	x0, x8, x0
LBB0_8:
	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_9:
	cbz	x19, LBB0_11
; %bb.10:
Lloh2:
	adrp	x8, _NUM_OF_HPTSI_SLOTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_OF_HPTSI_SLOTS@GOTPAGEOFF]
	ldr	x9, [x20, #16]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_11:
	ldr	x0, [x20, #16]
	ldr	x1, [x20, #32]
	cmp	x0, x1
	b.ne	LBB0_14
; %bb.12:
	mov	w22, #1
	cmp	x0, x21
	b.eq	LBB0_15
LBB0_13:
	mov	x1, x21
	bl	_hpts_ticks_diff
	b	LBB0_16
LBB0_14:
	bl	_hpts_ticks_diff
	mov	x22, x0
	ldr	x0, [x20, #32]
	cmp	x0, x21
	b.ne	LBB0_13
LBB0_15:
	mov	x0, #0
LBB0_16:
Lloh5:
	adrp	x8, _NUM_OF_HPTSI_SLOTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_OF_HPTSI_SLOTS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sub	x8, x8, x22
	subs	x0, x8, x0
	b.gt	LBB0_8
; %bb.17:
Lloh8:
	adrp	x8, _combined_wheel_wrap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _combined_wheel_wrap@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	mov	x0, #0
	ldr	x8, [x20, #40]
	str	x8, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_OF_HPTSI_SLOTS,8,3         ; @NUM_OF_HPTSI_SLOTS
	.comm	_combined_wheel_wrap,4,2        ; @combined_wheel_wrap
	.no_dead_strip	_max_ticks_available
.subsections_via_symbols
