	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnv_get_cdclk
_pnv_get_cdclk:                         ## @pnv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	movl	$0, -12(%rbp)
	movq	_GCFGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-12(%rbp), %esi
	movq	_GC_DISPLAY_CLOCK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.pnv_get_cdclk(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movl	$133333, %eax                   ## imm = 0x208D5
LBB0_3:
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCFGC,4,2                      ## @GCFGC
	.comm	_GC_DISPLAY_CLOCK_MASK,4,2      ## @GC_DISPLAY_CLOCK_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown pnv display core clock 0x%04x\n"

	.no_dead_strip	_pnv_get_cdclk
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.pnv_get_cdclk
l_switch.table.pnv_get_cdclk:
	.long	444444                          ## 0x6c81c
	.long	333333                          ## 0x51615
	.long	266667                          ## 0x411ab
	.long	200000                          ## 0x30d40
	.long	166667                          ## 0x28b0b
	.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 pnv_get_cdclk
_pnv_get_cdclk:                         ; @pnv_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	x0, [x0]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _GCFGC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GCFGC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_word
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x8, _GC_DISPLAY_CLOCK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GC_DISPLAY_CLOCK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w1
	sub	w8, w8, #128
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.pnv_get_cdclk@PAGE
Lloh7:
	add	x9, x9, l_switch.table.pnv_get_cdclk@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w8, #2261
	movk	w8, #2, lsl #16
LBB0_3:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GCFGC,4,2                      ; @GCFGC
	.comm	_GC_DISPLAY_CLOCK_MASK,4,2      ; @GC_DISPLAY_CLOCK_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown pnv display core clock 0x%04x\n"

	.no_dead_strip	_pnv_get_cdclk
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.pnv_get_cdclk
l_switch.table.pnv_get_cdclk:
	.long	444444                          ; 0x6c81c
	.long	333333                          ; 0x51615
	.long	266667                          ; 0x411ab
	.long	200000                          ; 0x30d40
	.long	166667                          ; 0x28b0b
	.long	133333                          ; 0x208d5

.subsections_via_symbols
