	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_get_core_freq              ## -- Begin function gma_get_core_freq
	.p2align	4, 0x90
_gma_get_core_freq:                     ## @gma_get_core_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_pci_domain_nr
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_get_domain_bus_and_slot
	movq	%rax, %rbx
	movq	(%r14), %r14
	movq	%rax, %rdi
	movl	$208, %esi
	movl	$-804977920, %edx               ## imm = 0xD0050300
	callq	_pci_write_config_dword
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$212, %esi
	callq	_pci_read_config_dword
	movq	%rbx, %rdi
	callq	_pci_dev_put
	movl	-20(%rbp), %eax
	andl	$7, %eax
	leaq	l_switch.table.gma_get_core_freq(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.gma_get_core_freq
l_switch.table.gma_get_core_freq:
	.long	100                             ## 0x64
	.long	133                             ## 0x85
	.long	150                             ## 0x96
	.long	178                             ## 0xb2
	.long	200                             ## 0xc8
	.long	266                             ## 0x10a
	.long	266                             ## 0x10a
	.long	266                             ## 0x10a

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gma_get_core_freq              ; -- Begin function gma_get_core_freq
	.p2align	2
_gma_get_core_freq:                     ; @gma_get_core_freq
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_pci_domain_nr
	mov	w1, #0
	mov	w2, #0
	bl	_pci_get_domain_bus_and_slot
	mov	x20, x0
	ldr	x19, [x19]
	mov	w1, #208
	mov	w2, #768
	movk	w2, #53253, lsl #16
	bl	_pci_write_config_dword
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #212
	bl	_pci_read_config_dword
	mov	x0, x20
	bl	_pci_dev_put
	ldr	w8, [sp, #12]
	and	x8, x8, #0x7
Lloh0:
	adrp	x9, l_switch.table.gma_get_core_freq@PAGE
Lloh1:
	add	x9, x9, l_switch.table.gma_get_core_freq@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.gma_get_core_freq
l_switch.table.gma_get_core_freq:
	.long	100                             ; 0x64
	.long	133                             ; 0x85
	.long	150                             ; 0x96
	.long	178                             ; 0xb2
	.long	200                             ; 0xc8
	.long	266                             ; 0x10a
	.long	266                             ; 0x10a
	.long	266                             ; 0x10a

.subsections_via_symbols
