	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AdjustClockRate                ## -- Begin function AdjustClockRate
	.p2align	4, 0x90
_AdjustClockRate:                       ## @AdjustClockRate
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_MILLION@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rdi), %r13
	imulq	%rax, %r13
	movq	_verbose@GOTPCREL(%rip), %r15
	addq	8(%rdi), %r13
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	cvtsi2sd	%r13, %xmm0
	cvtsi2sd	%rax, %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movq	_sysdebug@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13, %xmm0
	movl	(%rax), %edi
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r14), %xmm1
	divsd	%xmm1, %xmm0
	leaq	L_.str.1(%rip), %rsi
	movb	$1, %al
	callq	_msyslog
LBB0_4:
	cmpl	$3, (%r15)
	jl	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	cmpl	$3, (%rbx)
	jl	LBB0_8
## %bb.7:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_msyslog
LBB0_8:
	movq	_slew_rate@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, %r15
	negq	%r15
	testq	%r13, %r13
	cmovgq	%rsi, %r15
	movq	%r13, %rax
	negq	%rax
	cmovsq	%r13, %rax
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_9
## %bb.10:
	cqto
	idivq	%rsi
	movq	%rdx, %rcx
	movq	%rax, %r12
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ecx
	movl	%eax, %r12d
LBB0_11:
	movq	%r12, -80(%rbp)
	movq	(%r14), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.13:
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_14
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_14:
	imulq	%rcx, %rbx
	movq	%rbx, -72(%rbp)
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_16
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_16:
	movq	_sysdebug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_18
## %bb.17:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_msyslog
LBB0_18:
	testq	%r13, %r13
	movq	_MILLION@GOTPCREL(%rip), %rbx
	je	LBB0_24
## %bb.19:
	movq	_tick_rate@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_20
## %bb.21:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_22
LBB0_20:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_22:
	movq	_default_rate@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_SetClockRate
	cmpl	$-1, %eax
	je	LBB0_23
LBB0_24:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, -64(%rbp)
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	callq	_setitimer
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.26:
	movq	(%rbx), %rsi
	movq	-112(%rbp), %rcx
	imulq	%rsi, %rcx
	addq	-104(%rbp), %rcx
	movq	_oldrate@GOTPCREL(%rip), %rax
	imulq	(%rax), %rcx
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_27
## %bb.28:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_29
LBB0_25:
	movq	(%rbx), %rdx
	jmp	LBB0_30
LBB0_27:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_29:
	movq	%rax, (%rdi)
	movq	(%rbx), %rdx
	imulq	%rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, 8(%rdi)
LBB0_30:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rdx, %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	movq	_oldrate@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	_AdjustClockRate.cold.1
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function AdjustClockRate.cold.1
_AdjustClockRate.cold.1:                ## @AdjustClockRate.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_msyslog
	leaq	L_.str.7(%rip), %rdi
	popq	%rbp
	jmp	_perror                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MILLION,8,3                    ## @MILLION
	.comm	_verbose,4,2                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adjtimed: new correction %.6fs\n"

	.comm	_sysdebug,4,2                   ## @sysdebug
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"new correction %.6fs"

L_.str.2:                               ## @.str.2
	.asciz	"adjtimed: leftover %ldus\n"

L_.str.3:                               ## @.str.3
	.asciz	"leftover %ldus"

	.comm	_slew_rate,8,3                  ## @slew_rate
L_.str.4:                               ## @.str.4
	.asciz	"adjtimed: will be complete in %lds %ldus\n"

L_.str.5:                               ## @.str.5
	.asciz	"will be complete in %lds %ldus"

	.comm	_tick_rate,8,3                  ## @tick_rate
	.comm	_default_rate,8,3               ## @default_rate
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.6:                               ## @.str.6
	.asciz	"set clock rate: %m"

L_.str.7:                               ## @.str.7
	.asciz	"adjtimed: set clock rate"

	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
	.comm	_oldrate,8,3                    ## @oldrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AdjustClockRate                ; -- Begin function AdjustClockRate
	.p2align	2
_AdjustClockRate:                       ; @AdjustClockRate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x21, _MILLION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MILLION@GOTPAGEOFF]
	ldr	x8, [x21]
	ldp	x9, x10, [x0]
	madd	x22, x8, x9, x10
Lloh2:
	adrp	x25, _verbose@GOTPAGE
