	.file	"extr_ixgbe_main.c_ixgbe_setup_gpie.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgbe_setup_gpie, @function
ixgbe_setup_gpie:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	r12d, DWORD PTR [rdi]
	and	r12d, DWORD PTR IXGBE_FLAG_MSIX_ENABLED[rip]
	je	.L2
	mov	r12d, DWORD PTR IXGBE_GPIE_MSIX_MODE[rip]
	or	r12d, DWORD PTR IXGBE_GPIE_PBA_SUPPORT[rip]
	or	r12d, DWORD PTR IXGBE_GPIE_OCD[rip]
	or	r12d, DWORD PTR IXGBE_GPIE_EIAME[rip]
	cmp	DWORD PTR 8[rdi], 130
	je	.L2
	xor	edi, edi
	call	IXGBE_EIAM_EX@PLT
	mov	edx, -1
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, 1
	call	IXGBE_EIAM_EX@PLT
	mov	edx, -1
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IXGBE_FLAG_SRIOV_ENABLED[rip], eax
	jne	.L25
.L5:
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	test	DWORD PTR IXGBE_FLAG2_TEMP_SENSOR_CAPABLE[rip], ecx
	jne	.L26
.L9:
	test	DWORD PTR IXGBE_FLAG_FAN_FAIL_CAPABLE[rip], eax
	je	.L14
.L12:
	or	r12d, DWORD PTR IXGBE_SDP1_GPIEN[rip]
.L14:
	cmp	edx, 129
	je	.L13
.L15:
	mov	esi, DWORD PTR IXGBE_GPIE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	IXGBE_WRITE_REG@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR IXGBE_EICS_RTX_QUEUE[rip]
	mov	esi, DWORD PTR IXGBE_EIAM[rip]
	mov	rdi, rbp
	call	IXGBE_WRITE_REG@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IXGBE_FLAG_SRIOV_ENABLED[rip], eax
	je	.L5
.L25:
	mov	edx, DWORD PTR IXGBE_GPIE_VTMODE_MASK[rip]
	mov	rcx, QWORD PTR RING_F_VMDQ[rip]
	not	edx
	and	r12d, edx
	mov	rdx, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rdx+rcx*4]
	cmp	edx, 131
	je	.L6
	cmp	edx, 132
	je	.L7
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	or	r12d, DWORD PTR IXGBE_GPIE_VTMODE_64[rip]
	test	DWORD PTR IXGBE_FLAG2_TEMP_SENSOR_CAPABLE[rip], ecx
	je	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	edx, 128
	je	.L10
	cmp	edx, 129
	jne	.L11
	or	r12d, DWORD PTR IXGBE_SDP0_GPIEN[rip]
	test	DWORD PTR IXGBE_FLAG_FAN_FAIL_CAPABLE[rip], eax
	jne	.L12
.L13:
	mov	eax, DWORD PTR IXGBE_SDP1_GPIEN[rip]
	or	eax, DWORD PTR IXGBE_SDP2_GPIEN[rip]
	or	r12d, eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	or	r12d, DWORD PTR IXGBE_EIMS_TS[rip]
.L11:
	test	DWORD PTR IXGBE_FLAG_FAN_FAIL_CAPABLE[rip], eax
	je	.L15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	or	r12d, DWORD PTR IXGBE_GPIE_VTMODE_32[rip]
	test	DWORD PTR IXGBE_FLAG2_TEMP_SENSOR_CAPABLE[rip], ecx
	je	.L9
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	or	r12d, DWORD PTR IXGBE_GPIE_VTMODE_16[rip]
	test	DWORD PTR IXGBE_FLAG2_TEMP_SENSOR_CAPABLE[rip], ecx
	je	.L9
	jmp	.L26
	.cfi_endproc
.LFE0:
	.size	ixgbe_setup_gpie, .-ixgbe_setup_gpie
	.comm	RING_F_VMDQ,8,8
	.comm	IXGBE_SDP2_GPIEN,4,4
	.comm	IXGBE_SDP1_GPIEN,4,4
	.comm	IXGBE_SDP0_GPIEN,4,4
	.comm	IXGBE_GPIE_VTMODE_MASK,4,4
	.comm	IXGBE_GPIE_VTMODE_64,4,4
	.comm	IXGBE_GPIE_VTMODE_32,4,4
	.comm	IXGBE_GPIE_VTMODE_16,4,4
	.comm	IXGBE_GPIE_PBA_SUPPORT,4,4
	.comm	IXGBE_GPIE_OCD,4,4
	.comm	IXGBE_GPIE_MSIX_MODE,4,4
	.comm	IXGBE_GPIE_EIAME,4,4
	.comm	IXGBE_GPIE,4,4
	.comm	IXGBE_FLAG_SRIOV_ENABLED,4,4
	.comm	IXGBE_FLAG_MSIX_ENABLED,4,4
	.comm	IXGBE_FLAG_FAN_FAIL_CAPABLE,4,4
	.comm	IXGBE_FLAG2_TEMP_SENSOR_CAPABLE,4,4
	.comm	IXGBE_EIMS_TS,4,4
	.comm	IXGBE_EICS_RTX_QUEUE,4,4
	.comm	IXGBE_EIAM,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_ixgbe_main.c_ixgbe_setup_gpie.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_setup_gpie, %function
