	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function polaris10_update_bif_smc_table
_polaris10_update_bif_smc_table:        ## @polaris10_update_bif_smc_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_SMU74_MAX_LEVELS_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
	testl	%edx, %edx
	jle	LBB0_15
## %bb.1:
	movq	8(%rdi), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %rcx
	movl	%edx, %r8d
	xorl	%esi, %esi
	cmpl	$8, %edx
	jb	LBB0_11
## %bb.2:
	movq	%rcx, %rdx
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_11
## %bb.3:
	movl	%r8d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rdx
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rdx,4), %xmm0
	movups	16(%rax,%rdx,4), %xmm1
	movups	%xmm0, (%rcx,%rdx,4)
	movups	%xmm1, 16(%rcx,%rdx,4)
	movups	32(%rax,%rdx,4), %xmm0
	movups	48(%rax,%rdx,4), %xmm1
	movups	%xmm0, 32(%rcx,%rdx,4)
	movups	%xmm1, 48(%rcx,%rdx,4)
	movups	64(%rax,%rdx,4), %xmm0
	movups	80(%rax,%rdx,4), %xmm1
	movups	%xmm0, 64(%rcx,%rdx,4)
	movups	%xmm1, 80(%rcx,%rdx,4)
	movups	96(%rax,%rdx,4), %xmm0
	movups	112(%rax,%rdx,4), %xmm1
	movups	%xmm0, 96(%rcx,%rdx,4)
	movups	%xmm1, 112(%rcx,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%r9, %r9
	je	LBB0_10
## %bb.8:
	leaq	(%rcx,%rdx,4), %r10
	addq	$16, %r10
	leaq	(%rax,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdx,%rdi), %xmm0
	movups	(%rdx,%rdi), %xmm1
	movups	%xmm0, -16(%r10,%rdi)
	movups	%xmm1, (%r10,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_9
LBB0_10:
	cmpq	%r8, %rsi
	je	LBB0_15
LBB0_11:
	movq	%rsi, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edx
	movl	%edx, (%rcx,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_12
LBB0_13:
	cmpq	$3, %r9
	jb	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edx
	movl	%edx, (%rcx,%rsi,4)
	movl	4(%rax,%rsi,4), %edx
	movl	%edx, 4(%rcx,%rsi,4)
	movl	8(%rax,%rsi,4), %edx
	movl	%edx, 8(%rcx,%rsi,4)
	movl	12(%rax,%rsi,4), %edx
	movl	%edx, 12(%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU74_MAX_LEVELS_LINK,4,2      ## @SMU74_MAX_LEVELS_LINK
	.no_dead_strip	_polaris10_update_bif_smc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function polaris10_update_bif_smc_table
_polaris10_update_bif_smc_table:        ; @polaris10_update_bif_smc_table
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SMU74_MAX_LEVELS_LINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMU74_MAX_LEVELS_LINK@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh2:
	ldr	w8, [x9]
	ldr	w9, [x10]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x9, #0
	ldr	x11, [x0, #8]
	ldr	x10, [x10, #8]
	ldr	x11, [x11]
	cmp	w8, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x12, x11, x10
	cmp	x12, #64
	b.lo	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff0
	add	x12, x11, #32
	add	x13, x10, #32
	mov	x14, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	lsl	x12, x9, #2
	add	x11, x11, x12
	add	x10, x10, x12
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU74_MAX_LEVELS_LINK,4,2      ; @SMU74_MAX_LEVELS_LINK
	.no_dead_strip	_polaris10_update_bif_smc_table
.subsections_via_symbols
