	.file	"extr_extended_stats.c_build_attnums_array.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	build_attnums_array
	.type	build_attnums_array, @function
build_attnums_array:
.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
	mov	r13, rdi
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	bms_num_members@PLT
	mov	r14d, eax
	test	rbx, rbx
	je	.L2
	mov	DWORD PTR [rbx], eax
.L2:
	lea	edi, 0[0+r14*8]
	mov	ebp, -1
	xor	ebx, ebx
	call	palloc@PLT
	mov	r15, rax
	mov	r12, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, ebp
	call	AttrNumberIsForUserDefinedAttr@PLT
	mov	edi, eax
	call	Assert@PLT
	xor	edi, edi
	cmp	DWORD PTR MaxAttrNumber[rip], ebp
	setge	dil
	add	ebx, 1
	call	Assert@PLT
	movsx	rax, ebp
	xor	edi, edi
	cmp	r14d, ebx
	mov	QWORD PTR [r12], rax
	setge	dil
	add	r12, 8
	call	Assert@PLT
.L3:
	mov	esi, ebp
	mov	rdi, r13
	call	bms_next_member@PLT
	mov	ebp, eax
	test	eax, eax
	jns	.L4
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
	.cfi_endproc
.LFE0:
	.size	build_attnums_array, .-build_attnums_array
	.comm	MaxAttrNumber,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_extended_stats.c_build_attnums_array.c"
	.text
	.align	2
	.global	build_attnums_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_attnums_array, %function
build_attnums_array:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r8, r0
	bl	bms_num_members
	cmp	r4, #0
	strne	r0, [r4]
	mov	r7, r0
	lsl	r0, r0, #2
	bl	palloc
	mvn	r4, #0
	mov	r10, r0
	mov	r6, r0
	mov	r5, #0
	ldr	r9, .L10
	b	.L3
.L4:
	bl	AttrNumberIsForUserDefinedAttr
	bl	Assert
	ldr	r0, [r9]
	cmp	r0, r4
	movlt	r0, #0
	movge	r0, #1
	bl	Assert
	cmp	r7, r5
	movlt	r0, #0
	movge	r0, #1
	str	r4, [r6], #4
	bl	Assert
.L3:
	mov	r1, r4
	mov	r0, r8
	bl	bms_next_member
	subs	r4, r0, #0
	add	r5, r5, #1
	bge	.L4
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	MaxAttrNumber
	.size	build_attnums_array, .-build_attnums_array
	.comm	MaxAttrNumber,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
