	.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	%rdi, %r14
	callq	_ci_get_pi
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	96(%rbx), %r13
	movq	(%r14), %r15
	movq	8(%r14), %rcx
	movl	(%rcx), %edx
	shll	$8, %edx
	movl	%edx, 16(%rbx)
	movl	4(%rcx), %ecx
	shll	$8, %ecx
	movl	%ecx, 20(%rbx)
	movq	%rax, 88(%rbx)
	movslq	(%rbx), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	cltq
	movq	%rax, 80(%rbx)
	movl	$8, 24(%rbx)
	movl	20(%r13), %eax
	movl	%eax, 72(%rbx)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %eax
	shll	$8, %eax
	cltq
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_be16
	movq	%rax, 64(%rbx)
	movl	(%r15), %r14d
	shll	$8, %r14d
	jmp	LBB0_3
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_cpu_to_be16
	movq	%rax, 64(%rbx)
LBB0_3:
	movl	%r14d, %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%rbx)
	movl	16(%r13), %edi
	callq	_cpu_to_be32
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 48(%rbx)
	movq	_SMU7_DTE_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.4:
	movq	(%r13), %rsi
	movq	8(%r13), %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	_cpu_to_be16
	movq	40(%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	_cpu_to_be16
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	_SMU7_DTE_SINKS@GOTPCREL(%rip), %rdi
	movq	32(%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	_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
	mov	x20, x0
	bl	_ci_get_pi
	mov	x19, x0
	ldr	x23, [x0, #96]
	ldp	x20, x8, [x20]
	ldr	d0, [x8]
	shl.2s	v0, v0, #8
	str	d0, [x0, #16]
	ldrsw	x9, [x0]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	mul	x9, x9, x8
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	ldr	x10, [x0, #8]
	sxtw	x9, w9
	stp	x9, x10, [x0, #80]
	mov	w9, #8
	str	w9, [x0, #24]
	ldr	w9, [x23, #20]
	str	w9, [x0, #72]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w9, [x20, #8]
	lsl	w9, w9, #8
	smull	x8, w9, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	bl	_cpu_to_be16
	str	x0, [x19, #64]
	ldr	w8, [x20]
	lsl	w0, w8, #8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	bl	_cpu_to_be16
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #64]
LBB0_3:
	bl	_cpu_to_be16
	str	x0, [x19, #56]
	ldr	w0, [x23, #16]
	bl	_cpu_to_be32
	str	w0, [x19, #48]
Lloh0:
	adrp	x8, _SMU7_DTE_ITERATIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_DTE_ITERATIONS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x21, #0
	ldp	x23, x22, [x23]
Lloh3:
	adrp	x8, _SMU7_DTE_SOURCES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU7_DTE_SOURCES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x25, _SMU7_DTE_SINKS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SMU7_DTE_SINKS@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh8:
	adrp	x9, _SMU7_DTE_ITERATIONS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SMU7_DTE_ITERATIONS@GOTPAGEOFF]
Lloh10:
	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	_cpu_to_be16
	ldr	x8, [x19, #40]
	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	_cpu_to_be16
	ldr	x8, [x19, #32]
	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
Lloh11:
	adrp	x8, _SMU7_DTE_SOURCES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMU7_DTE_SOURCES@GOTPAGEOFF]
Lloh13:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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
