	.file	"extr_ice_txrx.c_ice_update_ena_itr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ice_update_ena_itr, @function
ice_update_ena_itr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR ICE_IN_WB_ON_ITR_MODE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L15
	lea	rsi, 40[rdi]
	lea	r12, 24[rdi]
	call	ice_update_itr@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	ice_update_itr@PLT
	mov	esi, DWORD PTR 24[rbx]
	mov	eax, DWORD PTR 32[rbx]
	cmp	esi, eax
	jl	.L13
	mov	r8d, DWORD PTR 40[rbx]
	mov	edx, DWORD PTR 48[rbx]
	cmp	r8d, edx
	jl	.L6
	mov	ecx, esi
	mov	edi, r8d
	sub	ecx, eax
	sub	edi, edx
	cmp	ecx, edi
	jge	.L7
.L6:
	mov	edi, DWORD PTR 52[rbx]
	mov	esi, r8d
	call	ice_buildreg_itr@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 40[rbx]
	mov	DWORD PTR 48[rbx], eax
	mov	rax, QWORD PTR ITR_COUNTDOWN_START[rip]
	mov	QWORD PTR [rbx], rax
.L5:
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR __ICE_DOWN[rip]
	mov	esi, DWORD PTR 8[rax]
	call	test_bit@PLT
	test	eax, eax
	je	.L16
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 36[rbx]
	call	ice_buildreg_itr@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR ITR_COUNTDOWN_START[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 8[rbx]
	call	GLINT_DYN_CTL@PLT
	mov	edx, r12d
	mov	esi, eax
	mov	rax, QWORD PTR 16[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	mov	rdi, QWORD PTR [rax]
	jmp	wr32@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rbp, QWORD PTR 16[rdi]
	mov	esi, DWORD PTR ICE_WB_ON_ITR_USECS[rip]
	mov	edi, DWORD PTR 36[rdi]
	call	ice_buildreg_itr@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	r12d, eax
	call	GLINT_DYN_CTL@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, r12d
	mov	esi, eax
	call	wr32@PLT
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 24[rbx], eax
	and	eax, DWORD PTR ICE_ITR_DYNAMIC[rip]
	or	eax, DWORD PTR ICE_WB_ON_ITR_USECS[rip]
	mov	QWORD PTR [rbx], 0
	mov	DWORD PTR 32[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	esi, eax
	jne	.L13
	mov	edi, DWORD PTR ICE_ITR_NONE[rip]
	xor	esi, esi
	call	ice_buildreg_itr@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L5
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ice_update_ena_itr, .-ice_update_ena_itr
	.comm	__ICE_DOWN,4,4
	.comm	ITR_COUNTDOWN_START,8,8
	.comm	ICE_WB_ON_ITR_USECS,4,4
	.comm	ICE_ITR_NONE,4,4
	.comm	ICE_ITR_DYNAMIC,4,4
	.comm	ICE_IN_WB_ON_ITR_MODE,8,8
	.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_ice_txrx.c_ice_update_ena_itr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ice_update_ena_itr, %function
ice_update_ena_itr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L16
	ldr	r2, [r5], #12
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	beq	.L15
	add	r1, r0, #28
	bl	ice_update_itr
	mov	r1, r5
	mov	r0, r4
	bl	ice_update_itr
	ldr	r1, [r4, #12]
	ldr	r2, [r4, #20]
	cmp	r1, r2
	blt	.L13
	ldr	r0, [r4, #28]
	ldr	r3, [r4, #36]
	cmp	r0, r3
	blt	.L6
	sub	r3, r0, r3
	sub	ip, r1, r2
	cmp	ip, r3
	bge	.L7
.L6:
	mov	r1, r0
	ldr	r0, [r4, #40]
	bl	ice_buildreg_itr
	mov	r5, r0
	ldr	r2, .L16+4
	ldr	r3, [r4, #28]
	ldr	r2, [r2]
	str	r3, [r4, #36]
	str	r2, [r4]
.L5:
	ldr	r2, [r4, #8]
	ldr	r3, .L16+8
	ldr	r1, [r2, #4]
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldmib	r4, {r0, r3}
	ldr	r4, [r3]
	bl	GLINT_DYN_CTL
	mov	r2, r5
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	wr32
.L13:
	ldr	r0, [r4, #24]
	bl	ice_buildreg_itr
	ldr	r2, .L16+4
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	mov	r5, r0
	str	r2, [r4]
	str	r3, [r4, #20]
	b	.L5
.L15:
	ldr	r6, .L16+12
	ldr	r0, [r0, #24]
	ldr	r1, [r6]
	ldr	r5, [r4, #8]
	bl	ice_buildreg_itr
	ldr	r7, [r5]
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	GLINT_DYN_CTL
	mov	r2, r5
	mov	r1, r0
	mov	r0, r7
	bl	wr32
	mov	r1, #0
	ldr	r3, .L16+16
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	ldr	r0, [r6]
	and	r3, r3, r2
	orr	r3, r3, r0
	str	r3, [r4, #20]
	str	r2, [r4, #12]
	str	r1, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	cmp	r1, r2
	bne	.L13
	ldr	r3, .L16+20
	mov	r1, #0
	ldr	r0, [r3]
	bl	ice_buildreg_itr
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, #0
	subne	r3, r3, #1
	strne	r3, [r4]
	b	.L5
.L17:
	.align	2
.L16:
	.word	ICE_IN_WB_ON_ITR_MODE
	.word	ITR_COUNTDOWN_START
	.word	__ICE_DOWN
	.word	ICE_WB_ON_ITR_USECS
	.word	ICE_ITR_DYNAMIC
	.word	ICE_ITR_NONE
	.size	ice_update_ena_itr, .-ice_update_ena_itr
	.comm	__ICE_DOWN,4,4
	.comm	ITR_COUNTDOWN_START,4,4
	.comm	ICE_WB_ON_ITR_USECS,4,4
	.comm	ICE_ITR_NONE,4,4
	.comm	ICE_ITR_DYNAMIC,4,4
	.comm	ICE_IN_WB_ON_ITR_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