Lloh3:
	ldr	x25, [x25, _verbose@GOTPAGEOFF]
	ldr	w9, [x25]
	cbz	w9, LBB0_2
; %bb.1:
	scvtf	d0, x22
	scvtf	d1, x8
	fdiv	d0, d0, d1
	fcvtzs	x1, d0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
Lloh6:
	adrp	x26, _sysdebug@GOTPAGE
Lloh7:
	ldr	x26, [x26, _sysdebug@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh8:
	adrp	x24, _LOG_INFO@GOTPAGE
Lloh9:
	ldr	x24, [x24, _LOG_INFO@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x24]
	scvtf	d0, x22
	ldr	d1, [x21]
	scvtf	d1, d1
	fdiv	d0, d0, d1
	str	d0, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msyslog
LBB0_4:
	ldr	w8, [x25]
	cmp	w8, #3
	b.lt	LBB0_6
; %bb.5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_6:
	ldr	w8, [x26]
	cmp	w8, #2
	b.le	LBB0_8
; %bb.7:
	ldr	w0, [x24]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_msyslog
LBB0_8:
Lloh16:
	adrp	x8, _slew_rate@GOTPAGE
Lloh17:
	ldr	x8, [x8, _slew_rate@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x22, #0
	cneg	x23, x8, le
	cneg	x9, x22, mi
	sdiv	x20, x9, x8
	msub	x9, x20, x8, x9
	ldr	x10, [x21]
	sdiv	x8, x10, x8
	mul	x27, x8, x9
	stp	x20, x27, [sp, #48]
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
	str	x27, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_printf
LBB0_10:
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.11:
	ldr	w0, [x24]
	stp	x20, x27, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_msyslog
LBB0_12:
	cbz	x22, LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _tick_rate@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tick_rate@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	sdiv	x8, x23, x8
Lloh26:
	adrp	x9, _default_rate@GOTPAGE
Lloh27:
	ldr	x9, [x9, _default_rate@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_SetClockRate
	cmn	w0, #1
	b.eq	LBB0_18
LBB0_14:
	stp	xzr, xzr, [sp, #64]
Lloh29:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	add	x1, sp, #48
	add	x2, sp, #16
	bl	_setitimer
Lloh32:
	adrp	x8, _oldrate@GOTPAGE
Lloh33:
	ldr	x8, [x8, _oldrate@GOTPAGEOFF]
	cbz	x19, LBB0_16
; %bb.15:
	ldr	x9, [x21]
	ldp	x10, x11, [sp, #16]
	madd	x10, x9, x10, x11
	ldr	x11, [x8]
	mul	x10, x10, x11
	sdiv	x11, x10, x9
	str	x11, [x19]
	ldr	x9, [x21]
	msub	x10, x9, x11, x10
	str	x10, [x19, #8]
	b	LBB0_17
LBB0_16:
	ldr	x9, [x21]
LBB0_17:
	scvtf	d0, x23
	scvtf	d1, x9
	fdiv	d0, d0, d1
	fcvtzs	x9, d0
	str	x9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	bl	_AdjustClockRate.cold.1
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function AdjustClockRate.cold.1
_AdjustClockRate.cold.1:                ; @AdjustClockRate.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh34:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_msyslog
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_perror
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MILLION,8,3                    ; @MILLION
	.comm	_verbose,4,2                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adjtimed: new correction %.6fs\n"

	.comm	_sysdebug,4,2                   ; @sysdebug
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"new correction %.6fs"

l_.str.2:                               ; @.str.2
	.asciz	"adjtimed: leftover %ldus\n"

l_.str.3:                               ; @.str.3
	.asciz	"leftover %ldus"

	.comm	_slew_rate,8,3                  ; @slew_rate
l_.str.4:                               ; @.str.4
	.asciz	"adjtimed: will be complete in %lds %ldus\n"

l_.str.5:                               ; @.str.5
	.asciz	"will be complete in %lds %ldus"

	.comm	_tick_rate,8,3                  ; @tick_rate
	.comm	_default_rate,8,3               ; @default_rate
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.6:                               ; @.str.6
	.asciz	"set clock rate: %m"

l_.str.7:                               ; @.str.7
	.asciz	"adjtimed: set clock rate"

	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
	.comm	_oldrate,8,3                    ; @oldrate
.subsections_via_symbols