ixgbe_setup_gpie:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r3, .L26
	ldr	r4, [r6], #8
	ldr	r3, [r3]
	mov	r5, r0
	ands	r4, r4, r3
	beq	.L2
	ldr	r2, .L26+4
	ldr	r3, .L26+8
	ldr	r4, [r2]
	ldr	r1, .L26+12
	ldr	r2, [r3]
	ldr	r3, .L26+16
	orr	r4, r4, r2
	ldr	r1, [r1]
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	orr	r4, r4, r1
	cmp	r2, #130
	orr	r4, r4, r3
	beq	.L2
	mov	r0, #0
	bl	IXGBE_EIAM_EX
	mvn	r2, #0
	mov	r1, r0
	mov	r0, r6
	bl	IXGBE_WRITE_REG
	mov	r0, #1
	bl	IXGBE_EIAM_EX
	mvn	r2, #0
	mov	r1, r0
	mov	r0, r6
	bl	IXGBE_WRITE_REG
	b	.L4
.L2:
	ldr	r2, .L26+20
	ldr	r3, .L26+24
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	IXGBE_WRITE_REG
.L4:
	ldr	r2, .L26+28
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	ldr	r2, .L26+32
	ldr	r1, [r5, #12]
	ldr	r0, [r2]
	ldr	r2, .L26+36
	ldr	r1, [r1, r0, lsl #2]
	ldr	r2, [r2]
	cmp	r1, #131
	bic	r4, r4, r2
	beq	.L6
	cmp	r1, #132
	beq	.L7
	ldr	r2, .L26+40
	ldr	r2, [r2]
	orr	r4, r4, r2
.L5:
	ldr	r2, .L26+44
	ldr	r0, [r5, #4]
	ldr	r1, [r2]
	ldr	r2, [r5, #8]
	tst	r0, r1
	bne	.L25
	ldr	r1, .L26+48
	ldr	r1, [r1]
	tst	r3, r1
	beq	.L14
.L12:
	ldr	r3, .L26+52
	ldr	r3, [r3]
	orr	r4, r4, r3
.L14:
	cmp	r2, #129
	beq	.L13
.L15:
	ldr	r3, .L26+56
	mov	r2, r4
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	IXGBE_WRITE_REG
.L25:
	cmp	r2, #128
	beq	.L10
	cmp	r2, #129
	bne	.L11
	ldr	r0, .L26+48
	ldr	r1, .L26+60
	ldr	r0, [r0]
	ldr	r1, [r1]
	tst	r3, r0
	orr	r4, r4, r1
	bne	.L12
.L13:
	ldr	r3, .L26+52
	ldr	r2, .L26+64
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r4, r4, r3
	b	.L15
.L10:
	ldr	r1, .L26+68
	ldr	r1, [r1]
	orr	r4, r4, r1
.L11:
	ldr	r1, .L26+48
	ldr	r1, [r1]
	tst	r3, r1
	beq	.L15
	b	.L12
.L7:
	ldr	r2, .L26+72
	ldr	r2, [r2]
	orr	r4, r4, r2
	b	.L5
.L6:
	ldr	r2, .L26+76
	ldr	r2, [r2]
	orr	r4, r4, r2
	b	.L5
.L27:
	.align	2
.L26:
	.word	IXGBE_FLAG_MSIX_ENABLED
	.word	IXGBE_GPIE_MSIX_MODE
	.word	IXGBE_GPIE_PBA_SUPPORT
	.word	IXGBE_GPIE_OCD
	.word	IXGBE_GPIE_EIAME
	.word	IXGBE_EICS_RTX_QUEUE
	.word	IXGBE_EIAM
	.word	IXGBE_FLAG_SRIOV_ENABLED
	.word	RING_F_VMDQ
	.word	IXGBE_GPIE_VTMODE_MASK
	.word	IXGBE_GPIE_VTMODE_64
	.word	IXGBE_FLAG2_TEMP_SENSOR_CAPABLE
	.word	IXGBE_FLAG_FAN_FAIL_CAPABLE
	.word	IXGBE_SDP1_GPIEN
	.word	IXGBE_GPIE
	.word	IXGBE_SDP0_GPIEN
	.word	IXGBE_SDP2_GPIEN
	.word	IXGBE_EIMS_TS
	.word	IXGBE_GPIE_VTMODE_32
	.word	IXGBE_GPIE_VTMODE_16
	.size	ixgbe_setup_gpie, .-ixgbe_setup_gpie
	.comm	RING_F_VMDQ,4,4
	.comm	IXGBE_SDP2_GPIEN,4,4
	.comm	IXGBE_SDP1_GPIEN,4,4
	.comm	IXGBE_SDP0_GPIEN,4,4
	.comm	IXGBE_GPIE_VTMODE_MASK,4,4
	.comm	IXGBE_GPIE_VTMODE_64,4,4
	.comm	IXGBE_GPIE_VTMODE_32,4,4
	.comm	IXGBE_GPIE_VTMODE_16,4,4
	.comm	IXGBE_GPIE_PBA_SUPPORT,4,4
	.comm	IXGBE_GPIE_OCD,4,4
	.comm	IXGBE_GPIE_MSIX_MODE,4,4
	.comm	IXGBE_GPIE_EIAME,4,4
	.comm	IXGBE_GPIE,4,4
	.comm	IXGBE_FLAG_SRIOV_ENABLED,4,4
	.comm	IXGBE_FLAG_MSIX_ENABLED,4,4
	.comm	IXGBE_FLAG_FAN_FAIL_CAPABLE,4,4
	.comm	IXGBE_FLAG2_TEMP_SENSOR_CAPABLE,4,4
	.comm	IXGBE_EIMS_TS,4,4
	.comm	IXGBE_EICS_RTX_QUEUE,4,4
	.comm	IXGBE_EIAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
