	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetClockRate                   ## -- Begin function SetClockRate
	.p2align	4, 0x90
_SetClockRate:                          ## @SetClockRate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -32(%rbp)
	movq	_kmem@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_nl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_lseek
	movl	$-1, %r14d
	cmpq	$-1, %rax
	je	LBB0_7
## %bb.1:
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sigmask
	movl	%eax, %edi
	callq	_sigblock
	movq	%rax, %r15
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_write
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_sigsetmask
	cmpl	$8, %ebx
	jne	LBB0_7
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	_default_rate@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	movq	%rsi, %rdx
	subq	(%rbx), %rdx
	je	LBB0_7
## %bb.3:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	_tick_rate@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_5:
	movq	_sysdebug@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_7
## %bb.6:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movq	-32(%rbp), %rdx
	movq	%rdx, %rcx
	subq	(%rbx), %rcx
	movl	(%rax), %edi
	movq	_tick_rate@GOTPCREL(%rip), %rax
	imulq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_msyslog
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kmem,4,2                       ## @kmem
	.comm	_nl,8,3                         ## @nl
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_default_rate,8,3               ## @default_rate
	.comm	_verbose,4,2                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adjtimed: clock rate (%lu) %ldus/s\n"

	.comm	_tick_rate,8,3                  ## @tick_rate
	.comm	_sysdebug,4,2                   ## @sysdebug
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"clock rate (%lu) %ldus/s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetClockRate                   ; -- Begin function SetClockRate
	.p2align	2
_SetClockRate:                          ; @SetClockRate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _kmem@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kmem@GOTPAGEOFF]
	str	x0, [sp, #8]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _nl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nl@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_lseek
	cmn	x0, #1
	b.eq	LBB0_8
; %bb.1:
Lloh5:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_sigmask
	bl	_sigblock
	mov	x19, x0
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #8
	bl	_write
	mov	x20, x0
	mov	x0, x19
	bl	_sigsetmask
	cmp	w20, #8
	b.ne	LBB0_8
; %bb.2:
	ldr	x1, [sp, #8]
Lloh8:
	adrp	x19, _default_rate@GOTPAGE
Lloh9:
	ldr	x19, [x19, _default_rate@GOTPAGEOFF]
	ldr	x8, [x19]
	subs	x8, x1, x8
	b.eq	LBB0_7
; %bb.3:
Lloh10:
	adrp	x9, _verbose@GOTPAGE
Lloh11:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x20, _tick_rate@GOTPAGE
Lloh14:
	ldr	x20, [x20, _tick_rate@GOTPAGEOFF]
	cmp	w9, #4
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x20]
	mul	x2, x9, x8
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_5:
Lloh17:
	adrp	x8, _sysdebug@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sysdebug@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
	ldr	x8, [x19]
	sub	x8, x2, x8
	ldr	x9, [x20]
	mul	x3, x8, x9
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msyslog
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_kmem,4,2                       ; @kmem
	.comm	_nl,8,3                         ; @nl
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_default_rate,8,3               ; @default_rate
	.comm	_verbose,4,2                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adjtimed: clock rate (%lu) %ldus/s\n"

	.comm	_tick_rate,8,3                  ; @tick_rate
	.comm	_sysdebug,4,2                   ; @sysdebug
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"clock rate (%lu) %ldus/s"

.subsections_via_symbols
