	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finalize_aggregates
_finalize_aggregates:                   ## @finalize_aggregates
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	32(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_process_ordered_aggregate_multi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r14
	addq	$16, %r15
	cmpq	%rax, %rbx
	movq	%r12, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r12
	movq	24(%r13), %r13
	cmpq	$0, (%r13,%r15)
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movq	_AGG_HASHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_AGG_MIXED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	leaq	(%r13,%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	cmpl	$1, 8(%r13,%r15)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_process_ordered_aggregate_single
	jmp	LBB0_10
LBB0_5:
	cmpl	$0, 16(%r13)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_13
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_finalize_aggregate
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	16(%r13), %rax
	addq	$4, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	addq	$4, %r14
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	$4, %r15
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movl	20(%r13), %edi
	callq	_DO_AGGSPLIT_SKIPFINAL
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_finalize_partialaggregate
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGG_HASHED,8,3                 ## @AGG_HASHED
	.comm	_AGG_MIXED,8,3                  ## @AGG_MIXED
	.no_dead_strip	_finalize_aggregates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finalize_aggregates
_finalize_aggregates:                   ; @finalize_aggregates
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #32]
	ldp	x23, x22, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x26, #0
	mov	x27, #0
Lloh0:
	adrp	x28, _AGG_MIXED@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AGG_MIXED@GOTPAGEOFF]
	mov	x24, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_process_ordered_aggregate_multi
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x21]
	add	x24, x24, #4
	add	x26, x26, #16
	cmp	x27, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x25, x8, x26
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _AGG_HASHED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AGG_HASHED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x9, [x28]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	bl	_Assert
	ldr	w8, [x25, #8]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_process_ordered_aggregate_single
	b	LBB0_3
LBB0_7:
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x25, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	mov	x4, x23
	bl	_finalize_aggregate
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21, #16]
	add	x23, x23, #4
	add	x22, x22, #4
	add	x20, x20, #4
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20]
	add	x24, x19, x8, lsl #2
	ldr	w0, [x21, #20]
	bl	_DO_AGGSPLIT_SKIPFINAL
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	mov	x4, x23
	bl	_finalize_partialaggregate
	b	LBB0_10
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AGG_HASHED,8,3                 ; @AGG_HASHED
	.comm	_AGG_MIXED,8,3                  ; @AGG_MIXED
	.no_dead_strip	_finalize_aggregates
.subsections_via_symbols
