	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_compute_data_size         ## -- Begin function heap_compute_data_size
	.p2align	4, 0x90
_heap_compute_data_size:                ## @heap_compute_data_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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	cmpl	$-1, %edx
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %esi
	movl	%r13d, %edi
	movl	%r14d, %ecx
	callq	_att_align_datum
	movl	(%r15), %esi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_att_addlength_datum
	movl	%eax, %r13d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx,%rbx,4)
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_TupleDescAttr
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ATT_IS_PACKABLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_VARATT_CAN_MAKE_SHORT
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_VARATT_CONVERTED_SHORT_SIZE
	addl	%eax, %r13d
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_VARATT_IS_EXTERNAL_EXPANDED
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %esi
	movl	%r13d, %edi
	callq	_att_align_nominal
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_DatumGetEOHP
	movl	%eax, %edi
	callq	_EOH_get_flat_size
	movq	%rax, %r13
	addl	%r15d, %r13d
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	jmp	LBB0_10
LBB0_1:
	xorl	%r13d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_compute_data_size         ; -- Begin function heap_compute_data_size
	.p2align	2
_heap_compute_data_size:                ; @heap_compute_data_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w26, [x0]
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	mov	w23, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	cmn	w2, #1
	b.eq	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25, #4]
	mov	x0, x23
	mov	x3, x24
	bl	_att_align_datum
	ldr	w1, [x25]
	mov	x2, x24
	bl	_att_addlength_datum
	mov	x23, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	cmp	x26, x22
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, x22, lsl #2]
	cbnz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w24, [x20, x22, lsl #2]
	mov	x0, x21
	mov	x1, x22
	bl	_TupleDescAttr
	mov	x25, x0
	bl	_ATT_IS_PACKABLE
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_DatumGetPointer
	bl	_VARATT_CAN_MAKE_SHORT
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_DatumGetPointer
	bl	_VARATT_CONVERTED_SHORT_SIZE
	add	w23, w23, w0
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL_EXPANDED
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25, #4]
	mov	x0, x23
	bl	_att_align_nominal
	mov	x23, x0
	mov	x0, x24
	bl	_DatumGetEOHP
	bl	_EOH_get_flat_size
	add	w23, w23, w0
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	b	LBB0_3
LBB0_12:
	mov	w23, #0
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
