	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdw_modeset_calc_cdclk
_bdw_modeset_calc_cdclk:                ## @bdw_modeset_calc_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	%rdi, %rbx
	callq	_intel_compute_min_cdclk
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %edi
	callq	_bdw_calc_cdclk
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_bdw_calc_voltage_level
	movq	%rax, 16(%rbx)
	cmpl	$0, 40(%rbx)
	je	LBB0_2
## %bb.3:
	leaq	8(%rbx), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 24(%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %edi
	callq	_bdw_calc_cdclk
	movl	%eax, 24(%rbx)
	movl	%eax, %edi
	callq	_bdw_calc_voltage_level
	movq	%rax, 32(%rbx)
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bdw_modeset_calc_cdclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdw_modeset_calc_cdclk
_bdw_modeset_calc_cdclk:                ; @bdw_modeset_calc_cdclk
	.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	x19, x0
	bl	_intel_compute_min_cdclk
	tbnz	w0, #31, LBB0_4
; %bb.1:
	bl	_bdw_calc_cdclk
	mov	x20, x19
	str	w0, [x20, #8]!
	bl	_bdw_calc_voltage_level
	str	x0, [x20, #8]
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	q0, [x20]
	stur	q0, [x19, #24]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	bl	_bdw_calc_cdclk
	str	w0, [x19, #24]
	bl	_bdw_calc_voltage_level
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #32]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bdw_modeset_calc_cdclk
.subsections_via_symbols
