	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_bapm_parameters_in_dpm_table
_ci_populate_bapm_parameters_in_dpm_table: ## @ci_populate_bapm_parameters_in_dpm_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rbx
	movq	16(%rdi), %r15
	movq	72(%rbx), %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %r13
	movl	(%r13), %edi
	shll	$8, %edi
	callq	_PP_HOST_TO_SMC_US
	movq	%rax, 64(%rbx)
	movl	4(%r13), %edi
	shll	$8, %edi
	callq	_PP_HOST_TO_SMC_US
	movq	%rax, 56(%rbx)
	movq	$0, 48(%rbx)
	movl	(%r15), %eax
	movq	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cltq
	movq	%rax, 40(%rbx)
	movl	$8, (%rbx)
	movl	20(%r14), %eax
	movl	%eax, 36(%rbx)
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movl	(%r12), %eax
	movl	8(%r12), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdi
	addl	%ecx, %edi
	shll	$8, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
	xorl	%eax, %eax
LBB0_3:
	movl	%edi, 4(%rbx)
	movl	%eax, 8(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movl	8(%rbx), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movl	16(%r14), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 32(%rbx)
	movq	_SMU7_DTE_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.4:
	movq	(%r14), %rsi
	movq	8(%r14), %rbx
	movq	_SMU7_DTE_SOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%ecx, %ecx
	movq	_SMU7_DTE_SINKS@GOTPCREL(%rip), %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SMU7_DTE_ITERATIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	movslq	%r8d, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_14
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%r9d, %r9d
	jle	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rax
	movslq	%r9d, %rdx
	cmpq	%rdx, %rax
	jge	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	24(%r12), %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%rcx,%r14,8), %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	movl	(%rbx), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	_SMU7_DTE_SINKS@GOTPCREL(%rip), %rdi
	movq	16(%r12), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	addq	$4, %rsi
	addq	$4, %rbx
	incq	%r15
	movslq	(%rdi), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_SMU7_DTE_SOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_14:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ## @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.comm	_SMU7_DTE_ITERATIONS,4,2        ## @SMU7_DTE_ITERATIONS
	.comm	_SMU7_DTE_SOURCES,4,2           ## @SMU7_DTE_SOURCES
	.comm	_SMU7_DTE_SINKS,4,2             ## @SMU7_DTE_SINKS
	.no_dead_strip	_ci_populate_bapm_parameters_in_dpm_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_bapm_parameters_in_dpm_table
_ci_populate_bapm_parameters_in_dpm_table: ; @ci_populate_bapm_parameters_in_dpm_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x21, x19, [x0, #16]
	ldr	x23, [x19, #72]
	ldp	x20, x22, [x0]
	ldr	w8, [x22]
	lsl	w0, w8, #8
	bl	_PP_HOST_TO_SMC_US
	str	x0, [x19, #64]
	ldr	w8, [x22, #4]
	lsl	w0, w8, #8
	bl	_PP_HOST_TO_SMC_US
	str	x0, [x19, #56]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	stp	x8, xzr, [x19, #40]
	mov	w8, #8
	str	w8, [x19]
	ldr	w8, [x23, #20]
	str	w8, [x19, #36]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	lsl	w8, w8, #8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	ldr	w8, [x20]
	lsl	w8, w8, #8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	mov	w8, #0
LBB0_3:
	stp	w0, w8, [x19, #4]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	w0, [x19, #8]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	w0, [x23, #16]
	bl	_PP_HOST_TO_SMC_UL
	str	w0, [x19, #32]
Lloh3:
	adrp	x8, _SMU7_DTE_ITERATIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU7_DTE_ITERATIONS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x21, #0
	ldp	x23, x22, [x23]
Lloh6:
	adrp	x8, _SMU7_DTE_SOURCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU7_DTE_SOURCES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x25, _SMU7_DTE_SINKS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SMU7_DTE_SINKS@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh11:
	adrp	x9, _SMU7_DTE_ITERATIONS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMU7_DTE_ITERATIONS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
	ldr	w9, [x25]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x27, #0
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x23], #4
	bl	_PP_HOST_TO_SMC_US
	ldr	x8, [x19, #24]
	lsl	x28, x21, #3
	ldr	x8, [x8, x28]
	lsl	x20, x26, #3
	ldr	x8, [x8, x20]
	lsl	x24, x27, #3
	str	x0, [x8, x24]
	ldr	w0, [x22], #4
	bl	_PP_HOST_TO_SMC_US
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x28]
	ldr	x8, [x8, x20]
	str	x0, [x8, x24]
	add	x27, x27, #1
	ldrsw	x9, [x25]
	cmp	x27, x9
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh14:
	adrp	x8, _SMU7_DTE_SOURCES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMU7_DTE_SOURCES@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_14:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ; @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.comm	_SMU7_DTE_ITERATIONS,4,2        ; @SMU7_DTE_ITERATIONS
	.comm	_SMU7_DTE_SOURCES,4,2           ; @SMU7_DTE_SOURCES
	.comm	_SMU7_DTE_SINKS,4,2             ; @SMU7_DTE_SINKS
	.no_dead_strip	_ci_populate_bapm_parameters_in_dpm_table
.subsections_via_symbols
