	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smist_get
_smist_get:                             ## @smist_get
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	callq	_device_get_softc
	movq	%rax, %r12
	movq	_GET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_getset_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%r12), %rax
	movslq	-36(%rbp), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	leaq	-40(%rbp), %rsi
	xorl	%edi, %edi
	callq	_cpu_est_clockrate
	movslq	-40(%rbp), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	movq	(%r12), %rcx
	movslq	-36(%rbp), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movslq	-36(%rbp), %rax
	movl	(%rcx,%rax,4), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_DPRINT
	movq	(%r12), %rax
	movslq	-36(%rbp), %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_3:
	movl	%eax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_STATE,4,2                  ## @GET_STATE
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get calibrated new rate of %d\n"

	.no_dead_strip	_smist_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smist_get
_smist_get:                             ; @smist_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	bl	_device_get_softc
	mov	x20, x0
Lloh0:
	adrp	x8, _GET_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_getset_state
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldrsw	x9, [sp, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	w0, #0
	bl	_cpu_est_clockrate
	ldpsw	x10, x8, [sp, #8]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	ldr	x9, [x20]
	str	w8, [x9, x10, lsl #2]
	ldrsw	x8, [sp, #8]
	ldr	w2, [x9, x8, lsl #2]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DPRINT
	ldr	x8, [x20]
	ldrsw	x9, [sp, #8]
	ldr	w8, [x8, x9, lsl #2]
LBB0_3:
	str	w8, [x19]
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_STATE,4,2                  ; @GET_STATE
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get calibrated new rate of %d\n"

	.no_dead_strip	_smist_get
.subsections_via_symbols
