	.file	"extr_mac.c_e1000e_disable_pcie_master.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Master requests are pending.\n"
	.text
	.p2align 4
	.globl	e1000e_disable_pcie_master
	.type	e1000e_disable_pcie_master, @function
e1000e_disable_pcie_master:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, DWORD PTR CTRL[rip]
	mov	rbx, QWORD PTR MASTER_DISABLE_TIMEOUT[rip]
	call	er32@PLT
	mov	edi, DWORD PTR CTRL[rip]
	or	eax, DWORD PTR E1000_CTRL_GIO_MASTER_DISABLE[rip]
	mov	esi, eax
	call	ew32@PLT
	test	rbx, rbx
	jne	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, 200
	mov	edi, 100
	call	usleep_range@PLT
	sub	rbx, 1
	je	.L2
.L4:
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	DWORD PTR E1000_STATUS_GIO_MASTER_ENABLE[rip], eax
	jne	.L12
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	e_dbg@PLT
	mov	rax, QWORD PTR E1000_ERR_MASTER_REQUESTS_PENDING[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	rax
	ret
	.cfi_endproc
.LFE0:
	.size	e1000e_disable_pcie_master, .-e1000e_disable_pcie_master
	.comm	STATUS,4,4
	.comm	MASTER_DISABLE_TIMEOUT,8,8
	.comm	E1000_STATUS_GIO_MASTER_ENABLE,4,4
	.comm	E1000_ERR_MASTER_REQUESTS_PENDING,8,8
	.comm	E1000_CTRL_GIO_MASTER_DISABLE,4,4
	.comm	CTRL,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_mac.c_e1000e_disable_pcie_master.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Master requests are pending.\012\000"
	.text
	.align	2
	.global	e1000e_disable_pcie_master
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000e_disable_pcie_master, %function
e1000e_disable_pcie_master:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L14
	ldr	r3, .L14+4
	ldr	r0, [r5]
	ldr	r4, [r3]
	bl	er32
	mov	r1, r0
	ldr	r3, .L14+8
	ldr	r0, [r5]
	ldr	r3, [r3]
	orr	r1, r1, r3
	bl	ew32
	cmp	r4, #0
	beq	.L2
	ldr	r6, .L14+12
	ldr	r5, .L14+16
.L4:
	ldr	r0, [r6]
	bl	er32
	ldr	r3, [r5]
	ands	r0, r0, r3
	popeq	{r4, r5, r6, pc}
	mov	r1, #200
	mov	r0, #100
	bl	usleep_range
	subs	r4, r4, #1
	bne	.L4
.L2:
	ldr	r0, .L14+20
	bl	e_dbg
	ldr	r3, .L14+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	CTRL
	.word	MASTER_DISABLE_TIMEOUT
	.word	E1000_CTRL_GIO_MASTER_DISABLE
	.word	STATUS
	.word	E1000_STATUS_GIO_MASTER_ENABLE
	.word	.LC0
	.word	E1000_ERR_MASTER_REQUESTS_PENDING
	.size	e1000e_disable_pcie_master, .-e1000e_disable_pcie_master
	.comm	STATUS,4,4
	.comm	MASTER_DISABLE_TIMEOUT,4,4
	.comm	E1000_STATUS_GIO_MASTER_ENABLE,4,4
	.comm	E1000_ERR_MASTER_REQUESTS_PENDING,4,4
	.comm	E1000_CTRL_GIO_MASTER_DISABLE,4,4
	.comm	CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
