	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1668_update_device
_max1668_update_device:                 ## @max1668_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	48(%rax), %r12
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	addq	16(%r15), %rcx
	movq	(%rax), %rdi
	sarl	%edx
	movslq	%edx, %rsi
	addq	%rcx, %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_11
LBB0_2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_MAX1668_REG_TEMP
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rax
	movq	40(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
	movl	%r13d, %edi
	callq	_MAX1668_REG_LIMH_RD
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rax
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
	movl	%r13d, %edi
	callq	_MAX1668_REG_LIML_RD
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rax
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	cmpq	$5, %r13
	jne	LBB0_3
## %bb.8:
	movq	_MAX1668_REG_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	shll	$8, %ebx
	movl	%ebx, 4(%r15)
	movq	_MAX1668_REG_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r15
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	orl	%ebx, 4(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	$1, (%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_MAX1668_REG_STAT1,4,2          ## @MAX1668_REG_STAT1
	.comm	_MAX1668_REG_STAT2,4,2          ## @MAX1668_REG_STAT2
	.no_dead_strip	_max1668_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1668_update_device
_max1668_update_device:                 ; @max1668_update_device
	.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
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #48]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x1, x8, w9, sxtw
	bl	_time_after
	cbz	w0, LBB0_11
LBB0_2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_MAX1668_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w23
	ldr	x9, [x20, #40]
	str	x8, [x9, x22, lsl #3]
	mov	x0, x22
	bl	_MAX1668_REG_LIMH_RD
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w23
	ldr	x9, [x20, #32]
	str	x8, [x9, x22, lsl #3]
	mov	x0, x22
	bl	_MAX1668_REG_LIML_RD
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w23
	ldr	x9, [x20, #24]
	str	x8, [x9, x22, lsl #3]
	add	x22, x22, #1
	cmp	x22, #5
	b.ne	LBB0_3
; %bb.7:
Lloh6:
	adrp	x8, _MAX1668_REG_STAT1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX1668_REG_STAT1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x22
	b	LBB0_10
LBB0_9:
	mov	x0, x23
LBB0_10:
	bl	_ERR_PTR
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
LBB0_12:
	lsl	w8, w22, #8
	str	w8, [x20, #4]
Lloh9:
	adrp	x8, _MAX1668_REG_STAT2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX1668_REG_STAT2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	b	LBB0_10
LBB0_14:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x9, _jiffies@GOTPAGE
Lloh13:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
	orr	w8, w8, w21
Lloh14:
	ldr	x9, [x9]
	str	x9, [x20, #16]
	mov	w9, #1
	stp	w9, w8, [x20]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_MAX1668_REG_STAT1,4,2          ; @MAX1668_REG_STAT1
	.comm	_MAX1668_REG_STAT2,4,2          ; @MAX1668_REG_STAT2
	.no_dead_strip	_max1668_update_device
.subsections_via_symbols
