	.file	"extr_leon_pci_grpci1.c_grpci1_cfg_r32.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	grpci1_cfg_r32, @function
grpci1_cfg_r32:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, DWORD PTR EINVAL[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	neg	r13d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	cl, 3
	jne	.L1
	mov	rbp, rdi
	mov	r14d, esi
	mov	ebx, ecx
	mov	r12, r8
	test	esi, esi
	je	.L10
	cmp	DWORD PTR TGT[rip], esi
	je	.L7
	sal	edx, 8
	sal	r14d, 23
	mov	r13d, edx
.L5:
	mov	rax, QWORD PTR 8[rbp]
	and	ebx, 252
	mov	edi, DWORD PTR 4[rax]
	call	REGLOAD@PLT
	and	eax, -125829121
	mov	esi, eax
	mov	rax, QWORD PTR 8[rbp]
	or	esi, r14d
	mov	edi, DWORD PTR 4[rax]
	call	REGSTORE@PLT
	mov	edi, DWORD PTR 0[rbp]
	or	edi, ebx
	or	edi, r13d
	call	LEON3_BYPASS_LOAD_PA@PLT
	mov	r14d, eax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	REGLOAD@PLT
	and	eax, DWORD PTR CFGSTAT_CTO[rip]
	mov	r13d, eax
	je	.L6
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR [r12], -1
	xor	r13d, r13d
	mov	edi, DWORD PTR [rax]
	call	REGLOAD@PLT
	mov	ecx, DWORD PTR PCI_COMMAND[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, DWORD PTR TGT[rip]
	mov	r8d, eax
	call	grpci1_cfg_w32@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	edi, 48[rdx]
	sal	edi, 8
	mov	r13d, edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, r14d
	call	swab32@PLT
	mov	DWORD PTR [r12], eax
	mov	eax, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r13d, r13d
	xor	r14d, r14d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	grpci1_cfg_r32, .-grpci1_cfg_r32
	.comm	TGT,4,4
	.comm	PCI_COMMAND,4,4
	.comm	EINVAL,4,4
	.comm	CFGSTAT_CTO,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_leon_pci_grpci1.c_grpci1_cfg_r32.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grpci1_cfg_r32, %function
grpci1_cfg_r32:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ands	r7, r3, #3
	sub	sp, sp, #12
	bne	.L10
	cmp	r1, #0
	addeq	r2, r2, #48
	mov	r4, r3
	mov	r5, r0
	mov	r6, r1
	lsleq	r7, r2, #8
	beq	.L5
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r1
	moveq	r6, r7
	lslne	r6, r1, #23
	lslne	r7, r2, #8
.L5:
	ldr	r3, [r5, #4]
	and	r4, r4, #252
	ldr	r0, [r3, #4]
	bl	REGLOAD
	ldr	r3, [r5, #4]
	bic	r1, r0, #125829120
	orr	r1, r1, r6
	ldr	r0, [r3, #4]
	bl	REGSTORE
	ldr	r0, [r5]
	orr	r0, r4, r0
	orr	r0, r0, r7
	bl	LEON3_BYPASS_LOAD_PA
	ldr	r3, [r5, #4]
	mov	r6, r0
	ldr	r0, [r3, #4]
	bl	REGLOAD
	ldr	r3, .L12+4
	ldr	r4, [r3]
	ands	r4, r0, r4
	bne	.L11
	mov	r0, r6
	bl	swab32
	ldr	r3, [sp, #32]
	str	r0, [r3]
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mvn	r2, #0
	ldr	r1, [sp, #32]
	ldr	r3, [r5, #4]
	str	r2, [r1]
	ldr	r0, [r3]
	bl	REGLOAD
	mov	r4, #0
	ldr	r2, .L12
	ldr	r3, .L12+8
	str	r0, [sp]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	ldr	r3, [r3]
	bl	grpci1_cfg_w32
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r3, .L12+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	.align	2
.L12:
	.word	TGT
	.word	CFGSTAT_CTO
	.word	PCI_COMMAND
	.word	EINVAL
	.size	grpci1_cfg_r32, .-grpci1_cfg_r32
	.comm	TGT,4,4
	.comm	PCI_COMMAND,4,4
	.comm	EINVAL,4,4
	.comm	CFGSTAT_CTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
