	.file	"extr_qed_cxt.c_qed_cxt_get_tid_mem_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qed_cxt_get_tid_mem_info
	.type	qed_cxt_get_tid_mem_info, @function
qed_cxt_get_tid_mem_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 8[rdi]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	jne	.L7
	mov	rcx, QWORD PTR PROTOCOLID_FCOE[rip]
	mov	rdi, QWORD PTR QED_CXT_FCOE_TID_SEG[rip]
.L4:
	mov	rax, QWORD PTR ILT_CLI_CDUT[rip]
	mov	r12, QWORD PTR [rbx]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 32[r12]
	lea	r14, [rax+rdx*8]
	mov	edx, DWORD PTR 16[r14]
	test	edx, edx
	je	.L7
	mov	rax, QWORD PTR 24[r12]
	mov	r13, rdi
	sal	r13, 4
	add	r13, QWORD PTR [rax+rcx*8]
	mov	eax, DWORD PTR 8[r13]
	test	eax, eax
	je	.L7
	mov	esi, DWORD PTR PF[rip]
	mov	r15, QWORD PTR 8[r14]
	call	CDUT_FL_SEG_BLK@PLT
	lea	rax, [rax+rax*2]
	lea	r15, [r15+rax*8]
	mov	edi, DWORD PTR 16[r15]
	mov	esi, DWORD PTR [r15]
	call	DIV_ROUND_UP@PLT
	test	rax, rax
	je	.L8
	mov	rcx, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[r15]
	mov	rdi, QWORD PTR 16[rbp]
	sub	rdx, QWORD PTR [rcx]
	mov	rcx, QWORD PTR 16[r12]
	lea	rsi, [rcx+rdx*4]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR [rsi+rdx*4]
	mov	DWORD PTR [rdi+rdx*4], ecx
	add	rdx, 1
	cmp	rax, rdx
	jne	.L9
.L8:
	mov	edi, DWORD PTR [r14]
	call	ILT_PAGE_IN_BYTES@PLT
	movsx	rcx, DWORD PTR [r15]
	mov	rdx, rax
	sub	rdx, rcx
	mov	rax, rcx
	mov	rcx, QWORD PTR 0[r13]
	mov	QWORD PTR 8[rbp], rdx
	mov	rdx, QWORD PTR 8[r12]
	mov	ecx, DWORD PTR [rdx+rcx*4]
	cdq
	idiv	ecx
	mov	DWORD PTR 0[rbp], ecx
	mov	DWORD PTR 4[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR PROTOCOLID_ISCSI[rip]
	mov	rdi, QWORD PTR QED_CXT_ISCSI_TID_SEG[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	qed_cxt_get_tid_mem_info, .-qed_cxt_get_tid_mem_info
	.comm	QED_CXT_ISCSI_TID_SEG,8,8
	.comm	QED_CXT_FCOE_TID_SEG,8,8
	.comm	PROTOCOLID_ISCSI,8,8
	.comm	PROTOCOLID_FCOE,8,8
	.comm	PF,4,4
	.comm	ILT_CLI_CDUT,8,8
	.comm	EINVAL,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_qed_cxt.c_qed_cxt_get_tid_mem_info.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	qed_cxt_get_tid_mem_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_cxt_get_tid_mem_info, %function
qed_cxt_get_tid_mem_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	mov	r5, r0
	cmp	r3, #128
	mov	r6, r1
	sub	sp, sp, #12
	beq	.L2
	cmp	r3, #129
	bne	.L7
	ldr	r2, .L19
	ldr	r3, .L19+4
	ldr	r1, [r2]
	ldr	r0, [r3]
.L4:
	ldr	r3, .L19+8
	ldr	r7, [r5]
	ldr	r4, [r3]
	ldr	fp, [r7, #16]
	add	r4, r4, r4, lsl #1
	add	r3, fp, r4, lsl #2
	ldr	r2, [r3, #8]
	lsl	r4, r4, #2
	cmp	r2, #0
	beq	.L7
	ldr	r2, [r7, #12]
	lsl	r9, r0, #3
	ldr	r10, [r2, r1, lsl #2]
	add	r1, r10, r0, lsl #3
	ldr	r1, [r1, #4]
	cmp	r1, #0
	beq	.L7
	ldr	r1, .L19+12
	ldr	r8, [r3, #4]
	ldr	r1, [r1]
	bl	CDUT_FL_SEG_BLK
	add	r3, r0, r0, lsl #1
	lsl	r2, r3, #2
	add	r3, r8, r3, lsl #2
	ldr	r1, [r8, r2]
	ldr	r0, [r3, #8]
	str	r2, [sp]
	str	r3, [sp, #4]
	bl	DIV_ROUND_UP
	subs	ip, r0, #0
	beq	.L8
	ldr	r3, [sp, #4]
	ldr	r1, [r5]
	ldr	r0, [r3, #4]
	ldr	r1, [r1]
	ldr	r3, [r6, #12]
	sub	r0, r0, r1
	lsl	r0, r0, #2
	ldr	r1, [r7, #8]
	sub	r0, r0, #4
	sub	r3, r3, #4
	add	r1, r1, r0
	add	ip, r3, ip, lsl #2
.L9:
	ldr	r0, [r1, #4]!
	str	r0, [r3, #4]!
	cmp	r3, ip
	bne	.L9
.L8:
	ldr	r0, [fp, r4]
	bl	ILT_PAGE_IN_BYTES
	mov	r3, r0
	ldr	r0, [sp]
	ldr	r2, [r7, #4]
	ldr	r1, [r10, r9]
	ldr	r0, [r8, r0]
	ldr	r1, [r2, r1, lsl #2]
	sub	r3, r3, r0
	str	r3, [r6, #8]
	str	r1, [r6]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r0, #0
	str	r3, [r6, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L19+20
	ldr	r3, .L19+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	b	.L4
.L20:
	.align	2
.L19:
	.word	PROTOCOLID_FCOE
	.word	QED_CXT_FCOE_TID_SEG
	.word	ILT_CLI_CDUT
	.word	PF
	.word	EINVAL
	.word	PROTOCOLID_ISCSI
	.word	QED_CXT_ISCSI_TID_SEG
	.size	qed_cxt_get_tid_mem_info, .-qed_cxt_get_tid_mem_info
	.comm	QED_CXT_ISCSI_TID_SEG,4,4
	.comm	QED_CXT_FCOE_TID_SEG,4,4
	.comm	PROTOCOLID_ISCSI,4,4
	.comm	PROTOCOLID_FCOE,4,4
	.comm	PF,4,4
	.comm	ILT_CLI_CDUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
