	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ics932s401_update_device
_ics932s401_update_device:              ## @ics932s401_update_device
	.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
	callq	_to_i2c_client
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_SENSOR_REFRESH_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$0, 8(%rbx)
	jne	LBB0_8
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_NUM_MIRRORED_REGS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.3:
	movq	_regs_to_copy@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	sarl	$8, %eax
	movl	%eax, (%rdx,%rsi,4)
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%r15,8), %rsi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_data
	movq	16(%rbx), %rdx
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rsi
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%rdx,%rsi,4)
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SENSOR_REFRESH_INTERVAL,8,3    ## @SENSOR_REFRESH_INTERVAL
	.comm	_NUM_MIRRORED_REGS,4,2          ## @NUM_MIRRORED_REGS
	.comm	_regs_to_copy,8,3               ## @regs_to_copy
	.no_dead_strip	_ics932s401_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ics932s401_update_device
_ics932s401_update_device:              ; @ics932s401_update_device
	.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
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x21, x0, #24
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SENSOR_REFRESH_INTERVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SENSOR_REFRESH_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_time_before
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
LBB0_2:
Lloh6:
	adrp	x23, _NUM_MIRRORED_REGS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NUM_MIRRORED_REGS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x24, #0
Lloh8:
	adrp	x25, _regs_to_copy@GOTPAGE
Lloh9:
	ldr	x25, [x25, _regs_to_copy@GOTPAGEOFF]
	ldr	x8, [x25]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	asr	w11, w0, #8
	str	w11, [x9, x10, lsl #2]
	add	x24, x24, #1
	ldrsw	x9, [x23]
	cmp	x24, x9
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x26, x24, #3
	ldr	x1, [x8, x26]
	mov	x0, x20
	bl	_i2c_smbus_read_word_data
	ldr	x9, [x19, #16]
	ldr	x8, [x25]
	ldr	x10, [x8, x26]
	tbz	w0, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x9, x10, lsl #2]
	b	LBB0_4
LBB0_7:
	str	x22, [x19]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_8:
	mov	x0, x21
	bl	_mutex_unlock
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SENSOR_REFRESH_INTERVAL,8,3    ; @SENSOR_REFRESH_INTERVAL
	.comm	_NUM_MIRRORED_REGS,4,2          ; @NUM_MIRRORED_REGS
	.comm	_regs_to_copy,8,3               ; @regs_to_copy
	.no_dead_strip	_ics932s401_update_device
.subsections_via_symbols
