	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc1200_get_pci_clock
_sc1200_get_pci_clock:                  ## @sc1200_get_pci_clock
	.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	$36924, %edi                    ## imm = 0x903C
	callq	_inb
	movl	%eax, %ebx
	movl	$36925, %edi                    ## imm = 0x903D
	callq	_inb
	cmpb	$4, %bl
	jne	LBB0_2
## %bb.1:
	movq	_SC1200_REV_B1@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jb	LBB0_3
LBB0_2:
	movl	$36894, %edi                    ## imm = 0x901E
	callq	_inw
	shrl	$8, %eax
	andl	$3, %eax
	movq	_PCI_CLK_33A@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
LBB0_3:
	movq	_PCI_CLK_33@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movzwl	%ax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC1200_REV_B1,1,0              ## @SC1200_REV_B1
	.comm	_PCI_CLK_33,4,2                 ## @PCI_CLK_33
	.comm	_PCI_CLK_33A,4,2                ## @PCI_CLK_33A
	.no_dead_strip	_sc1200_get_pci_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc1200_get_pci_clock
_sc1200_get_pci_clock:                  ; @sc1200_get_pci_clock
	.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
	mov	w0, #36924
	bl	_inb
	mov	x19, x0
	mov	w0, #36925
	bl	_inb
Lloh0:
	adrp	x8, _SC1200_REV_B1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC1200_REV_B1@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w19, #4
	ccmp	w0, w8, #2, eq
	b.lo	LBB0_2
; %bb.1:
	mov	w0, #36894
	bl	_inw
	ubfx	w8, w0, #8, #2
Lloh2:
	adrp	x9, _PCI_CLK_33A@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PCI_CLK_33A@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _PCI_CLK_33@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCI_CLK_33@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w10, w8, eq
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _PCI_CLK_33@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_CLK_33@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_3:
	and	w0, w8, #0xffff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SC1200_REV_B1,1,0              ; @SC1200_REV_B1
	.comm	_PCI_CLK_33,4,2                 ; @PCI_CLK_33
	.comm	_PCI_CLK_33A,4,2                ; @PCI_CLK_33A
	.no_dead_strip	_sc1200_get_pci_clock
.subsections_via_symbols
