	.file	"extr_w83627ehf.c_w83627ehf_write_fan_div.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w83627ehf_write_fan_div, @function
w83627ehf_write_fan_div:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 4
	ja	.L1
	lea	rdx, .L4[rip]
	mov	esi, esi
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR W83627EHF_REG_DIODE[rip]
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR W83627EHF_REG_DIODE[rip]
	mov	rdi, rbp
	and	eax, 252
	mov	edx, DWORD PTR 12[rdx]
	and	edx, 3
	or	edx, eax
	call	w83627ehf_write_value@PLT
	mov	esi, DWORD PTR W83627EHF_REG_SMI_OVT[rip]
	mov	rdi, rbp
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR W83627EHF_REG_SMI_OVT[rip]
	mov	rdi, rbp
	and	eax, 127
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	mov	edx, DWORD PTR 12[rdx]
	sal	edx, 5
	and	edx, 128
	or	edx, eax
	jmp	w83627ehf_write_value@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR W83627EHF_REG_DIODE[rip]
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR W83627EHF_REG_DIODE[rip]
	mov	rdi, rbp
	and	eax, 115
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	mov	ecx, DWORD PTR 16[rdx]
	lea	edx, 0[0+rcx*4]
	sal	ecx, 5
	and	edx, 12
	and	ecx, 128
	or	edx, ecx
	or	edx, eax
	jmp	w83627ehf_write_value@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR W83627EHF_REG_FANDIV1[rip]
	call	w83627ehf_read_value@PLT
	mov	esi, DWORD PTR W83627EHF_REG_FANDIV1[rip]
	mov	rdi, rbp
	mov	r8d, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR 8[rbp]
	sal	edx, 4
	sar	eax, 4
	and	eax, 1
	and	edx, 48
	or	edx, eax
	mov	eax, r8d
	and	eax, 207
	or	edx, eax
	call	w83627ehf_write_value@PLT
	mov	esi, DWORD PTR W83627EHF_REG_VBAT[rip]
	mov	rdi, rbp
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	and	eax, 223
	mov	edx, DWORD PTR [rdx]
	sal	edx, 3
	and	edx, 32
.L12:
	mov	esi, DWORD PTR W83627EHF_REG_VBAT[rip]
	mov	rdi, rbp
	or	edx, eax
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	w83627ehf_write_value@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR W83627EHF_REG_FANDIV1[rip]
	call	w83627ehf_read_value@PLT
	mov	esi, DWORD PTR W83627EHF_REG_FANDIV1[rip]
	mov	rdi, rbp
	mov	r8d, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 8[rbp]
	sal	edx, 6
	sar	eax, 4
	and	eax, 1
	movzx	edx, dl
	or	edx, eax
	mov	eax, r8d
	and	eax, 63
	or	edx, eax
	call	w83627ehf_write_value@PLT
	mov	esi, DWORD PTR W83627EHF_REG_VBAT[rip]
	mov	rdi, rbp
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	and	eax, 191
	mov	edx, DWORD PTR 4[rdx]
	sal	edx, 4
	and	edx, 64
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR W83627EHF_REG_FANDIV2[rip]
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR W83627EHF_REG_FANDIV2[rip]
	mov	rdi, rbp
	and	eax, 63
	mov	edx, DWORD PTR 8[rdx]
	sal	edx, 6
	movzx	edx, dl
	or	edx, eax
	call	w83627ehf_write_value@PLT
	mov	esi, DWORD PTR W83627EHF_REG_VBAT[rip]
	mov	rdi, rbp
	call	w83627ehf_read_value@PLT
	mov	rdx, QWORD PTR 0[rbp]
	and	eax, 127
	mov	edx, DWORD PTR 8[rdx]
	sal	edx, 5
	and	edx, 128
	jmp	.L12
.L1:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	w83627ehf_write_fan_div, .-w83627ehf_write_fan_div
	.comm	W83627EHF_REG_VBAT,4,4
	.comm	W83627EHF_REG_SMI_OVT,4,4
	.comm	W83627EHF_REG_FANDIV2,4,4
	.comm	W83627EHF_REG_FANDIV1,4,4
	.comm	W83627EHF_REG_DIODE,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_w83627ehf.c_w83627ehf_write_fan_div.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83627ehf_write_fan_div, %function
