	.file	"extr_alim7101_wdt.c_wdt_change.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wdt_change, @function
wdt_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR ALI_7101_WDT[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 7[rsp]
	mov	rdx, r12
	call	pci_read_config_byte@PLT
	cmp	DWORD PTR WDT_ENABLE[rip], ebx
	je	.L9
	movzx	edx, BYTE PTR ALI_WDT_ARM[rip]
	mov	esi, DWORD PTR ALI_7101_WDT[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	not	edx
	and	dl, BYTE PTR 7[rsp]
	movsx	edx, dl
	call	pci_write_config_byte@PLT
	cmp	QWORD PTR use_gpio[rip], 0
	jne	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR ALI_7101_GPIO_O[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	mov	rdx, r12
	call	pci_read_config_byte@PLT
	movzx	edx, BYTE PTR 7[rsp]
	mov	esi, DWORD PTR ALI_7101_GPIO_O[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	or	edx, 32
	movsx	edx, dl
	call	pci_write_config_byte@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	edx, BYTE PTR 7[rsp]
	mov	esi, DWORD PTR ALI_7101_WDT[rip]
	or	dl, BYTE PTR ALI_WDT_ARM[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	movsx	edx, dl
	call	pci_write_config_byte@PLT
	cmp	QWORD PTR use_gpio[rip], 0
	je	.L1
	mov	esi, DWORD PTR ALI_7101_GPIO_O[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	mov	rdx, r12
	call	pci_read_config_byte@PLT
	movzx	edx, BYTE PTR 7[rsp]
	mov	esi, DWORD PTR ALI_7101_GPIO_O[rip]
	mov	edi, DWORD PTR alim7101_pmu[rip]
	and	edx, -33
	movsx	edx, dl
	call	pci_write_config_byte@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wdt_change, .-wdt_change
	.comm	use_gpio,8,8
	.comm	alim7101_pmu,4,4
	.comm	WDT_ENABLE,4,4
	.comm	ALI_WDT_ARM,1,1
	.comm	ALI_7101_WDT,4,4
	.comm	ALI_7101_GPIO_O,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_alim7101_wdt.c_wdt_change.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wdt_change, %function
wdt_change:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L15
	ldr	r5, .L15+4
	ldr	r3, .L15+8
	sub	sp, sp, #8
	ldr	r1, [r6]
	ldr	r0, [r5]
	add	r2, sp, #3
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pci_read_config_byte
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L12
	ldr	r2, .L15+16
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	ldr	r1, [r6]
	bic	r2, r3, r2
	ldr	r0, [r5]
	bl	pci_write_config_byte
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
.L1:
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r4, .L15+24
	add	r2, sp, #3
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	pci_read_config_byte
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r1, [r4]
	ldr	r0, [r5]
	orr	r2, r2, #32
	bl	pci_write_config_byte
	b	.L1
.L12:
	ldr	r3, .L15+16
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [r6]
	orr	r2, r2, r3
	ldr	r0, [r5]
	bl	pci_write_config_byte
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	ldr	r4, .L15+24
	add	r2, sp, #3
	ldr	r1, [r4]
	ldr	r0, [r5]
	bl	pci_read_config_byte
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r1, [r4]
	ldr	r0, [r5]
	and	r2, r2, #223
	bl	pci_write_config_byte
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	ALI_7101_WDT
	.word	alim7101_pmu
	.word	.LC0
	.word	WDT_ENABLE
	.word	ALI_WDT_ARM
	.word	use_gpio
	.word	ALI_7101_GPIO_O
	.size	wdt_change, .-wdt_change
	.comm	use_gpio,4,4
	.comm	alim7101_pmu,4,4
	.comm	WDT_ENABLE,4,4
	.comm	ALI_WDT_ARM,1,1
	.comm	ALI_7101_WDT,4,4
	.comm	ALI_7101_GPIO_O,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
