	.file	"extr_fm_manip.c_IpFragmentation.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"MURAM alloc for Fragmentation table descriptor"
	.text
	.p2align 4
	.type	IpFragmentation, @function
IpFragmentation:
.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, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR E_INVALID_HANDLE[rip]
	mov	edi, DWORD PTR [rbx]
	call	SANITY_CHECK_RETURN_ERROR@PLT
	mov	esi, DWORD PTR E_INVALID_VALUE[rip]
	xor	edi, edi
	cmp	DWORD PTR 0[rbp], 65535
	setne	dil
	call	SANITY_CHECK_RETURN_ERROR@PLT
	mov	r14, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR FM_PCD_CC_AD_TABLE_ALIGN[rip]
	mov	esi, DWORD PTR FM_PCD_CC_AD_ENTRY_SIZE[rip]
	mov	edi, DWORD PTR [r14]
	call	FM_MURAM_AllocMem@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L7
.L2:
	mov	edx, DWORD PTR FM_PCD_CC_AD_ENTRY_SIZE[rip]
	xor	esi, esi
	call	MemSet8@PLT
	mov	ecx, DWORD PTR FM_PCD_MANIP_IP_FRAG_DF_SHIFT[rip]
	mov	r12d, DWORD PTR 4[rbp]
	mov	rax, QWORD PTR HMAN_OC_IP_FRAGMENTATION[rip]
	sal	r12d, cl
	or	r12d, DWORD PTR FM_PCD_AD_CONT_LOOKUP_TYPE[rip]
	cmp	QWORD PTR 16[rbp], 0
	mov	r15d, eax
	je	.L3
	mov	ecx, DWORD PTR FM_PCD_MANIP_IP_FRAG_SG_BDID_SHIFT[rip]
	mov	r15d, DWORD PTR 8[rbp]
	or	r12d, DWORD PTR FM_PCD_MANIP_IP_FRAG_SG_BDID_EN[rip]
	sal	r15d, cl
	and	r15d, DWORD PTR FM_PCD_MANIP_IP_FRAG_SG_BDID_MASK[rip]
	or	r15d, eax
