	.file	"extr_pciroms.c_pci_disable_bars.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ioctl"
	.text
	.p2align 4
	.type	pci_disable_bars, @function
pci_disable_bars:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rsi]
	mov	r13, rsp
	mov	esi, DWORD PTR PCIOCWRITE[rip]
	mov	rdx, r13
	mov	DWORD PTR [rsp], 4
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR PCI_CFG_ROM_BAR[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	call	ioctl@PLT
	cmp	eax, -1
	je	.L3
	mov	eax, DWORD PTR [rbx]
	mov	esi, DWORD PTR PCIOCWRITE[rip]
	mov	rdx, r13
	mov	edi, ebp
	mov	DWORD PTR [rsp], 2
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR PCI_CFG_CMD[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rsp], rax
	call	ioctl@PLT
	cmp	eax, -1
	je	.L8
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	perror@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pci_disable_bars, .-pci_disable_bars
	.comm	PCI_CFG_ROM_BAR,4,4
	.comm	PCI_CFG_CMD,4,4
	.comm	PCIOCWRITE,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_pciroms.c_pci_disable_bars.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ioctl\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_disable_bars, %function
pci_disable_bars:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	mov	ip, #4
	mov	r3, #0
	ldr	r1, .L10
	mov	r6, r2
	ldr	r1, [r1]
	ldr	r2, .L10+4
	ldr	r7, .L10+8
	sub	sp, sp, #28
	ldr	lr, [r4]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r1, [sp, #12]
	add	r2, sp, ip
	ldr	r1, [r7]
	mov	r5, r0
	str	lr, [sp, #16]
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	bl	ioctl
	cmn	r0, #1
	beq	.L3
	mov	r3, #2
	ldr	r2, .L10+12
	ldr	r4, [r4]
	ldr	ip, [r2]
	ldr	lr, [r6]
	mov	r0, r5
	ldr	r1, [r7]
	add	r2, sp, #4
	str	r4, [sp, #16]
	str	lr, [sp, #8]
	str	ip, [sp, #12]
	str	r3, [sp, #4]
	bl	ioctl
	cmn	r0, #1
	beq	.L8
.L3:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r0, .L10+16
	bl	perror
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	PCI_CFG_ROM_BAR
	.word	.LC1
	.word	PCIOCWRITE
	.word	PCI_CFG_CMD
	.word	.LC0
	.size	pci_disable_bars, .-pci_disable_bars
	.comm	PCI_CFG_ROM_BAR,4,4
	.comm	PCI_CFG_CMD,4,4
	.comm	PCIOCWRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
