	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gth_smcfreq_get
_gth_smcfreq_get:                       ## @gth_smcfreq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_REG_GTH_SMCR0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rax
	shll	$4, %ebx
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_ioread32
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	%ebx, %ecx
	shll	%cl, %edx
	andl	%edx, %eax
	sarl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GTH_SMCR0,4,2              ## @REG_GTH_SMCR0
	.no_dead_strip	_gth_smcfreq_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gth_smcfreq_get
_gth_smcfreq_get:                       ; @gth_smcfreq_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _REG_GTH_SMCR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_GTH_SMCR0@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	w1, #0
	cinc	w9, w1, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw #2
	ubfiz	w19, w1, #4, #1
	ldr	x9, [x0]
	add	x0, x9, x8
	bl	_ioread32
	mov	w8, #65535
	lsl	w8, w8, w19
	and	w8, w0, w8
	asr	w0, w8, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GTH_SMCR0,4,2              ; @REG_GTH_SMCR0
	.no_dead_strip	_gth_smcfreq_get
.subsections_via_symbols
