	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_read
_eeprom_read:                           ## @eeprom_read
	.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	%r9, %r14
	movl	%r8d, %ebx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_kobj_to_dev
	movl	%eax, %edi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	sarl	$5, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r13), %r12
	decq	%r12
	shrq	$5, %r12
	movslq	%eax, %r14
	cmpq	%r14, %r12
	jb	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_eeprom_update_client
	incq	%r14
	cmpq	%r14, %r12
	jae	LBB0_1
LBB0_3:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	_VAIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.4:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
LBB0_22:
	addq	8(%r15), %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
LBB0_21:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	je	LBB0_21
## %bb.6:
	cmpq	$1, %r14
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
LBB0_16:
	testb	$1, %r14b
	je	LBB0_21
## %bb.17:
	addl	%eax, %r9d
	xorl	%esi, %esi
	cmpl	$32, %r9d
	jl	LBB0_20
## %bb.18:
	movl	%r9d, %edx
	andl	$-32, %edx
	cmpl	$192, %edx
	je	LBB0_20
## %bb.19:
	movq	8(%r15), %rsi
	movl	%r9d, %edx
	movb	(%rsi,%rdx), %sil
LBB0_20:
	movb	%sil, (%rcx,%rax)
	jmp	LBB0_21
LBB0_8:
	movq	%r14, %r8
	andq	$-2, %r8
	xorl	%eax, %eax
	movl	%r9d, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	%sil, 1(%rcx,%rax)
	addq	$2, %rax
	addl	$2, %edx
	cmpq	%rax, %r8
	je	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpl	$32, %edx
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %edi
	andl	$-32, %edi
	cmpl	$192, %edi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r15), %rsi
	movl	%edx, %edi
	movzbl	(%rsi,%rdi), %esi
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	%sil, (%rcx,%rax)
	leal	1(%rdx), %ebx
	xorl	%esi, %esi
	cmpl	$32, %ebx
	jl	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	andl	$-32, %edi
	cmpl	$192, %edi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r15), %rsi
	movl	%ebx, %edi
	movzbl	(%rsi,%rdi), %esi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_VAIO,8,3                       ## @VAIO
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.no_dead_strip	_eeprom_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_read
_eeprom_read:                           ; @eeprom_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x0, x1
	bl	_kobj_to_dev
	bl	_to_i2c_client
	mov	x23, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	sxtw	x25, w21
	add	x8, x19, x25
	sub	x8, x8, #1
	lsr	x26, x8, #5
	sbfx	x24, x21, #5, #27
	cmp	x26, x24
	b.lo	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_eeprom_update_client
	add	x24, x24, #1
	cmp	x26, x24
	b.hs	LBB0_1
LBB0_2:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _VAIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VAIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_6
LBB0_4:
	ldr	x8, [x22, #8]
	add	x1, x8, x25
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	x19, LBB0_5
; %bb.7:
	mov	x8, x19
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w9, [x20], #1
	add	w21, w21, #1
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w9, #0
	cmp	w21, #32
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	and	w10, w21, #0xffffffe0
	cmp	w10, #192
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x22, #8]
	ldrb	w9, [x9, w21, uxtw]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VAIO,8,3                       ; @VAIO
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.no_dead_strip	_eeprom_read
.subsections_via_symbols
