	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i85x_get_cdclk
_i85x_get_cdclk:                        ## @i85x_get_cdclk
	.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	%rsi, %r14
	movq	(%rdi), %rcx
	movl	$0, -20(%rbp)
	movl	$133333, %eax                   ## imm = 0x208D5
	cmpl	$1, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	4(%rcx), %ebx
	xorl	%edi, %edi
	movl	$3, %esi
	callq	_PCI_DEVFN
	movq	_HPLLCC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-20(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_bus_read_config_word
	movq	_GC_CLOCK_CONTROL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_4
## %bb.2:
	cltq
	leaq	l_switch.table.i85x_get_cdclk(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_3:
	movl	%eax, (%r14)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPLLCC,4,2                     ## @HPLLCC
	.comm	_GC_CLOCK_CONTROL_MASK,4,2      ## @GC_CLOCK_CONTROL_MASK
	.no_dead_strip	_i85x_get_cdclk
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.i85x_get_cdclk
l_switch.table.i85x_get_cdclk:
	.long	266667                          ## 0x411ab
	.long	250000                          ## 0x3d090
	.long	266667                          ## 0x411ab
	.long	266667                          ## 0x411ab
	.long	200000                          ## 0x30d40
	.long	200000                          ## 0x30d40
	.long	200000                          ## 0x30d40
	.long	133333                          ## 0x208d5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i85x_get_cdclk
_i85x_get_cdclk:                        ; @i85x_get_cdclk
	.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, x1
	ldr	x8, [x0]
	str	wzr, [sp, #12]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #2261
	movk	w8, #2, lsl #16
	b	LBB0_4
LBB0_2:
	ldr	w20, [x8, #4]
	mov	w0, #0
	mov	w1, #3
	bl	_PCI_DEVFN
	mov	x1, x0
Lloh0:
	adrp	x8, _HPLLCC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPLLCC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	bl	_pci_bus_read_config_word
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _GC_CLOCK_CONTROL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GC_CLOCK_CONTROL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, l_switch.table.i85x_get_cdclk@PAGE
Lloh7:
	add	x9, x9, l_switch.table.i85x_get_cdclk@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
LBB0_4:
	str	w8, [x19]
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 AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HPLLCC,4,2                     ; @HPLLCC
	.comm	_GC_CLOCK_CONTROL_MASK,4,2      ; @GC_CLOCK_CONTROL_MASK
	.no_dead_strip	_i85x_get_cdclk
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.i85x_get_cdclk
l_switch.table.i85x_get_cdclk:
	.long	266667                          ; 0x411ab
	.long	250000                          ; 0x3d090
	.long	266667                          ; 0x411ab
	.long	266667                          ; 0x411ab
	.long	200000                          ; 0x30d40
	.long	200000                          ; 0x30d40
	.long	200000                          ; 0x30d40
	.long	133333                          ; 0x208d5

.subsections_via_symbols
