	.file	"extr_igc_main.c_igc_set_itr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	igc_set_itr, @function
igc_set_itr:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 40[rdi]
	mov	rbx, rdi
	mov	r12d, DWORD PTR [rdi]
	mov	eax, DWORD PTR 0[rbp]
	sub	eax, 131
	cmp	eax, 1
	jbe	.L16
	lea	rsi, 24[rdi]
	call	igc_update_itr@PLT
	lea	rsi, 8[rbx]
	mov	rdi, rbx
	call	igc_update_itr@PLT
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 8[rbx]
	call	max@PLT
	mov	ecx, DWORD PTR [rbx]
	cmp	eax, 128
	je	.L17
	cmp	eax, 130
	je	.L8
	jg	.L3
	cmp	eax, 129
	jne	.L3
.L6:
	mov	r12d, DWORD PTR IGC_20K_ITR[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	r12d, ecx
	je	.L1
	jg	.L18
.L10:
	mov	DWORD PTR [rbx], r12d
	mov	DWORD PTR 4[rbx], 1
.L1:
	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
.L16:
	.cfi_restore_state
	mov	ecx, r12d
	mov	r12d, DWORD PTR IGC_4K_ITR[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, r12d
	mov	esi, r12d
	imul	eax, ecx
	sar	ecx, 2
	add	ecx, r12d
	cdq
	idiv	ecx
	mov	edi, eax
	call	max@PLT
	mov	r12d, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L19
	cmp	DWORD PTR 8[rbp], 3
	je	.L6
.L7:
	mov	r12d, DWORD PTR IGC_70K_ITR[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12d, DWORD PTR IGC_4K_ITR[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	DWORD PTR 4[rbp], 3
	jne	.L7
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	igc_set_itr, .-igc_set_itr
	.comm	IGC_70K_ITR,4,4
	.comm	IGC_4K_ITR,4,4
	.comm	IGC_20K_ITR,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_igc_main.c_igc_set_itr.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	igc_set_itr, %function
igc_set_itr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #24]
	mov	r4, r0
	ldr	r3, [r6]
	ldr	r5, [r0]
	sub	r3, r3, #131
	cmp	r3, #1
	bls	.L22
	add	r1, r0, #16
	bl	igc_update_itr
	add	r1, r4, #8
	mov	r0, r4
	bl	igc_update_itr
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #8]
	bl	max
	cmp	r0, #128
	beq	.L23
	cmp	r0, #130
	ldr	r3, [r4]
	beq	.L8
	bgt	.L3
	cmp	r0, #129
	bne	.L3
.L6:
	ldr	r2, .L27
	ldr	r5, [r2]
.L3:
	cmp	r5, r3
	popeq	{r4, r5, r6, pc}
.L25:
	bgt	.L24
.L10:
	mov	r3, #1
	str	r5, [r4]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L22:
	mov	r3, r5
	ldr	r2, .L27+4
	ldr	r5, [r2]
	cmp	r5, r3
	bne	.L25
	pop	{r4, r5, r6, pc}
.L24:
	add	r1, r5, r3, asr #2
	mul	r0, r3, r5
	bl	__aeabi_idiv
	mov	r1, r5
	bl	max
	mov	r5, r0
	b	.L10
.L23:
	ldr	r2, [r4, #12]
	ldr	r3, [r4]
	cmp	r2, #0
	bne	.L26
	ldr	r2, [r6, #8]
	cmp	r2, #3
	beq	.L6
.L7:
	ldr	r2, .L27+8
	ldr	r5, [r2]
	cmp	r5, r3
	bne	.L25
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r2, .L27+4
	ldr	r5, [r2]
	cmp	r5, r3
	bne	.L25
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r2, [r6, #4]
	cmp	r2, #3
	bne	.L7
	b	.L6
.L28:
	.align	2
.L27:
	.word	IGC_20K_ITR
	.word	IGC_4K_ITR
	.word	IGC_70K_ITR
	.size	igc_set_itr, .-igc_set_itr
	.comm	IGC_70K_ITR,4,4
	.comm	IGC_4K_ITR,4,4
	.comm	IGC_20K_ITR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
