	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max6697_update_device
_max6697_update_device:                 ## @max6697_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, %r12
	movq	48(%rax), %r13
	leaq	20(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	24(%r12), %rbx
	movl	40(%r12), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_20
LBB0_2:
	movq	32(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	_MAX6697_TEMP_CRIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	32(%r12), %rax
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%rax), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %eax
	movl	$1, %r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	btl	%r14d, %eax
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX6697_REG_TEMP_EXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	_MAX6697_TEMP_EXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, (%rax,%rcx,4)
	movq	%rbx, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX6697_REG_TEMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	_MAX6697_TEMP_INPUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	_MAX6697_REG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	_MAX6697_TEMP_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rax,%rcx,4)
	movq	32(%r12), %rax
	testl	%r15d, 8(%rax)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX6697_REG_CRIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
	jmp	LBB0_10
LBB0_16:
	xorl	%edi, %edi
	callq	_MAX6697_REG_STAT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movq	%r13, %r14
	movl	%eax, %r13d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	movl	%r13d, %ebx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.17:
	movl	$1, %edi
	callq	_MAX6697_REG_STAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	movl	%r15d, %ebx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.18:
	movl	$2, %edi
	callq	_MAX6697_REG_STAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
LBB0_10:
	movl	%ebx, %edi
LBB0_7:
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r13d, %edi
	jmp	LBB0_7
LBB0_19:
	shll	$16, %r13d
	shll	$8, %r15d
	orl	%r13d, %r15d
	orl	%r15d, %ebx
	movl	%ebx, 16(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movl	$1, (%r12)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MAX6697_REG_TEMP_EXT,8,3       ## @MAX6697_REG_TEMP_EXT
	.comm	_MAX6697_TEMP_EXT,8,3           ## @MAX6697_TEMP_EXT
	.comm	_MAX6697_REG_TEMP,8,3           ## @MAX6697_REG_TEMP
	.comm	_MAX6697_TEMP_INPUT,8,3         ## @MAX6697_TEMP_INPUT
	.comm	_MAX6697_REG_MAX,8,3            ## @MAX6697_REG_MAX
	.comm	_MAX6697_TEMP_MAX,8,3           ## @MAX6697_TEMP_MAX
	.comm	_MAX6697_REG_CRIT,8,3           ## @MAX6697_REG_CRIT
	.comm	_MAX6697_TEMP_CRIT,8,3          ## @MAX6697_TEMP_CRIT
	.no_dead_strip	_max6697_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max6697_update_device
_max6697_update_device:                 ; @max6697_update_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #48]
	add	x23, x0, #20
	mov	x0, x23
	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	x22, [x8]
	ldr	x19, [x20, #24]
	ldr	w0, [x20, #40]
	bl	_msecs_to_jiffies
	add	x1, x0, x19
	mov	x0, x22
	bl	_time_after
	cbz	w0, LBB0_20
LBB0_2:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x8, [x20, #32]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x23, #0
	mov	w24, #1
Lloh3:
	adrp	x25, _MAX6697_REG_TEMP@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX6697_REG_TEMP@GOTPAGEOFF]
Lloh5:
	adrp	x26, _MAX6697_TEMP_INPUT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MAX6697_TEMP_INPUT@GOTPAGEOFF]
Lloh7:
	adrp	x27, _MAX6697_REG_MAX@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MAX6697_REG_MAX@GOTPAGEOFF]
Lloh9:
	adrp	x28, _MAX6697_TEMP_MAX@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MAX6697_TEMP_MAX@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23, lsl #3]
Lloh11:
	adrp	x9, _MAX6697_TEMP_CRIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX6697_TEMP_CRIT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	str	w22, [x8, x9, lsl #2]
	ldr	x8, [x20, #32]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x8, #4]
	lsl	w19, w24, w23
	tst	w8, w19
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _MAX6697_REG_TEMP_EXT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX6697_REG_TEMP_EXT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23, lsl #3]
Lloh17:
	adrp	x9, _MAX6697_TEMP_EXT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX6697_TEMP_EXT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	w22, [x8, x9, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x26]
	str	w22, [x8, x9, lsl #2]
	ldr	x8, [x27]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x28]
	str	w22, [x8, x9, lsl #2]
	ldr	x8, [x20, #32]
	ldr	w9, [x8, #8]
	tst	w9, w19
	b.eq	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x8, _MAX6697_REG_CRIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX6697_REG_CRIT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_13:
	mov	x0, x22
	b	LBB0_18
LBB0_14:
	mov	w0, #0
	bl	_MAX6697_REG_STAT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	mov	x24, x22
	cbnz	x0, LBB0_17
; %bb.15:
	mov	w0, #1
	bl	_MAX6697_REG_STAT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	mov	x24, x23
	cbnz	x0, LBB0_17
; %bb.16:
	mov	w0, #2
	bl	_MAX6697_REG_STAT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_21
LBB0_17:
	mov	x0, x24
LBB0_18:
	bl	_ERR_PTR
	mov	x20, x0
LBB0_19:
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
LBB0_20:
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	lsl	w8, w22, #16
	orr	w8, w8, w23, lsl #8
	orr	w8, w24, w8
	str	w8, [x20, #16]
Lloh23:
	adrp	x8, _jiffies@GOTPAGE
Lloh24:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MAX6697_REG_TEMP_EXT,8,3       ; @MAX6697_REG_TEMP_EXT
	.comm	_MAX6697_TEMP_EXT,8,3           ; @MAX6697_TEMP_EXT
	.comm	_MAX6697_REG_TEMP,8,3           ; @MAX6697_REG_TEMP
	.comm	_MAX6697_TEMP_INPUT,8,3         ; @MAX6697_TEMP_INPUT
	.comm	_MAX6697_REG_MAX,8,3            ; @MAX6697_REG_MAX
	.comm	_MAX6697_TEMP_MAX,8,3           ; @MAX6697_TEMP_MAX
	.comm	_MAX6697_REG_CRIT,8,3           ; @MAX6697_REG_CRIT
	.comm	_MAX6697_TEMP_CRIT,8,3          ; @MAX6697_TEMP_CRIT
	.no_dead_strip	_max6697_update_device
.subsections_via_symbols
