	.file	"extr_w83627hf.c_w83627hf_update_fan_div.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w83627hf_update_fan_div, @function
w83627hf_update_fan_div:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR W83781D_REG_VID_FANDIV[rip]
	mov	rbx, rdi
	call	w83627hf_read_value@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	edx, eax
	sar	eax, 6
	sar	edx, 4
	and	eax, 3
	and	edx, 3
	mov	DWORD PTR 4[rcx], eax
	mov	rax, QWORD PTR w83697hf[rip]
	mov	DWORD PTR [rcx], edx
	cmp	QWORD PTR 8[rbx], rax
	je	.L2
	mov	esi, DWORD PTR W83781D_REG_PIN[rip]
	mov	rdi, rbx
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR [rbx]
	sar	eax, 6
	and	eax, 3
	mov	DWORD PTR 8[rdx], eax
.L2:
	mov	esi, DWORD PTR W83781D_REG_VBAT[rip]
	mov	rdi, rbx
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR w83697hf[rip]
	mov	ecx, eax
	sar	ecx, 3
	and	ecx, 4
	or	DWORD PTR [rdx], ecx
	mov	ecx, eax
	sar	ecx, 4
	and	ecx, 4
	or	DWORD PTR 4[rdx], ecx
	cmp	QWORD PTR 8[rbx], rsi
	je	.L1
	sar	eax, 5
	and	eax, 4
	or	DWORD PTR 8[rdx], eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	w83627hf_update_fan_div, .-w83627hf_update_fan_div
	.comm	w83697hf,8,8
	.comm	W83781D_REG_VID_FANDIV,4,4
	.comm	W83781D_REG_VBAT,4,4
	.comm	W83781D_REG_PIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_w83627hf.c_w83627hf_update_fan_div.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83627hf_update_fan_div, %function
w83627hf_update_fan_div:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	bl	w83627hf_read_value
	ldr	r5, .L6+4
	ldr	ip, [r4, #4]
	asr	r2, r0, #4
	asr	r3, r0, #6
	ldr	r0, [r5]
	ldr	r1, [r4]
	and	r2, r2, #3
	and	r3, r3, #3
	cmp	ip, r0
	stm	r1, {r2, r3}
	beq	.L2
	ldr	r3, .L6+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	w83627hf_read_value
	ldr	r3, [r4]
	asr	r0, r0, #6
	and	r0, r0, #3
	str	r0, [r3, #8]
.L2:
	ldr	r3, .L6+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	w83627hf_read_value
	ldr	r3, [r4]
	ldr	ip, [r4, #4]
	ldr	r2, [r5]
	asr	lr, r0, #3
	cmp	ip, r2
	ldr	r1, [r3]
	asr	ip, r0, #4
	ldr	r2, [r3, #4]
	and	lr, lr, #4
	and	ip, ip, #4
	orr	r2, r2, ip
	orr	r1, r1, lr
	asrne	r0, r0, #5
	stm	r3, {r1, r2}
	ldrne	r2, [r3, #8]
	andne	r0, r0, #4
	orrne	r0, r2, r0
	strne	r0, [r3, #8]
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	W83781D_REG_VID_FANDIV
	.word	w83697hf
	.word	W83781D_REG_PIN
	.word	W83781D_REG_VBAT
	.size	w83627hf_update_fan_div, .-w83627hf_update_fan_div
	.comm	w83697hf,4,4
	.comm	W83781D_REG_VID_FANDIV,4,4
	.comm	W83781D_REG_VBAT,4,4
	.comm	W83781D_REG_PIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
