	.file	"extr_al_hal_pcie.c_al_pcie_local_cfg_space_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	al_pcie_local_cfg_space_write
	.type	al_pcie_local_cfg_space_write, @function
al_pcie_local_cfg_space_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	rbx, r8
	mov	edx, DWORD PTR [rdi]
	mov	rax, QWORD PTR 0[r13]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	r14, [rax+rsi*4]
	test	r8, r8
	jne	.L11
.L2:
	cmp	QWORD PTR AL_FALSE[rip], rbp
	je	.L12
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, r13
	call	al_reg_write32_dbi_cs2@PLT
	test	rbx, rbx
	jne	.L13
.L1:
	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
.L12:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, r14
	call	al_reg_write32@PLT
	test	rbx, rbx
	je	.L1
.L13:
	mov	rsi, QWORD PTR AL_FALSE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	al_pcie_port_wr_to_ro_set@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR AL_TRUE[rip]
	mov	rdi, r13
	call	al_pcie_port_wr_to_ro_set@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	al_pcie_local_cfg_space_write, .-al_pcie_local_cfg_space_write
	.comm	AL_TRUE,8,8
	.comm	AL_FALSE,8,8
	.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_al_hal_pcie.c_al_pcie_local_cfg_space_write.c"
	.text
	.align	2
	.global	al_pcie_local_cfg_space_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	al_pcie_local_cfg_space_write, %function
al_pcie_local_cfg_space_write:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r0, r7}
	ldr	ip, [r7]
	mov	r5, r2
	ldr	r2, [ip]
	ldr	r8, [sp, #32]
	ldr	r4, [r2, r0, lsl #2]
	cmp	r8, #0
	mov	r6, r3
	add	r4, r4, r1, lsl #2
	bne	.L11
.L2:
	ldr	r9, .L14
	ldr	r3, [r9]
	cmp	r3, r6
	beq	.L12
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bl	al_reg_write32_dbi_cs2
	cmp	r8, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r0, r7
	ldr	r1, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	al_pcie_port_wr_to_ro_set
.L12:
	mov	r1, r5
	mov	r0, r4
	bl	al_reg_write32
	cmp	r8, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	b	.L13
.L11:
	ldr	r3, .L14+4
	mov	r0, r7
	ldr	r1, [r3]
	bl	al_pcie_port_wr_to_ro_set
	b	.L2
.L15:
	.align	2
.L14:
	.word	AL_FALSE
	.word	AL_TRUE
	.size	al_pcie_local_cfg_space_write, .-al_pcie_local_cfg_space_write
	.comm	AL_TRUE,4,4
	.comm	AL_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
