	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adt7411_update_vref
_adt7411_update_vref:                   ## @adt7411_update_vref
	.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
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %rsi
	movq	16(%rax), %r12
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_time_after_eq
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_ADT7411_REG_CFG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_ADT7411_CFG3_REF_VDD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_hwmon_in_input@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_adt7411_read_in_vdd
	testl	%eax, %eax
	jns	LBB0_7
LBB0_5:
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_6:
	movl	$2250, (%rbx)                   ## imm = 0x8CA
LBB0_7:
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r13), %rax
	movq	%rax, 8(%rbx)
LBB0_8:
	movl	%r14d, %eax
	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	_ADT7411_REG_CFG3,4,2           ## @ADT7411_REG_CFG3
	.comm	_ADT7411_CFG3_REF_VDD,4,2       ## @ADT7411_CFG3_REF_VDD
	.comm	_hwmon_in_input,4,2             ## @hwmon_in_input
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_adt7411_update_vref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adt7411_update_vref
_adt7411_update_vref:                   ; @adt7411_update_vref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldp	x1, x21, [x19, #8]
	bl	_time_after_eq
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _ADT7411_REG_CFG3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADT7411_REG_CFG3@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _ADT7411_CFG3_REF_VDD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADT7411_CFG3_REF_VDD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _hwmon_in_input@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hwmon_in_input@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_adt7411_read_in_vdd
	tbz	w0, #31, LBB0_5
	b	LBB0_6
LBB0_4:
	mov	w8, #2250
	str	w8, [x19]
LBB0_5:
	mov	w0, #0
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _HZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ADT7411_REG_CFG3,4,2           ; @ADT7411_REG_CFG3
	.comm	_ADT7411_CFG3_REF_VDD,4,2       ; @ADT7411_CFG3_REF_VDD
	.comm	_hwmon_in_input,4,2             ; @hwmon_in_input
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_adt7411_update_vref
.subsections_via_symbols
