	.file	"extr_array_expanded.c_EA_get_flat_size.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"array size exceeds the maximum allowed (%d)"
	.text
	.p2align 4
	.type	EA_get_flat_size, @function
EA_get_flat_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR EA_MAGIC[rip]
	cmp	QWORD PTR [rdi], rax
	sete	dil
	movzx	edi, dil
	call	Assert@PLT
	mov	rdi, QWORD PTR 56[r15]
	test	rdi, rdi
	jne	.L16
	mov	rbp, QWORD PTR 24[r15]
	test	rbp, rbp
	je	.L17
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbp
	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
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[r15]
	mov	ebx, DWORD PTR 8[r15]
	mov	esi, DWORD PTR 48[r15]
	mov	edi, eax
	mov	DWORD PTR 12[rsp], ebx
	mov	DWORD PTR 8[rsp], eax
	call	ArrayGetNItems@PLT
	xor	edi, edi
	cmp	eax, ebx
	sete	dil
	call	Assert@PLT
	mov	r12, QWORD PTR 40[r15]
	mov	r14, QWORD PTR 16[r15]
	test	ebx, ebx
	jle	.L4
	sub	ebx, 1
	xor	r13d, r13d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rax, 1[r13]
	cmp	rbx, r13
	je	.L4
.L10:
	mov	r13, rax
.L7:
	test	r14, r14
	je	.L5
	mov	eax, DWORD PTR [r14+r13*4]
	test	eax, eax
	jne	.L6
.L5:
	mov	edx, DWORD PTR [r12+r13*4]
	mov	esi, DWORD PTR 36[r15]
	mov	rdi, rbp
	call	att_addlength_datum@PLT
	mov	esi, DWORD PTR 32[r15]
	mov	rdi, rax
	call	att_align_nominal@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	AllocSizeIsValid@PLT
	test	eax, eax
	jne	.L6
	mov	edi, DWORD PTR ERRCODE_PROGRAM_LIMIT_EXCEEDED[rip]
	call	errcode@PLT
	mov	esi, DWORD PTR MaxAllocSize[rip]
	lea	rdi, .LC0[rip]
	call	errmsg@PLT
	mov	edi, DWORD PTR ERROR[rip]
	mov	esi, eax
	call	ereport@PLT
	lea	rax, 1[r13]
	cmp	rbx, r13
	jne	.L10
.L4:
	test	r14, r14
	je	.L8
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 8[rsp]
	call	ARR_OVERHEAD_WITHNULLS@PLT
	add	rbp, rax
.L9:
	mov	QWORD PTR 24[r15], rbp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	add	rsp, 24
	.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
	jmp	ARR_SIZE@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rsp]
	call	ARR_OVERHEAD_NONULLS@PLT
	add	rbp, rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	EA_get_flat_size, .-EA_get_flat_size
	.comm	MaxAllocSize,8,8
	.comm	ERROR,4,4
	.comm	ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,4
	.comm	EA_MAGIC,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_array_expanded.c_EA_get_flat_size.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"array size exceeds the maximum allowed (%d)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	EA_get_flat_size, %function
EA_get_flat_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r3]
	mov	r6, r0
	ldr	r0, [r0]
	sub	sp, sp, #12
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r0, [r6, #36]
	cmp	r0, #0
	bne	.L16
	ldr	r5, [r6, #16]
	cmp	r5, #0
	beq	.L17
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r9, [r6, #8]
	ldr	r1, [r6, #32]
	mov	r0, r9
	ldr	r7, [r6, #4]
	bl	ArrayGetNItems
	sub	r0, r0, r7
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	cmp	r7, #0
	ldr	r8, [r6, #28]
	ldr	fp, [r6, #12]
	ble	.L4
	mov	r4, r5
	ldr	r10, .L19+4
	str	r9, [sp, #4]
	b	.L7
.L6:
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L18
.L7:
	cmp	fp, #0
	beq	.L5
	ldr	r3, [fp, r4, lsl #2]
	cmp	r3, #0
	bne	.L6
.L5:
	ldr	r2, [r8, r4, lsl #2]
	mov	r0, r5
	ldr	r1, [r6, #24]
	bl	att_addlength_datum
	ldr	r1, [r6, #20]
	bl	att_align_nominal
	mov	r5, r0
	bl	AllocSizeIsValid
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L19+8
	add	r4, r4, #1
	ldr	r0, [r3]
	ldr	r3, .L19+12
	ldr	r9, [r3]
	bl	errcode
	ldr	r3, .L19+16
	mov	r0, r10
	ldr	r1, [r3]
	bl	errmsg
	mov	r1, r0
	mov	r0, r9
	bl	ereport
	cmp	r7, r4
	bne	.L7
.L18:
	ldr	r9, [sp, #4]
.L4:
	cmp	fp, #0
	beq	.L8
	mov	r1, r7
	mov	r0, r9
	bl	ARR_OVERHEAD_WITHNULLS
	add	r5, r5, r0
.L9:
	mov	r0, r5
	str	r5, [r6, #16]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ARR_SIZE
.L8:
	mov	r0, r9
	bl	ARR_OVERHEAD_NONULLS
	add	r5, r5, r0
	b	.L9
.L20:
	.align	2
.L19:
	.word	EA_MAGIC
	.word	.LC0
	.word	ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.word	ERROR
	.word	MaxAllocSize
	.size	EA_get_flat_size, .-EA_get_flat_size
	.comm	MaxAllocSize,4,4
	.comm	ERROR,4,4
	.comm	ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,4
	.comm	EA_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