.L3:
	mov	edi, DWORD PTR 16[r14]
	mov	r13d, 255
	call	UINT_TO_PTR@PLT
	mov	edi, eax
	call	XX_VirtToPhys@PLT
	mov	ecx, DWORD PTR FM_PCD_MANIP_IP_FRAG_SCRATCH_BPID[rip]
	sub	eax, DWORD PTR 8[r14]
	mov	esi, r15d
	sal	r13d, cl
	or	r13d, eax
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 8[rax]
	call	WRITE_UINT32@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, r12d
	mov	edi, DWORD PTR 4[rax]
	call	WRITE_UINT32@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, r13d
	mov	edi, DWORD PTR [rax]
	call	WRITE_UINT32@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR E_OK[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
	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	edi, DWORD PTR MAJOR[rip]
	mov	esi, DWORD PTR E_NO_MEMORY[rip]
	lea	rdx, .LC0[rip]
	call	RETURN_ERROR@PLT
	mov	rdi, QWORD PTR 16[rbx]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	IpFragmentation, .-IpFragmentation
	.comm	TRUE,4,4
	.comm	NO_MSG,8,8
	.comm	MAJOR,4,4
	.comm	HMAN_OC_IP_FRAGMENTATION,8,8
	.comm	FM_PCD_MANIP_IP_FRAG_SG_BDID_SHIFT,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SG_BDID_MASK,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SG_BDID_EN,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SCRATCH_BPID,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_DF_SHIFT,4,4
	.comm	FM_PCD_CC_AD_TABLE_ALIGN,4,4
	.comm	FM_PCD_CC_AD_ENTRY_SIZE,4,4
	.comm	FM_PCD_AD_CONT_LOOKUP_TYPE,4,4
	.comm	E_OK,4,4
	.comm	E_NO_MEMORY,4,4
	.comm	E_INVALID_VALUE,4,4
	.comm	E_INVALID_HANDLE,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_fm_manip.c_IpFragmentation.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MURAM alloc for Fragmentation table descriptor\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	IpFragmentation, %function
IpFragmentation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r4, r1
	ldr	r3, .L10
	ldr	r0, [r1]
	ldr	r1, [r3]
	bl	SANITY_CHECK_RETURN_ERROR
	ldr	r2, .L10+4
	ldr	r0, [r5]
	ldr	r3, .L10+8
	subs	r0, r0, r2
	movne	r0, #1
	ldr	r1, [r3]
	bl	SANITY_CHECK_RETURN_ERROR
	ldr	r6, .L10+12
	ldr	r8, [r4, #20]
	ldr	r3, .L10+16
	ldr	r0, [r8]
	ldr	r2, [r3]
	ldr	r1, [r6]
	bl	FM_MURAM_AllocMem
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L9
.L2:
	mov	r1, #0
	ldr	r2, [r6]
	bl	MemSet8
	ldr	r1, .L10+20
	ldr	r3, [r5, #16]
	ldr	r2, .L10+24
	ldr	r7, [r1]
	ldr	r2, [r2]
	ldr	r1, [r5, #4]
	cmp	r3, #0
	ldr	r3, .L10+28
	orr	r7, r7, r1, lsl r2
	ldr	r9, [r3]
	beq	.L3
	ldr	r1, .L10+32
	ldr	r3, .L10+36
	ldr	r2, .L10+40
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, [r5, #8]
	ldr	r2, [r2]
	and	r3, r3, r0, lsl r1
	orr	r9, r9, r3
	orr	r7, r7, r2
.L3:
	ldr	r0, [r8, #8]
	bl	UINT_TO_PTR
	bl	XX_VirtToPhys
	mov	r2, #255
	ldr	r6, [r8, #4]
	ldr	r3, .L10+44
	sub	r6, r0, r6
	ldr	r0, [r4, #12]
	ldr	r3, [r3]
	mov	r1, r9
	ldr	r0, [r0, #8]
	orr	r6, r6, r2, lsl r3
	bl	WRITE_UINT32
	ldr	r3, [r4, #12]
	mov	r1, r7
	ldr	r0, [r3, #4]
	bl	WRITE_UINT32
	ldr	r3, [r4, #12]
	mov	r1, r6
	ldr	r0, [r3]
	bl	WRITE_UINT32
	ldr	r3, .L10+48
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L10+52
	str	r1, [r4, #4]
	ldr	r0, [r3]
	str	r2, [r4, #16]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r2, .L10+56
	ldr	r3, .L10+60
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r2, .L10+64
	bl	RETURN_ERROR
	ldr	r0, [r4, #12]
	b	.L2
.L11:
	.align	2
.L10:
	.word	E_INVALID_HANDLE
	.word	65535
	.word	E_INVALID_VALUE
	.word	FM_PCD_CC_AD_ENTRY_SIZE
	.word	FM_PCD_CC_AD_TABLE_ALIGN
	.word	FM_PCD_AD_CONT_LOOKUP_TYPE
	.word	FM_PCD_MANIP_IP_FRAG_DF_SHIFT
	.word	HMAN_OC_IP_FRAGMENTATION
	.word	FM_PCD_MANIP_IP_FRAG_SG_BDID_SHIFT
	.word	FM_PCD_MANIP_IP_FRAG_SG_BDID_MASK
	.word	FM_PCD_MANIP_IP_FRAG_SG_BDID_EN
	.word	FM_PCD_MANIP_IP_FRAG_SCRATCH_BPID
	.word	TRUE
	.word	E_OK
	.word	E_NO_MEMORY
	.word	MAJOR
	.word	.LC0
	.size	IpFragmentation, .-IpFragmentation
	.comm	TRUE,4,4
	.comm	NO_MSG,4,4
	.comm	MAJOR,4,4
	.comm	HMAN_OC_IP_FRAGMENTATION,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SG_BDID_SHIFT,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SG_BDID_MASK,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SG_BDID_EN,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_SCRATCH_BPID,4,4
	.comm	FM_PCD_MANIP_IP_FRAG_DF_SHIFT,4,4
	.comm	FM_PCD_CC_AD_TABLE_ALIGN,4,4
	.comm	FM_PCD_CC_AD_ENTRY_SIZE,4,4
	.comm	FM_PCD_AD_CONT_LOOKUP_TYPE,4,4
	.comm	E_OK,4,4
	.comm	E_NO_MEMORY,4,4
	.comm	E_INVALID_VALUE,4,4
	.comm	E_INVALID_HANDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
