	.file	"extr_sch311x_wdt.c_sch311x_wdt_set_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sch311x_wdt_set_timeout, @function
sch311x_wdt_set_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	mov	edi, 128
	cmp	ebp, 255
	jle	.L2
	movsx	rax, ebp
	xor	edi, edi
	imul	rax, rax, -2004318071
	shr	rax, 32
	add	eax, ebp
	sar	ebp, 31
	sar	eax, 5
	sub	eax, ebp
	mov	ebp, eax
.L2:
	mov	rsi, QWORD PTR WDT_TIME_OUT[rip]
	add	rsi, QWORD PTR sch311x_wdt_data[rip]
	call	outb@PLT
	mov	rsi, QWORD PTR WDT_VAL[rip]
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	add	rsi, QWORD PTR sch311x_wdt_data[rip]
	jmp	outb@PLT
	.cfi_endproc
.LFE0:
	.size	sch311x_wdt_set_timeout, .-sch311x_wdt_set_timeout
	.comm	sch311x_wdt_data,8,8
	.comm	WDT_VAL,8,8
	.comm	WDT_TIME_OUT,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_sch311x_wdt.c_sch311x_wdt_set_timeout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sch311x_wdt_set_timeout, %function
sch311x_wdt_set_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	cmp	r0, #255
	ldrgt	r0, .L6
	asrgt	r3, r4, #31
	smullgt	r2, r0, r4, r0
	addgt	r4, r0, r4
	rsbgt	r4, r3, r4, asr #5
	ldr	r5, .L6+4
	ldr	r3, .L6+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	movgt	r0, #0
	add	r1, r1, r3
	movle	r0, #128
	bl	outb
	ldr	r3, .L6+12
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	add	r1, r1, r3
	b	outb
.L7:
	.align	2
.L6:
	.word	-2004318071
	.word	sch311x_wdt_data
	.word	WDT_TIME_OUT
	.word	WDT_VAL
	.size	sch311x_wdt_set_timeout, .-sch311x_wdt_set_timeout
	.comm	sch311x_wdt_data,4,4
	.comm	WDT_VAL,4,4
	.comm	WDT_TIME_OUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
