	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_clock
_check_clock:                           ## @check_clock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %ebx
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_ixp4xx_timer_freq@GOTPCREL(%rip), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	incl	%ecx
	movl	(%rax), %r13d
	imull	%ecx, %r13d
	imull	%esi, %ecx
	leal	(%rbx,%rcx), %esi
	incl	%esi
	movl	%r13d, %edi
	callq	_do_div
	movl	%r13d, %ecx
	subl	%r14d, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	cmpl	(%r12), %eax
	jge	LBB0_2
## %bb.1:
	movq	16(%rbp), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, (%rdx)
	movl	%eax, (%r12)
	shll	$22, %r15d
	shll	$12, %ebx
	orl	%r15d, %ebx
	orl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, (%rcx)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ixp4xx_timer_freq,4,2          ## @ixp4xx_timer_freq
	.no_dead_strip	_check_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_clock
_check_clock:                           ; @check_clock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x21, x5
	mov	x24, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _ixp4xx_timer_freq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ixp4xx_timer_freq@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w3, #1
	mul	w25, w8, w9
	madd	w8, w9, w1, w2
	add	w1, w8, #1
	mov	x0, x25
	bl	_do_div
	subs	w8, w25, w26
	cneg	w0, w8, mi
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
	str	w25, [x24]
	str	w0, [x21]
	lsl	w8, w23, #12
	orr	w8, w8, w22, lsl #22
	orr	w8, w8, w20
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ixp4xx_timer_freq,4,2          ; @ixp4xx_timer_freq
	.no_dead_strip	_check_clock
.subsections_via_symbols
