	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EA_get_flat_size
_EA_get_flat_size:                      ## @EA_get_flat_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_EA_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	56(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ARR_SIZE                       ## TAILCALL
LBB0_1:
	movq	24(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movl	8(%r12), %r14d
	movl	12(%r12), %edi
	movl	48(%r12), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_ArrayGetNItems
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	sete	%dil
	callq	_Assert
	movq	16(%r12), %r13
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:
	movq	40(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	36(%r12), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edx
	movq	%rbx, %rdi
	callq	_att_addlength_datum
	movl	32(%r12), %esi
	movq	%rax, %rdi
	callq	_att_align_nominal
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_AllocSizeIsValid
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%r13,%r15,4)
	jne	LBB0_9
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
LBB0_10:
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_ARR_OVERHEAD_WITHNULLS
	jmp	LBB0_13
LBB0_12:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ARR_OVERHEAD_NONULLS
LBB0_13:
	addq	%rbx, %rax
	movq	%rax, 24(%r12)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EA_MAGIC,8,3                   ## @EA_MAGIC
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"array size exceeds the maximum allowed (%d)"

	.comm	_MaxAllocSize,8,3               ## @MaxAllocSize
	.no_dead_strip	_EA_get_flat_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EA_get_flat_size
_EA_get_flat_size:                      ; @EA_get_flat_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EA_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EA_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ARR_SIZE
LBB0_2:
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_15
; %bb.3:
	ldp	w21, w0, [x19, #8]
	ldr	w1, [x19, #48]
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	bl	_ArrayGetNItems
	cmp	w21, w0
	cset	w0, eq
	bl	_Assert
	ldr	x28, [x19, #16]
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x22, #0
	ldr	x26, [x19, #40]
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
	mov	x20, x21
Lloh5:
	adrp	x27, _MaxAllocSize@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MaxAllocSize@GOTPAGEOFF]
	mov	x25, x28
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19, #36]
	ldr	w2, [x26]
	mov	x0, x22
	bl	_att_addlength_datum
	ldr	w1, [x19, #32]
	bl	_att_align_nominal
	mov	x22, x0
	bl	_AllocSizeIsValid
	cbz	w0, LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #4
	add	x25, x25, #4
	subs	x20, x20, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x28, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	cbnz	w8, LBB0_6
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
Lloh10:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x27]
	mov	x0, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	b	LBB0_6
LBB0_10:
	mov	x22, #0
LBB0_11:
	cbz	x28, LBB0_13
; %bb.12:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	x1, x21
	bl	_ARR_OVERHEAD_WITHNULLS
	b	LBB0_14
LBB0_13:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ARR_OVERHEAD_NONULLS
LBB0_14:
	add	x0, x0, x22
	str	x0, [x19, #24]
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EA_MAGIC,8,3                   ; @EA_MAGIC
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"array size exceeds the maximum allowed (%d)"

	.comm	_MaxAllocSize,8,3               ; @MaxAllocSize
	.no_dead_strip	_EA_get_flat_size
.subsections_via_symbols
