	.file	"extr_quirks.c_ich6_lpc_acpi_gpio.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ICH6 ACPI/GPIO/TCO"
.LC1:
	.string	"ICH6 GPIO"
	.text
	.p2align 4
	.type	ich6_lpc_acpi_gpio, @function
ich6_lpc_acpi_gpio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR ICH_ACPI_CNTL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rdx, r12
	call	pci_read_config_byte@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR ICH6_ACPI_EN[rip], eax
	jne	.L13
.L2:
	mov	esi, DWORD PTR ICH6_GPIO_CNTL[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	pci_read_config_byte@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR ICH6_GPIO_EN[rip], eax
	jne	.L14
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rcx, QWORD PTR PCI_BRIDGE_RESOURCES[rip]
	mov	esi, DWORD PTR ICH_PMBASE[rip]
	mov	edx, 128
	mov	rdi, rbp
	lea	r8, .LC0[rip]
	call	quirk_io_region@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR PCI_BRIDGE_RESOURCES[rip]
	mov	esi, DWORD PTR ICH6_GPIOBASE[rip]
	mov	edx, 64
	mov	rdi, rbp
	lea	r8, .LC1[rip]
	lea	rcx, 1[rax]
	call	quirk_io_region@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ich6_lpc_acpi_gpio, .-ich6_lpc_acpi_gpio
	.comm	PCI_BRIDGE_RESOURCES,8,8
	.comm	ICH_PMBASE,4,4
	.comm	ICH_ACPI_CNTL,4,4
	.comm	ICH6_GPIO_EN,4,4
	.comm	ICH6_GPIO_CNTL,4,4
	.comm	ICH6_GPIOBASE,4,4
	.comm	ICH6_ACPI_EN,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_quirks.c_ich6_lpc_acpi_gpio.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ICH6 ACPI/GPIO/TCO\000"
	.align	2
.LC1:
	.ascii	"ICH6 GPIO\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ich6_lpc_acpi_gpio, %function
ich6_lpc_acpi_gpio:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	ldr	r1, [r3]
	ldr	r3, .L16+4
	add	r2, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	pci_read_config_byte
	ldr	r3, .L16+8
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L13
.L2:
	ldr	r3, .L16+12
	add	r2, sp, #8
	ldr	r1, [r3]
	mov	r0, r4
	bl	pci_read_config_byte
	ldr	r3, .L16+16
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L13:
	ldr	r2, .L16+20
	ldr	r3, .L16+24
	ldr	r1, .L16+28
	ldr	r3, [r3]
	ldr	r1, [r1]
	mov	r0, r4
	str	r2, [sp]
	mov	r2, #128
	bl	quirk_io_region
	b	.L2
.L14:
	ldr	r3, .L16+24
	ldr	r2, .L16+32
	ldr	r3, [r3]
	ldr	r1, .L16+36
	mov	r0, r4
	ldr	r1, [r1]
	add	r3, r3, #1
	str	r2, [sp]
	mov	r2, #64
	bl	quirk_io_region
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	ICH_ACPI_CNTL
	.word	.LC2
	.word	ICH6_ACPI_EN
	.word	ICH6_GPIO_CNTL
	.word	ICH6_GPIO_EN
	.word	.LC0
	.word	PCI_BRIDGE_RESOURCES
	.word	ICH_PMBASE
	.word	.LC1
	.word	ICH6_GPIOBASE
	.size	ich6_lpc_acpi_gpio, .-ich6_lpc_acpi_gpio
	.comm	PCI_BRIDGE_RESOURCES,4,4
	.comm	ICH_PMBASE,4,4
	.comm	ICH_ACPI_CNTL,4,4
	.comm	ICH6_GPIO_EN,4,4
	.comm	ICH6_GPIO_CNTL,4,4
	.comm	ICH6_GPIOBASE,4,4
	.comm	ICH6_ACPI_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
