	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_v11_0_i2c_eeprom_control_init ## -- Begin function smu_v11_0_i2c_eeprom_control_init
	.p2align	4, 0x90
_smu_v11_0_i2c_eeprom_control_init:     ## @smu_v11_0_i2c_eeprom_control_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_to_amdgpu_device
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_smu_v11_0_i2c_eeprom_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_smu_v11_0_i2c_i2c_lock_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
	.comm	_smu_v11_0_i2c_eeprom_i2c_algo,4,2 ## @smu_v11_0_i2c_eeprom_i2c_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RAS EEPROM"

	.comm	_smu_v11_0_i2c_i2c_lock_ops,4,2 ## @smu_v11_0_i2c_i2c_lock_ops
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register hw i2c, err: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_v11_0_i2c_eeprom_control_init ; -- Begin function smu_v11_0_i2c_eeprom_control_init
	.p2align	2
_smu_v11_0_i2c_eeprom_control_init:     ; @smu_v11_0_i2c_eeprom_control_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_to_amdgpu_device
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _smu_v11_0_i2c_eeprom_i2c_algo@GOTPAGE
Lloh7:
	ldr	x9, [x9, _smu_v11_0_i2c_eeprom_i2c_algo@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh10:
	adrp	x8, _smu_v11_0_i2c_i2c_lock_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _smu_v11_0_i2c_i2c_lock_ops@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x19
	bl	_i2c_add_adapter
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
	.comm	_smu_v11_0_i2c_eeprom_i2c_algo,4,2 ; @smu_v11_0_i2c_eeprom_i2c_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RAS EEPROM"

	.comm	_smu_v11_0_i2c_i2c_lock_ops,4,2 ; @smu_v11_0_i2c_i2c_lock_ops
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register hw i2c, err: %d\n"

.subsections_via_symbols
