	.file	"extr_atl1e_main.c_atl1e_setup_pcicmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atl1e_setup_pcicmd, @function
atl1e_setup_pcicmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	pci_read_config_word@PLT
	mov	edx, DWORD PTR PCI_COMMAND_INTX_DISABLE[rip]
	or	edx, DWORD PTR PCI_COMMAND_IO[rip]
	mov	rdi, rbp
	mov	eax, DWORD PTR PCI_COMMAND_MEMORY[rip]
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	not	edx
	or	eax, DWORD PTR PCI_COMMAND_MASTER[rip]
	and	edx, DWORD PTR 4[rsp]
	or	edx, eax
	mov	DWORD PTR 4[rsp], edx
	call	pci_write_config_word@PLT
	mov	esi, DWORD PTR REG_PM_CTRLSTAT[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	mov	edi, 1
	call	msleep@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	atl1e_setup_pcicmd, .-atl1e_setup_pcicmd
	.comm	REG_PM_CTRLSTAT,4,4
	.comm	PCI_COMMAND_MEMORY,4,4
	.comm	PCI_COMMAND_MASTER,4,4
	.comm	PCI_COMMAND_IO,4,4
	.comm	PCI_COMMAND_INTX_DISABLE,4,4
	.comm	PCI_COMMAND,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_atl1e_main.c_atl1e_setup_pcicmd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atl1e_setup_pcicmd, %function
atl1e_setup_pcicmd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r5, .L6
	sub	sp, sp, #12
	ldr	r3, .L6+4
	mov	r2, sp
	ldr	r1, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pci_read_config_word
	ldr	r2, .L6+8
	ldr	r1, .L6+12
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, .L6+16
	ldr	r0, .L6+20
	orr	r1, r2, r1
	ldr	r0, [r0]
	ldr	r2, [sp]
	ldr	r3, [r3]
	bic	r2, r2, r1
	orr	r3, r3, r0
	orr	r2, r2, r3
	ldr	r1, [r5]
	mov	r0, r4
	str	r2, [sp]
	bl	pci_write_config_word
	ldr	r3, .L6+24
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	pci_write_config_dword
	mov	r0, #1
	bl	msleep
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	PCI_COMMAND
	.word	.LC0
	.word	PCI_COMMAND_INTX_DISABLE
	.word	PCI_COMMAND_IO
	.word	PCI_COMMAND_MEMORY
	.word	PCI_COMMAND_MASTER
	.word	REG_PM_CTRLSTAT
	.size	atl1e_setup_pcicmd, .-atl1e_setup_pcicmd
	.comm	REG_PM_CTRLSTAT,4,4
	.comm	PCI_COMMAND_MEMORY,4,4
	.comm	PCI_COMMAND_MASTER,4,4
	.comm	PCI_COMMAND_IO,4,4
	.comm	PCI_COMMAND_INTX_DISABLE,4,4
	.comm	PCI_COMMAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