w83627ehf_write_fan_div:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L1
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r5, .L12
	ldr	r1, [r5]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r2, r0, #115
	ldr	r3, [r3, #16]
	mov	r0, r4
	lsl	ip, r3, #2
	lsl	r3, r3, #5
	and	ip, ip, #12
	and	r3, r3, #128
	orr	r3, ip, r3
	ldr	r1, [r5]
	orr	r2, r3, r2
	pop	{r4, r5, r6, lr}
	b	w83627ehf_write_value
.L8:
	ldr	r5, .L12+4
	ldr	r6, .L12+8
	ldr	r1, [r5]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	lsl	r1, r1, #27
	lsl	r3, r3, #4
	and	r3, r3, #48
	orr	r3, r3, r1, lsr #31
	and	r2, r0, #207
	orr	r2, r3, r2
	ldr	r1, [r5]
	mov	r0, r4
	bl	w83627ehf_write_value
	ldr	r1, [r6]
	mov	r0, r4
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r2, r0, #223
	ldr	r3, [r3]
	mov	r0, r4
	lsl	r3, r3, #3
	and	r3, r3, #32
	ldr	r1, [r6]
	orr	r2, r3, r2
	pop	{r4, r5, r6, lr}
	b	w83627ehf_write_value
.L7:
	ldr	r5, .L12+4
	ldr	r6, .L12+8
	ldr	r1, [r5]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	ldr	r3, [r3, #4]
	lsl	r1, r1, #27
	lsl	r3, r3, #6
	and	r3, r3, #255
	orr	r3, r3, r1, lsr #31
	and	r2, r0, #63
	orr	r2, r3, r2
	ldr	r1, [r5]
	mov	r0, r4
	bl	w83627ehf_write_value
	ldr	r1, [r6]
	mov	r0, r4
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r2, r0, #191
	ldr	r3, [r3, #4]
	mov	r0, r4
	lsl	r3, r3, #4
	and	r3, r3, #64
	ldr	r1, [r6]
	orr	r2, r3, r2
	pop	{r4, r5, r6, lr}
	b	w83627ehf_write_value
.L6:
	ldr	r6, .L12+12
	ldr	r5, .L12+8
	ldr	r1, [r6]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r2, r0, #63
	ldr	r3, [r3, #8]
	ldr	r1, [r6]
	lsl	r3, r3, #6
	and	r3, r3, #255
	orr	r2, r3, r2
	mov	r0, r4
	bl	w83627ehf_write_value
	mov	r0, r4
	ldr	r1, [r5]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r2, r0, #127
	ldr	r3, [r3, #8]
.L10:
	lsl	r3, r3, #5
	and	r3, r3, #128
	mov	r0, r4
	ldr	r1, [r5]
	orr	r2, r3, r2
	pop	{r4, r5, r6, lr}
	b	w83627ehf_write_value
.L5:
	ldr	r6, .L12
	ldr	r5, .L12+16
	ldr	r1, [r6]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r0, r0, #252
	ldr	r2, [r3, #12]
	ldr	r1, [r6]
	and	r2, r2, #3
	orr	r2, r2, r0
	mov	r0, r4
	bl	w83627ehf_write_value
	mov	r0, r4
	ldr	r1, [r5]
	bl	w83627ehf_read_value
	ldr	r3, [r4]
	and	r2, r0, #127
	ldr	r3, [r3, #12]
	b	.L10
.L1:
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	W83627EHF_REG_DIODE
	.word	W83627EHF_REG_FANDIV1
	.word	W83627EHF_REG_VBAT
	.word	W83627EHF_REG_FANDIV2
	.word	W83627EHF_REG_SMI_OVT
	.size	w83627ehf_write_fan_div, .-w83627ehf_write_fan_div
	.comm	W83627EHF_REG_VBAT,4,4
	.comm	W83627EHF_REG_SMI_OVT,4,4
	.comm	W83627EHF_REG_FANDIV2,4,4
	.comm	W83627EHF_REG_FANDIV1,4,4
	.comm	W83627EHF_REG_DIODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
