	.file	"extr_osl.c_acpi_os_read_pci_configuration.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_os_read_pci_configuration
	.type	acpi_os_read_pci_configuration, @function
acpi_os_read_pci_configuration:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L13
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	ecx, 16
	je	.L6
	cmp	ecx, 32
	je	.L7
	mov	eax, DWORD PTR AE_ERROR[rip]
	cmp	ecx, 8
	je	.L14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r13d, 4
.L4:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	PCI_DEVFN@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	r9, rbp
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, eax
	call	raw_pci_read@PLT
	test	eax, eax
	mov	eax, DWORD PTR AE_ERROR[rip]
	cmove	eax, DWORD PTR AE_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r13d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r13d, 2
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR AE_BAD_PARAMETER[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	acpi_os_read_pci_configuration, .-acpi_os_read_pci_configuration
	.comm	AE_OK,4,4
	.comm	AE_ERROR,4,4
	.comm	AE_BAD_PARAMETER,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_osl.c_acpi_os_read_pci_configuration.c"
	.text
	.align	2
	.global	acpi_os_read_pci_configuration
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_os_read_pci_configuration, %function
acpi_os_read_pci_configuration:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r2, #0
	sub	sp, sp, #8
	beq	.L12
	cmp	r3, #16
	mov	lr, r0
	mov	r4, r1
	beq	.L6
	cmp	r3, #32
	beq	.L7
	cmp	r3, #8
	beq	.L8
.L10:
	ldr	r3, .L13
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r6, #4
.L4:
	ldr	r1, [lr]
	ldr	r0, [lr, #4]
	ldr	r7, [lr, #12]
	ldr	r8, [lr, #8]
	bl	PCI_DEVFN
	mov	r1, r8
	mov	r2, r0
	mov	r3, r4
	mov	r0, r7
	str	r5, [sp, #4]
	str	r6, [sp]
	bl	raw_pci_read
	cmp	r0, #0
	bne	.L10
	ldr	r3, .L13+4
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r6, #1
	b	.L4
.L6:
	mov	r6, #2
	b	.L4
.L12:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	AE_ERROR
	.word	AE_OK
	.word	AE_BAD_PARAMETER
	.size	acpi_os_read_pci_configuration, .-acpi_os_read_pci_configuration
	.comm	AE_OK,4,4
	.comm	AE_ERROR,4,4
	.comm	AE_BAD_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
