	.file	"extr_ops-gt64xxx_pci0.c_gt64xxx_pci0_pcibios_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gt64xxx_pci0_pcibios_write, @function
gt64xxx_pci0_pcibios_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	cmp	ecx, 4
	jne	.L2
	mov	DWORD PTR 4[rsp], r8d
	lea	rbp, 4[rsp]
.L3:
	mov	edi, DWORD PTR PCI_ACCESS_WRITE[rip]
	mov	r8, rbp
	mov	ecx, r12d
	mov	edx, r15d
	mov	rsi, r14
	call	gt64xxx_pci0_pcibios_config_access@PLT
	test	rax, rax
	mov	eax, DWORD PTR PCIBIOS_DEVICE_NOT_FOUND[rip]
	cmove	eax, DWORD PTR PCIBIOS_SUCCESSFUL[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ebx, ecx
	lea	rbp, 4[rsp]
	mov	ecx, edx
	mov	edx, esi
	mov	rsi, rdi
	mov	edi, DWORD PTR PCI_ACCESS_READ[rip]
	mov	r8, rbp
	call	gt64xxx_pci0_pcibios_config_access@PLT
	test	rax, rax
	jne	.L12
	cmp	ebx, 1
	je	.L13
	cmp	ebx, 2
	jne	.L3
	lea	ecx, 0[0+r12*8]
	mov	eax, 65535
	mov	r8d, r13d
	and	ecx, 24
	sal	eax, cl
	sal	r8d, cl
	not	eax
	and	eax, DWORD PTR 4[rsp]
	or	r8d, eax
	mov	DWORD PTR 4[rsp], r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR PCIBIOS_DEVICE_NOT_FOUND[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	ecx, 0[0+r12*8]
	mov	eax, 255
	mov	r8d, r13d
	and	ecx, 24
	sal	eax, cl
	sal	r8d, cl
	not	eax
	and	eax, DWORD PTR 4[rsp]
	or	eax, r8d
	mov	DWORD PTR 4[rsp], eax
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gt64xxx_pci0_pcibios_write, .-gt64xxx_pci0_pcibios_write
	.comm	PCI_ACCESS_WRITE,4,4
	.comm	PCI_ACCESS_READ,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,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_ops-gt64xxx_pci0.c_gt64xxx_pci0_pcibios_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gt64xxx_pci0_pcibios_write, %function
gt64xxx_pci0_pcibios_write:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #4
	mov	r4, r3
	ldr	r3, .L14
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r0
	mov	r8, r1
	mov	r5, r2
	str	ip, [sp, #8]
	bne	.L2
	ldr	r3, [sp, #40]
	add	r6, sp, #8
	str	r3, [sp, #8]
.L3:
	ldr	r0, .L14+4
	str	r6, [sp]
	mov	r3, r5
	mov	r2, r8
	mov	r1, r7
	ldr	r0, [r0]
	bl	gt64xxx_pci0_pcibios_config_access
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L14+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L14+12
	add	r6, sp, #8
	ldr	r0, [r3]
	mov	r3, r2
	str	r6, [sp]
	mov	r2, r1
	mov	r1, r7
	bl	gt64xxx_pci0_pcibios_config_access
	cmp	r0, #0
	bne	.L11
	cmp	r4, #1
	moveq	r1, #255
	lsleq	r3, r5, #3
	beq	.L10
	cmp	r4, #2
	bne	.L3
	ldr	r1, .L14+16
	lsl	r3, r5, #3
.L10:
	ldr	r2, [sp, #8]
	and	r3, r3, #24
	bic	r2, r2, r1, lsl r3
	ldr	r1, [sp, #40]
	orr	r3, r2, r1, lsl r3
	str	r3, [sp, #8]
	b	.L3
.L11:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	PCI_ACCESS_WRITE
	.word	PCIBIOS_SUCCESSFUL
	.word	PCI_ACCESS_READ
	.word	65535
	.word	PCIBIOS_DEVICE_NOT_FOUND
	.size	gt64xxx_pci0_pcibios_write, .-gt64xxx_pci0_pcibios_write
	.comm	PCI_ACCESS_WRITE,4,4
	.comm	PCI_ACCESS_READ,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
