	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_i2c_eeprom_read_data
_smu_v11_0_i2c_eeprom_read_data:        ## @smu_v11_0_i2c_eeprom_read_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_I2C_NO_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$2, %ecx
	callq	_smu_v11_0_i2c_transmit
	movq	%rax, %rbx
	movq	_I2C_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	addq	$8, %r13
	addq	$-2, %r14
	movq	_I2C_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movq	%rcx, %r15
	movq	%r14, %rcx
	callq	_smu_v11_0_i2c_receive
	movq	%rax, %rbx
	movq	(%r15), %rax
LBB0_2:
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_ERROR
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_NO_STOP,4,2                ## @I2C_NO_STOP
	.comm	_I2C_OK,8,3                     ## @I2C_OK
	.comm	_I2C_RESTART,4,2                ## @I2C_RESTART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ReadData() - I2C error occurred :%x"

	.no_dead_strip	_smu_v11_0_i2c_eeprom_read_data
.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_eeprom_read_data
_smu_v11_0_i2c_eeprom_read_data:        ; @smu_v11_0_i2c_eeprom_read_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _I2C_NO_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_NO_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	w3, #2
	bl	_smu_v11_0_i2c_transmit
Lloh3:
	adrp	x24, _I2C_OK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _I2C_OK@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	add	x2, x23, #8
	sub	x3, x22, #2
Lloh5:
	adrp	x8, _I2C_RESTART@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_RESTART@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_smu_v11_0_i2c_receive
	mov	x19, x0
	ldr	x8, [x24]
	cmp	x19, x8
	b.ne	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	cmp	x19, x8
	b.eq	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_NO_STOP,4,2                ; @I2C_NO_STOP
	.comm	_I2C_OK,8,3                     ; @I2C_OK
	.comm	_I2C_RESTART,4,2                ; @I2C_RESTART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ReadData() - I2C error occurred :%x"

	.no_dead_strip	_smu_v11_0_i2c_eeprom_read_data
.subsections_via_symbols
