	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_i2c_fini
_smu_v11_0_i2c_fini:                    ## @smu_v11_0_i2c_fini
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_amdgpu_device
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_smu_v11_0_i2c_enable
	movq	_SMUIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_mmCKSVII2C_IC_ENABLE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_mmCKSVII2C_IC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_CKSVII2C_IC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CKSVII2C_IC_ENABLE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smu_v11_0_i2c_abort            ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMUIO,4,2                      ## @SMUIO
	.comm	_mmCKSVII2C_IC_ENABLE_STATUS,4,2 ## @mmCKSVII2C_IC_ENABLE_STATUS
	.comm	_mmCKSVII2C_IC_ENABLE,4,2       ## @mmCKSVII2C_IC_ENABLE
	.comm	_CKSVII2C_IC_ENABLE,4,2         ## @CKSVII2C_IC_ENABLE
	.comm	_ENABLE,4,2                     ## @ENABLE
	.comm	_CKSVII2C_IC_ENABLE_STATUS,4,2  ## @CKSVII2C_IC_ENABLE_STATUS
	.comm	_IC_EN,4,2                      ## @IC_EN
	.no_dead_strip	_smu_v11_0_i2c_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_i2c_fini
_smu_v11_0_i2c_fini:                    ; @smu_v11_0_i2c_fini
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_to_amdgpu_device
	mov	x0, x19
	mov	w1, #0
	bl	_smu_v11_0_i2c_enable
Lloh0:
	adrp	x21, _SMUIO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SMUIO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _mmCKSVII2C_IC_ENABLE_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCKSVII2C_IC_ENABLE_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x20, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _mmCKSVII2C_IC_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCKSVII2C_IC_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh8:
	adrp	x8, _CKSVII2C_IC_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CKSVII2C_IC_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cbnz	w0, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _CKSVII2C_IC_ENABLE_STATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CKSVII2C_IC_ENABLE_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _IC_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IC_EN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_smu_v11_0_i2c_abort
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SMUIO,4,2                      ; @SMUIO
	.comm	_mmCKSVII2C_IC_ENABLE_STATUS,4,2 ; @mmCKSVII2C_IC_ENABLE_STATUS
	.comm	_mmCKSVII2C_IC_ENABLE,4,2       ; @mmCKSVII2C_IC_ENABLE
	.comm	_CKSVII2C_IC_ENABLE,4,2         ; @CKSVII2C_IC_ENABLE
	.comm	_ENABLE,4,2                     ; @ENABLE
	.comm	_CKSVII2C_IC_ENABLE_STATUS,4,2  ; @CKSVII2C_IC_ENABLE_STATUS
	.comm	_IC_EN,4,2                      ; @IC_EN
	.no_dead_strip	_smu_v11_0_i2c_fini
.subsections_via_symbols
