	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp401_update_device
_tmp401_update_device:                  ## @tmp401_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), %r15
	leaq	40(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r12), %rbx
	movl	44(%r12), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	16(%r12), %rax
	movq	_tmp432@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	24(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	movq	_TMP432_STATUS_REG@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_10
LBB0_7:
	movq	_TMP401_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_TMP401_STATUS_REMOTE_OPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	shrl	%edx
	movq	24(%r12), %rcx
	movl	%edx, (%rcx)
	movq	_TMP401_STATUS_REMOTE_LOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	shrl	$2, %edx
	movq	_TMP401_STATUS_LOCAL_LOW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	shrl	$5, %esi
	orl	%edx, %esi
	movl	%esi, 4(%rcx)
	movq	_TMP401_STATUS_REMOTE_HIGH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	shrl	$3, %edx
	movq	_TMP401_STATUS_LOCAL_HIGH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	shrl	$6, %esi
	orl	%edx, %esi
	movl	%esi, 8(%rcx)
	movq	_TMP401_STATUS_LOCAL_CRIT@GOTPCREL(%rip), %rdx
	movq	_TMP401_STATUS_REMOTE_CRIT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	andl	%eax, %esi
	movl	%esi, 12(%rcx)
LBB0_10:
	movq	_TMP401_CONFIG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.11:
	movl	%eax, 32(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tmp401_update_device_reg16
	testl	%eax, %eax
	js	LBB0_8
## %bb.12:
	movq	_TMP401_TEMP_CRIT_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.13:
	movl	%eax, 36(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	$1, 8(%r12)
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
	jmp	LBB0_14
LBB0_1:
	cmpl	$0, 8(%r12)
	je	LBB0_2
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_tmp432,8,3                     ## @tmp432
	.comm	_TMP401_STATUS,4,2              ## @TMP401_STATUS
	.comm	_TMP401_STATUS_REMOTE_OPEN,4,2  ## @TMP401_STATUS_REMOTE_OPEN
	.comm	_TMP401_STATUS_REMOTE_LOW,4,2   ## @TMP401_STATUS_REMOTE_LOW
	.comm	_TMP401_STATUS_LOCAL_LOW,4,2    ## @TMP401_STATUS_LOCAL_LOW
	.comm	_TMP401_STATUS_REMOTE_HIGH,4,2  ## @TMP401_STATUS_REMOTE_HIGH
	.comm	_TMP401_STATUS_LOCAL_HIGH,4,2   ## @TMP401_STATUS_LOCAL_HIGH
	.comm	_TMP401_STATUS_LOCAL_CRIT,4,2   ## @TMP401_STATUS_LOCAL_CRIT
	.comm	_TMP401_STATUS_REMOTE_CRIT,4,2  ## @TMP401_STATUS_REMOTE_CRIT
	.comm	_TMP432_STATUS_REG,8,3          ## @TMP432_STATUS_REG
	.comm	_TMP401_CONFIG_READ,4,2         ## @TMP401_CONFIG_READ
	.comm	_TMP401_TEMP_CRIT_HYST,4,2      ## @TMP401_TEMP_CRIT_HYST
	.no_dead_strip	_tmp401_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp401_update_device
_tmp401_update_device:                  ; @tmp401_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, #40
	mov	x0, x19
	bl	_mutex_lock
	ldr	x22, [x20]
	ldr	w0, [x20, #44]
	bl	_msecs_to_jiffies
	add	x1, x0, x22
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_time_after
	cbz	x0, LBB0_13
LBB0_1:
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x9, _tmp432@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tmp432@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x23, #0
Lloh5:
	adrp	x24, _TMP432_STATUS_REG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TMP432_STATUS_REG@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _TMP401_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TMP401_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_12
; %bb.7:
Lloh10:
	adrp	x8, _TMP401_STATUS_REMOTE_OPEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TMP401_STATUS_REMOTE_OPEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
	lsr	w8, w8, #1
	ldr	x9, [x20, #24]
Lloh13:
	adrp	x10, _TMP401_STATUS_REMOTE_LOW@GOTPAGE
Lloh14:
	ldr	x10, [x10, _TMP401_STATUS_REMOTE_LOW@GOTPAGEOFF]
	str	w8, [x9]
Lloh15:
	ldr	w8, [x10]
	and	w8, w8, w0
Lloh16:
	adrp	x10, _TMP401_STATUS_LOCAL_LOW@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TMP401_STATUS_LOCAL_LOW@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	and	w10, w10, w0
	lsr	w10, w10, #5
	orr	w8, w10, w8, lsr #2
Lloh19:
	adrp	x10, _TMP401_STATUS_REMOTE_HIGH@GOTPAGE
Lloh20:
	ldr	x10, [x10, _TMP401_STATUS_REMOTE_HIGH@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	and	w10, w10, w0
Lloh22:
	adrp	x11, _TMP401_STATUS_LOCAL_HIGH@GOTPAGE
Lloh23:
	ldr	x11, [x11, _TMP401_STATUS_LOCAL_HIGH@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	and	w11, w11, w0
	lsr	w11, w11, #6
	orr	w10, w11, w10, lsr #3
	stp	w8, w10, [x9, #4]
Lloh25:
	adrp	x8, _TMP401_STATUS_LOCAL_CRIT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TMP401_STATUS_LOCAL_CRIT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x10, _TMP401_STATUS_REMOTE_CRIT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _TMP401_STATUS_REMOTE_CRIT@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w8, w10, w8
	and	w8, w8, w0
	str	w8, [x9, #12]
LBB0_8:
Lloh31:
	adrp	x8, _TMP401_CONFIG_READ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TMP401_CONFIG_READ@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_12
; %bb.9:
	str	w0, [x20, #32]
	mov	x0, x21
	mov	x1, x20
	bl	_tmp401_update_device_reg16
	tbnz	w0, #31, LBB0_12
; %bb.10:
Lloh34:
	adrp	x8, _TMP401_TEMP_CRIT_HYST@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TMP401_TEMP_CRIT_HYST@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_12
; %bb.11:
	str	w0, [x20, #36]
	ldr	x8, [x22]
	str	x8, [x20]
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_14
LBB0_12:
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_14
LBB0_13:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_1
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_tmp432,8,3                     ; @tmp432
	.comm	_TMP401_STATUS,4,2              ; @TMP401_STATUS
	.comm	_TMP401_STATUS_REMOTE_OPEN,4,2  ; @TMP401_STATUS_REMOTE_OPEN
	.comm	_TMP401_STATUS_REMOTE_LOW,4,2   ; @TMP401_STATUS_REMOTE_LOW
	.comm	_TMP401_STATUS_LOCAL_LOW,4,2    ; @TMP401_STATUS_LOCAL_LOW
	.comm	_TMP401_STATUS_REMOTE_HIGH,4,2  ; @TMP401_STATUS_REMOTE_HIGH
	.comm	_TMP401_STATUS_LOCAL_HIGH,4,2   ; @TMP401_STATUS_LOCAL_HIGH
	.comm	_TMP401_STATUS_LOCAL_CRIT,4,2   ; @TMP401_STATUS_LOCAL_CRIT
	.comm	_TMP401_STATUS_REMOTE_CRIT,4,2  ; @TMP401_STATUS_REMOTE_CRIT
	.comm	_TMP432_STATUS_REG,8,3          ; @TMP432_STATUS_REG
	.comm	_TMP401_CONFIG_READ,4,2         ; @TMP401_CONFIG_READ
	.comm	_TMP401_TEMP_CRIT_HYST,4,2      ; @TMP401_TEMP_CRIT_HYST
	.no_dead_strip	_tmp401_update_device
.subsections_via_symbols
