	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_update_client
_eeprom_update_client:                  ## @eeprom_update_client
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	leaq	16(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	$1, %r14d
	movl	%r13d, %ecx
	shll	%cl, %r14d
	movl	(%r12), %eax
	btl	%r13d, %eax
	movslq	%r13d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	24(%r12), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$300, %rcx, %rsi                ## imm = 0x12C
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rax,%rcx,8), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	leaq	4(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_dbg
	movl	(%r15), %edi
	movq	_I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	shll	$5, %r13d
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	$2147483616, %r13d              ## imm = 0x7FFFFFE0
	je	LBB0_9
## %bb.4:
	movslq	%r13d, %rcx
	shlq	$2, %rcx
	addq	8(%r12), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$32, %edx
	callq	_i2c_smbus_read_i2c_block_data
	cmpl	$32, %eax
	je	LBB0_9
	jmp	LBB0_10
LBB0_5:
	cmpl	$2147483616, %r13d              ## imm = 0x7FFFFFE0
	je	LBB0_9
## %bb.6:
	movslq	%r13d, %rbx
	addl	$32, %r13d
	movslq	%r13d, %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_i2c_smbus_read_word_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movzbl	%al, %ecx
	movq	8(%r12), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	shrl	$8, %eax
	movl	%eax, 4(%rdx,%rbx,4)
	addq	$2, %rbx
	cmpq	%r13, %rbx
	jl	LBB0_7
LBB0_9:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r12), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	orl	%r14d, (%r12)
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting eeprom update, slice %u\n"

	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.no_dead_strip	_eeprom_update_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeprom_update_client
_eeprom_update_client:                  ; @eeprom_update_client
	.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, x1
	mov	x22, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w24, w9, w19
Lloh0:
	adrp	x25, _jiffies@GOTPAGE
Lloh1:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, w19, sxtw #3]
	ldr	x0, [x25]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	mov	w10, #300
	madd	x1, x9, x10, x8
	bl	_time_after
	cbz	x0, LBB0_10
LBB0_2:
	add	x0, x22, #4
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	lsl	w1, w19, #5
	mov	w8, #2147483616
	cmp	w1, w8
	cbz	x0, LBB0_5
; %bb.3:
	b.eq	LBB0_9
; %bb.4:
	ldr	x8, [x20, #8]
	add	x3, x8, w1, sxtw #2
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #32
	bl	_i2c_smbus_read_i2c_block_data
	cmp	w0, #32
	b.eq	LBB0_9
	b	LBB0_10
LBB0_5:
	b.eq	LBB0_9
; %bb.6:
	add	w8, w1, #32
	sxtw	x23, w1
	sxtw	x26, w8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_i2c_smbus_read_word_data
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w8, w0, #0xff
	ldr	x9, [x20, #8]
	add	x9, x9, x23, lsl #2
	lsr	w10, w0, #8
	stp	w8, w10, [x9]
	add	x23, x23, #2
	cmp	x23, x26
	b.lt	LBB0_7
LBB0_9:
	ldr	x8, [x25]
	ldr	x9, [x20, #24]
	str	x8, [x9, w19, sxtw #3]
	ldr	w8, [x20]
	orr	w8, w8, w24
	str	w8, [x20]
LBB0_10:
	mov	x0, x21
	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
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting eeprom update, slice %u\n"

	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.no_dead_strip	_eeprom_update_client
.subsections_via_symbols
