	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nforce2_fsb_read
_nforce2_fsb_read:                      ## @nforce2_fsb_read
	.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
	movl	%edi, %r14d
	movl	$0, -20(%rbp)
	movq	_PCI_VENDOR_ID_NVIDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_ANY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	$495, %esi                      ## imm = 0x1EF
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_NFORCE2_BOOTFSB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	callq	_pci_read_config_dword
	movslq	-24(%rbp), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	movl	%eax, -24(%rbp)
	movq	_nforce2_dev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_NFORCE2_PLLENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_byte
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	cmpl	$0, -20(%rbp)
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	movq	_NFORCE2_PLLREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-20(%rbp), %edi
	callq	_nforce2_calc_fsb
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	-24(%rbp), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_NVIDIA,4,2       ## @PCI_VENDOR_ID_NVIDIA
	.comm	_PCI_ANY_ID,4,2                 ## @PCI_ANY_ID
	.comm	_NFORCE2_BOOTFSB,4,2            ## @NFORCE2_BOOTFSB
	.comm	_nforce2_dev,8,3                ## @nforce2_dev
	.comm	_NFORCE2_PLLENABLE,4,2          ## @NFORCE2_PLLENABLE
	.comm	_NFORCE2_PLLREG,4,2             ## @NFORCE2_PLLREG
	.no_dead_strip	_nforce2_fsb_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nforce2_fsb_read
_nforce2_fsb_read:                      ; @nforce2_fsb_read
	.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
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _PCI_VENDOR_ID_NVIDIA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_ID_NVIDIA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PCI_ANY_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_ANY_ID@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #495
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
	cbz	x0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _NFORCE2_BOOTFSB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFORCE2_BOOTFSB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldrsw	x8, [sp, #12]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	str	w8, [sp, #12]
Lloh9:
	adrp	x20, _nforce2_dev@GOTPAGE
Lloh10:
	ldr	x20, [x20, _nforce2_dev@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh11:
	adrp	x8, _NFORCE2_PLLENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFORCE2_PLLENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_pci_read_config_byte
	cbnz	w19, LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh14:
	adrp	x8, _NFORCE2_PLLREG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFORCE2_PLLREG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_pci_read_config_dword
	ldr	w0, [sp, #8]
	bl	_nforce2_calc_fsb
	b	LBB0_5
LBB0_4:
	ldr	w0, [sp, #12]
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_NVIDIA,4,2       ; @PCI_VENDOR_ID_NVIDIA
	.comm	_PCI_ANY_ID,4,2                 ; @PCI_ANY_ID
	.comm	_NFORCE2_BOOTFSB,4,2            ; @NFORCE2_BOOTFSB
	.comm	_nforce2_dev,8,3                ; @nforce2_dev
	.comm	_NFORCE2_PLLENABLE,4,2          ; @NFORCE2_PLLENABLE
	.comm	_NFORCE2_PLLREG,4,2             ; @NFORCE2_PLLREG
	.no_dead_strip	_nforce2_fsb_read
.subsections_via_symbols
