	.file	"extr_rtas_pci.c_rtas_write_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtas_write_config
	.type	rtas_write_config, @function
rtas_write_config:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L12
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	config_access_valid@PLT
	test	eax, eax
	jne	.L4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR PCIBIOS_BAD_REGISTER_NUMBER[rip]
	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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, r12d
	call	rtas_config_addr@PLT
	mov	r12, rax
	mov	rax, QWORD PTR [rbx]
	mov	r14, QWORD PTR [rax]
	test	r14, r14
	jne	.L13
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR write_pci_config[rip]
	xor	ecx, ecx
	mov	r9d, ebp
	push	r13
	.cfi_def_cfa_offset 64
	mov	edx, 1
	mov	r8, r12
	mov	esi, 3
	xor	eax, eax
	call	rtas_call@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
.L6:
	pop	rbx
	.cfi_def_cfa_offset 40
	test	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR PCIBIOS_DEVICE_NOT_FOUND[rip]
	pop	r12
	.cfi_def_cfa_offset 24
	cmove	eax, DWORD PTR PCIBIOS_SUCCESSFUL[rip]
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, DWORD PTR PCIBIOS_DEVICE_NOT_FOUND[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	rdi, r14
	call	BUID_LO@PLT
	mov	rdi, r14
	mov	ebx, eax
	call	BUID_HI@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r8, r12
	xor	ecx, ecx
	push	r13
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR ibm_write_pci_config[rip]
	mov	r9d, eax
	mov	edx, 1
	push	rbp
	.cfi_def_cfa_offset 72
	mov	esi, 5
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 80
	call	rtas_call@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	rtas_write_config, .-rtas_write_config
	.comm	write_pci_config,4,4
	.comm	ibm_write_pci_config,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,4,4
	.comm	PCIBIOS_BAD_REGISTER_NUMBER,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_rtas_pci.c_rtas_write_config.c"
	.text
	.align	2
	.global	rtas_write_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtas_write_config, %function
rtas_write_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r0, #0
	sub	sp, sp, #24
	beq	.L9
	mov	r7, r2
	mov	r6, r3
	mov	r4, r1
	bl	config_access_valid
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L12
	ldr	r0, [r3]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r2, r4
	ldr	r1, [r5, #4]
	ldr	r0, [r5, #8]
	bl	rtas_config_addr
	ldr	r3, [r5]
	mov	r4, r0
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L11
	stm	sp, {r4, r7}
	ldr	r2, .L12+4
	str	r6, [sp, #8]
	ldr	r0, [r2]
	mov	r3, r5
	mov	r2, #1
	mov	r1, #3
	bl	rtas_call
.L6:
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L12+8
	ldr	r0, [r3]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+16
	mov	r0, r5
	ldr	r8, [r3]
	bl	BUID_HI
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	BUID_LO
	mov	r3, r0
	mov	r2, #1
	str	r3, [sp, #8]
	mov	r0, r8
	mov	r3, #0
	mov	r1, #5
	str	r5, [sp, #4]
	str	r6, [sp, #16]
	str	r7, [sp, #12]
	str	r4, [sp]
	bl	rtas_call
	b	.L6
.L13:
	.align	2
.L12:
	.word	PCIBIOS_BAD_REGISTER_NUMBER
	.word	write_pci_config
	.word	PCIBIOS_SUCCESSFUL
	.word	PCIBIOS_DEVICE_NOT_FOUND
	.word	ibm_write_pci_config
	.size	rtas_write_config, .-rtas_write_config
	.comm	write_pci_config,4,4
	.comm	ibm_write_pci_config,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,4,4
	.comm	PCIBIOS_BAD_REGISTER_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
