	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bw_calcs_data_update_from_pplib
_bw_calcs_data_update_from_pplib:       ## @bw_calcs_data_update_from_pplib
	.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	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movl	8(%rdi), %edi
	movq	_DM_PP_CLOCK_TYPE_ENGINE_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r14
	movq	%r14, %rdx
	callq	_dm_pp_get_clock_levels_by_type
	movq	-32(%rbp), %rax
	movslq	-24(%rbp), %rcx
	movl	-4(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 104(%rcx)
	movl	-24(%rbp), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movq	-32(%rbp), %rax
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 96(%rcx)
	movl	-24(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movq	-32(%rbp), %rax
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 88(%rcx)
	movl	-24(%rbp), %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rax,2), %eax
	addl	$7, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	-32(%rbp), %rcx
	sarl	$3, %eax
	cltq
	movl	(%rcx,%rax,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 80(%rcx)
	movq	-32(%rbp), %rax
	movl	-24(%rbp), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 72(%rcx)
	movl	-24(%rbp), %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rax,%rax,4), %eax
	addl	$7, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	-32(%rbp), %rcx
	sarl	$3, %eax
	cltq
	movl	(%rcx,%rax,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 64(%rcx)
	movl	-24(%rbp), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rax,2), %eax
	addl	$7, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	-32(%rbp), %rcx
	sarl	$3, %eax
	cltq
	movl	(%rcx,%rax,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 56(%rcx)
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 48(%rcx)
	movaps	-32(%rbp), %xmm0
	movups	%xmm0, 16(%rbx)
	movl	8(%rbx), %edi
	movq	_DM_PP_CLOCK_TYPE_DISPLAY_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_dm_pp_get_clock_levels_by_type
	movq	-32(%rbp), %rax
	movslq	-24(%rbp), %rcx
	movl	-4(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	-32(%rbp), %rax
	movl	-24(%rbp), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movl	8(%rbx), %edi
	movq	_DM_PP_CLOCK_TYPE_MEMORY_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_dm_pp_get_clock_levels_by_type
	movq	-32(%rbp), %rax
	movq	_MEMORY_TYPE_MULTIPLIER_CZ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	imull	(%rax), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	-32(%rbp), %rax
	movl	-24(%rbp), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%r14), %edi
	imull	(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	-32(%rbp), %rax
	movslq	-24(%rbp), %rcx
	movl	(%r14), %edi
	imull	-4(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_bw_frc_to_fixed
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_PP_CLOCK_TYPE_ENGINE_CLK,4,2 ## @DM_PP_CLOCK_TYPE_ENGINE_CLK
	.comm	_DM_PP_CLOCK_TYPE_DISPLAY_CLK,4,2 ## @DM_PP_CLOCK_TYPE_DISPLAY_CLK
	.comm	_DM_PP_CLOCK_TYPE_MEMORY_CLK,4,2 ## @DM_PP_CLOCK_TYPE_MEMORY_CLK
	.comm	_MEMORY_TYPE_MULTIPLIER_CZ,4,2  ## @MEMORY_TYPE_MULTIPLIER_CZ
	.no_dead_strip	_bw_calcs_data_update_from_pplib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bw_calcs_data_update_from_pplib
_bw_calcs_data_update_from_pplib:       ; @bw_calcs_data_update_from_pplib
	.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
	stp	xzr, xzr, [sp]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _DM_PP_CLOCK_TYPE_ENGINE_CLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_PP_CLOCK_TYPE_ENGINE_CLK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_dm_pp_get_clock_levels_by_type
	ldr	x8, [sp]
	ldrsw	x9, [sp, #8]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #104]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #96]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #88]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	add	w9, w9, w9, lsl #1
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #80]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #72]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	add	w9, w9, w9, lsl #2
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #64]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #1
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #56]
	ldr	x8, [sp]
	ldr	w0, [x8]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #48]
	ldr	q0, [sp]
	str	q0, [x19, #16]
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _DM_PP_CLOCK_TYPE_DISPLAY_CLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_PP_CLOCK_TYPE_DISPLAY_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_dm_pp_get_clock_levels_by_type
	ldr	x8, [sp]
	ldrsw	x9, [sp, #8]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #40]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	asr	w9, w9, #1
	ldr	w0, [x8, w9, sxtw #2]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #32]
	ldr	x8, [sp]
	ldr	w0, [x8]
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _DM_PP_CLOCK_TYPE_MEMORY_CLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DM_PP_CLOCK_TYPE_MEMORY_CLK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_dm_pp_get_clock_levels_by_type
	ldr	x8, [sp]
	ldr	w8, [x8]
Lloh9:
	adrp	x20, _MEMORY_TYPE_MULTIPLIER_CZ@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MEMORY_TYPE_MULTIPLIER_CZ@GOTPAGEOFF]
	ldr	w9, [x20]
	mul	w0, w9, w8
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x8, [sp]
	ldr	w9, [sp, #8]
	asr	w9, w9, #1
	ldr	w8, [x8, w9, sxtw #2]
	ldr	w9, [x20]
	mul	w0, w9, w8
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [sp]
	ldrsw	x9, [sp, #8]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	ldr	w9, [x20]
	mul	w0, w9, w8
	mov	w1, #1000
	bl	_bw_frc_to_fixed
	ldr	x8, [x19]
	str	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_PP_CLOCK_TYPE_ENGINE_CLK,4,2 ; @DM_PP_CLOCK_TYPE_ENGINE_CLK
	.comm	_DM_PP_CLOCK_TYPE_DISPLAY_CLK,4,2 ; @DM_PP_CLOCK_TYPE_DISPLAY_CLK
	.comm	_DM_PP_CLOCK_TYPE_MEMORY_CLK,4,2 ; @DM_PP_CLOCK_TYPE_MEMORY_CLK
	.comm	_MEMORY_TYPE_MULTIPLIER_CZ,4,2  ; @MEMORY_TYPE_MULTIPLIER_CZ
	.no_dead_strip	_bw_calcs_data_update_from_pplib
.subsections_via_symbols
