	.file	"extr_it87_wdt.c__wdt_update_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_wdt_update_timeout, @function
_wdt_update_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	movzx	edi, BYTE PTR WDT_KRST[rip]
	mov	eax, 0
	cmp	QWORD PTR testmode[rip], 0
	cmovne	edi, eax
	cmp	DWORD PTR max_units[rip], ebx
	jb	.L3
	or	dil, BYTE PTR WDT_TOV1[rip]
.L4:
	mov	rax, QWORD PTR IT8721_ID[rip]
	cmp	QWORD PTR chip_type[rip], rax
	je	.L5
	or	dil, BYTE PTR WDT_PWROK[rip]
.L5:
	mov	esi, DWORD PTR WDTCFG[rip]
	movzx	edi, dil
	call	superio_outb@PLT
	mov	esi, DWORD PTR WDTVALLSB[rip]
	mov	edi, ebx
	call	superio_outb@PLT
	cmp	DWORD PTR max_units[rip], 255
	ja	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, 2290649225
	imul	rbx, rax
	shr	rbx, 37
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	shr	ebx, 8
	mov	esi, DWORD PTR WDTVALMSB[rip]
	mov	edi, ebx
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	superio_outb@PLT
	.cfi_endproc
.LFE0:
	.size	_wdt_update_timeout, .-_wdt_update_timeout
	.comm	testmode,8,8
	.comm	max_units,4,4
	.comm	chip_type,8,8
	.comm	WDT_TOV1,1,1
	.comm	WDT_PWROK,1,1
	.comm	WDT_KRST,1,1
	.comm	WDTVALMSB,4,4
	.comm	WDTVALLSB,4,4
	.comm	WDTCFG,4,4
	.comm	IT8721_ID,8,8
	.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_it87_wdt.c__wdt_update_timeout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_wdt_update_timeout, %function
_wdt_update_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L11
	mov	r4, r0
	ldr	r2, [r2]
	ldr	r3, .L11+4
	cmp	r2, #0
	ldrb	r0, [r3]	@ zero_extendqisi2
	movne	r0, #0
	ldr	r5, .L11+8
	ldr	r3, [r5]
	cmp	r3, r4
	ldrcs	r3, .L11+12
	ldrcc	r3, .L11+16
	ldrbcs	r3, [r3]	@ zero_extendqisi2
	umullcc	r2, r4, r3, r4
	orrcs	r0, r0, r3
	ldr	r2, .L11+20
	ldr	r3, .L11+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	lsrcc	r4, r4, #5
	cmp	r2, r3
	ldrne	r3, .L11+28
	ldrbne	r3, [r3]	@ zero_extendqisi2
	orrne	r0, r0, r3
	ldr	r3, .L11+32
	ldr	r1, [r3]
	bl	superio_outb
	ldr	r3, .L11+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	superio_outb
	ldr	r3, [r5]
	cmp	r3, #255
	popls	{r4, r5, r6, pc}
	ldr	r3, .L11+40
	lsr	r0, r4, #8
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	superio_outb
.L12:
	.align	2
.L11:
	.word	testmode
	.word	WDT_KRST
	.word	max_units
	.word	WDT_TOV1
	.word	-2004318071
	.word	chip_type
	.word	IT8721_ID
	.word	WDT_PWROK
	.word	WDTCFG
	.word	WDTVALLSB
	.word	WDTVALMSB
	.size	_wdt_update_timeout, .-_wdt_update_timeout
	.comm	testmode,4,4
	.comm	max_units,4,4
	.comm	chip_type,4,4
	.comm	WDT_TOV1,1,1
	.comm	WDT_PWROK,1,1
	.comm	WDT_KRST,1,1
	.comm	WDTVALMSB,4,4
	.comm	WDTVALLSB,4,4
	.comm	WDTCFG,4,4
	.comm	IT8721_ID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
