	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eval_windowaggregates
_eval_windowaggregates:                 ## @eval_windowaggregates
	.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
	movl	(%rdi), %ebx
	testq	%rbx, %rbx
	je	LBB0_73
## %bb.1:
	movq	%rdi, %r13
	movq	104(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	96(%rdi), %r14
	movq	80(%rdi), %r12
	movq	88(%rdi), %r15
	callq	_update_frameheadpos
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
LBB0_3:
	cmpq	%rax, %rcx
	jne	LBB0_11
## %bb.4:
	movl	24(%r13), %ecx
	movq	_FRAMEOPTION_END_UNBOUNDED_FOLLOWING@GOTPCREL(%rip), %rdx
	movq	_FRAMEOPTION_END_CURRENT_ROW@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_11
## %bb.5:
	movq	_FRAMEOPTION_EXCLUSION@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_11
## %bb.6:
	movq	32(%r13), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_11
## %bb.7:
	cmpq	%rcx, 40(%r13)
	jle	LBB0_11
## %bb.8:
	testl	%ebx, %ebx
	jle	LBB0_73
## %bb.9:
	shlq	$4, %rbx
	leaq	(%rbx,%rbx,2), %r8
	xorl	%ecx, %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rdx
	movslq	(%rdx,%rcx), %rsi
	movq	8(%rdx,%rcx), %rdi
	movq	(%rax), %rbx
	movq	%rdi, (%rbx,%rsi,8)
	movl	16(%rdx,%rcx), %edx
	movq	8(%rax), %rdi
	movl	%edx, (%rdi,%rsi,4)
	addq	$48, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_10
	jmp	LBB0_73
LBB0_11:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.37:
	movq	%rbx, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	_FRAMEOPTION_EXCLUSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r13)
	je	LBB0_42
LBB0_43:                                ##   in Loop: Header=BB0_38 Depth=1
	movl	$1, 20(%rbx,%r15)
	movl	%r12d, %ebx
	incl	%ebx
LBB0_45:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	$48, %r15
	cmpq	%r15, %r14
	je	LBB0_13
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	movq	64(%r13), %rbx
	cmpq	$0, 32(%r13)
	je	LBB0_43
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	16(%r13), %rax
	cmpq	8(%r13), %rax
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	movl	40(%rbx,%r15), %edi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_41
	jmp	LBB0_43
LBB0_42:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	40(%r13), %rax
	cmpq	8(%r13), %rax
	jle	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_38 Depth=1
	movl	$0, 20(%rbx,%r15)
	movl	%r12d, %ebx
	jmp	LBB0_45
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, %ebx
	jge	LBB0_26
## %bb.14:
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	72(%r13), %rdi
	movl	%r12d, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	callq	_ResetExprContext
	incq	16(%r13)
	movq	%r12, %rdi
	callq	_ExecClearTuple
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_26
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	16(%r13), %rsi
	cmpq	8(%r13), %rsi
	jge	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_window_gettupleslot
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	72(%r13), %rdi
	movq	%r12, (%rdi)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=2
	addq	$48, %rbx
	cmpq	%rbx, %r14
	je	LBB0_24
LBB0_20:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	64(%r13), %r15
	cmpl	$0, 20(%r15,%rbx)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	leaq	(%r15,%rbx), %rdx
	movslq	(%r15,%rbx), %rsi
	shlq	$2, %rsi
	addq	56(%r13), %rsi
	movq	%r13, %rdi
	callq	_advance_windowaggregate_base
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	movl	$1, 20(%r15,%rbx)
	incl	%r12d
	jmp	LBB0_23
LBB0_26:
	movq	8(%r13), %rsi
	movq	%rsi, 16(%r13)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	js	LBB0_28
## %bb.27:
	callq	_WinSetMarkPosition
LBB0_28:
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_30
## %bb.29:
	movq	48(%r13), %rdi
	callq	_MemoryContextResetAndDeleteChildren
LBB0_30:
	testl	%ebx, %ebx
	movl	%r14d, %ebx
	jle	LBB0_51
## %bb.31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=1
	movslq	(%r12,%r15), %rsi
	addq	%r15, %r12
	shlq	$2, %rsi
	addq	56(%r13), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_initialize_windowaggregate
LBB0_50:                                ##   in Loop: Header=BB0_32 Depth=1
	addq	$48, %r15
	cmpq	%r15, %r14
	je	LBB0_51
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %r12
	movq	24(%r12,%r15), %rcx
	movb	$1, %al
	cmpq	48(%r13), %rcx
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	testl	%ebx, %ebx
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$0, 20(%r12,%r15)
	setne	%al
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	cmpl	$0, 20(%r12,%r15)
	jne	LBB0_36
## %bb.46:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$0, 16(%r12,%r15)
	jne	LBB0_50
## %bb.47:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$0, 36(%r12,%r15)
	jne	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	8(%r12,%r15), %rdi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
LBB0_49:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	$0, 8(%r12,%r15)
	movl	$1, 16(%r12,%r15)
	jmp	LBB0_50
LBB0_51:
	movq	40(%r13), %r12
	testl	%ebx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_54
## %bb.52:
	movq	8(%r13), %rax
	cmpq	%rax, %r12
	je	LBB0_54
## %bb.53:
	movq	%rax, 40(%r13)
	movq	%r15, %rdi
	callq	_ExecClearTuple
LBB0_54:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r14
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_55 Depth=1
	movq	72(%r13), %rdi
	callq	_ResetExprContext
	incq	40(%r13)
	movq	%r15, %rdi
	callq	_ExecClearTuple
LBB0_55:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_61 Depth 2
	movq	%r15, %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	40(%r13), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_window_gettupleslot
	testl	%eax, %eax
	je	LBB0_66
LBB0_57:                                ##   in Loop: Header=BB0_55 Depth=1
	movq	40(%r13), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_row_is_in_frame
	testl	%eax, %eax
	js	LBB0_66
## %bb.58:                              ##   in Loop: Header=BB0_55 Depth=1
	je	LBB0_65
## %bb.59:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	72(%r13), %rax
	movq	%r15, (%rax)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_65
## %bb.60:                              ##   in Loop: Header=BB0_55 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_63:                                ##   in Loop: Header=BB0_61 Depth=2
	movslq	(%rdx,%rbx), %rsi
	addq	%rbx, %rdx
	shlq	$2, %rsi
	addq	56(%r13), %rsi
	movq	%r13, %rdi
	callq	_advance_windowaggregate
LBB0_64:                                ##   in Loop: Header=BB0_61 Depth=2
	addq	$48, %rbx
	cmpq	%rbx, %r14
	je	LBB0_65
LBB0_61:                                ##   Parent Loop BB0_55 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	64(%r13), %rdx
	cmpl	$0, 20(%rdx,%rbx)
	jne	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=2
	cmpq	%r12, 40(%r13)
	jge	LBB0_63
	jmp	LBB0_64
LBB0_66:
	xorl	%edi, %edi
	cmpq	40(%r13), %r12
	setle	%dil
	callq	_Assert
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_73
## %bb.67:
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_68
	.p2align	4, 0x90
LBB0_71:                                ##   in Loop: Header=BB0_68 Depth=1
	movq	(%r15), %rax
	movq	%rax, 8(%rbx,%r12)
LBB0_72:                                ##   in Loop: Header=BB0_68 Depth=1
	movl	(%r14), %eax
	movl	%eax, 16(%rbx,%r12)
	addq	$48, %r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_73
LBB0_68:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r13), %rbx
	leaq	(%rbx,%r12), %rdx
	movslq	(%rbx,%r12), %rsi
	leaq	(,%rsi,8), %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r15
	shlq	$2, %rsi
	movq	8(%rax), %r14
	addq	%rsi, %r14
	addq	56(%r13), %rsi
	movq	%r13, %rdi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_finalize_windowaggregate
	cmpl	$0, 36(%rbx,%r12)
	jne	LBB0_71
## %bb.69:                              ##   in Loop: Header=BB0_68 Depth=1
	cmpl	$0, (%r14)
	jne	LBB0_71
## %bb.70:                              ##   in Loop: Header=BB0_68 Depth=1
	movq	24(%rbx,%r12), %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	movl	32(%rbx,%r12), %edx
	movl	36(%rbx,%r12), %esi
	callq	_datumCopy
	movq	%rax, 8(%rbx,%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	jmp	LBB0_72
LBB0_73:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"window frame head moved backward"

	.comm	_FRAMEOPTION_END_UNBOUNDED_FOLLOWING,4,2 ## @FRAMEOPTION_END_UNBOUNDED_FOLLOWING
	.comm	_FRAMEOPTION_END_CURRENT_ROW,4,2 ## @FRAMEOPTION_END_CURRENT_ROW
	.comm	_FRAMEOPTION_EXCLUSION,4,2      ## @FRAMEOPTION_EXCLUSION
L_.str.1:                               ## @.str.1
	.asciz	"could not re-fetch previously fetched frame row"

	.no_dead_strip	_eval_windowaggregates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eval_windowaggregates
_eval_windowaggregates:                 ; @eval_windowaggregates
	.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
	ldr	w26, [x0]
	cbz	w26, LBB0_74
; %bb.1:
	mov	x19, x0
	ldp	x20, x25, [x0, #96]
	ldp	x22, x21, [x0, #80]
	bl	_update_frameheadpos
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldp	x8, x9, [x19, #8]
LBB0_3:
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.4:
	ldr	w9, [x19, #24]
Lloh5:
	adrp	x10, _FRAMEOPTION_END_UNBOUNDED_FOLLOWING@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FRAMEOPTION_END_UNBOUNDED_FOLLOWING@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _FRAMEOPTION_END_CURRENT_ROW@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FRAMEOPTION_END_CURRENT_ROW@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_11
; %bb.5:
Lloh11:
	adrp	x10, _FRAMEOPTION_EXCLUSION@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FRAMEOPTION_EXCLUSION@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_11
; %bb.6:
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.gt	LBB0_11
; %bb.7:
	ldr	x8, [x19, #40]
	cmp	x8, x9
	b.le	LBB0_11
; %bb.8:
	cmp	w26, #1
	b.lt	LBB0_74
; %bb.9:
	mov	x8, #0
	add	x9, x26, x26, lsl #1
	lsl	x9, x9, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #64]
	add	x10, x10, x8
	ldrsw	x11, [x10]
	ldr	x12, [x10, #8]
	ldr	x13, [x25]
	str	x12, [x13, x11, lsl #3]
	ldr	w10, [x10, #16]
	ldr	x12, [x25, #8]
	str	w10, [x12, x11, lsl #2]
	add	x8, x8, #48
	cmp	x9, x8
	b.ne	LBB0_10
	b	LBB0_74
LBB0_11:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w26, #1
	b.lt	LBB0_21
; %bb.12:
	mov	x23, #0
	mov	w27, #0
	add	x8, x26, x26, lsl #1
	lsl	x24, x8, #4
	mov	w28, #1
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #24]
Lloh14:
	adrp	x9, _FRAMEOPTION_EXCLUSION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FRAMEOPTION_EXCLUSION@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x20, x23
	str	w28, [x8, #20]
	add	w27, w27, #1
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #48
	cmp	x24, x23
	b.eq	LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #64]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldp	x9, x8, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x20, x23
	ldr	w0, [x8, #40]
	bl	_OidIsValid
	cbnz	w0, LBB0_13
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x20, x23
	str	wzr, [x8, #20]
	b	LBB0_15
LBB0_21:
	mov	w27, #0
LBB0_22:
	cmp	w27, w26
	b.ge	LBB0_35
; %bb.23:
	add	x8, x26, x26, lsl #1
	lsl	x28, x8, #4
	mov	w23, #1
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [x19, #72]
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	bl	_ResetExprContext
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	mov	x0, x22
	bl	_ExecClearTuple
	cmp	w27, w26
	b.ge	LBB0_36
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
	ldp	x8, x1, [x19, #8]
	cmp	x1, x8
	b.ge	LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x20
	mov	x2, x22
	bl	_window_gettupleslot
	cbnz	w0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [x19, #72]
	str	x22, [x0]
	cmp	w26, #1
	b.lt	LBB0_25
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x20, #0
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=2
	add	x20, x20, #48
	cmp	x28, x20
	b.eq	LBB0_24
LBB0_32:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #64]
	add	x24, x8, x20
	ldr	w8, [x24, #20]
	cbnz	w8, LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	ldrsw	x8, [x24]
	ldr	x9, [x19, #56]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	mov	x2, x24
	bl	_advance_windowaggregate_base
	cbnz	w0, LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=2
	str	w23, [x24, #20]
	add	w27, w27, #1
	b	LBB0_31
LBB0_35:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
LBB0_36:
	ldr	x1, [x19, #8]
	str	x1, [x19, #16]
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_38
; %bb.37:
	mov	x0, x20
	bl	_WinSetMarkPosition
LBB0_38:
	cmp	w27, #1
	b.lt	LBB0_40
; %bb.39:
	ldr	x0, [x19, #48]
	bl	_MemoryContextResetAndDeleteChildren
LBB0_40:
	cmp	w26, #1
	b.lt	LBB0_52
; %bb.41:
	mov	x23, #0
	add	x8, x26, x26, lsl #1
	lsl	x24, x8, #4
	mov	w28, #1
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=1
	ldrsw	x8, [x20, x23]
	ldr	x9, [x19, #56]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	mov	x2, x22
	bl	_initialize_windowaggregate
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x23, x23, #48
	cmp	x24, x23
	b.eq	LBB0_52
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #64]
	add	x22, x20, x23
	ldr	x8, [x22, #24]
	ldr	x9, [x19, #48]
	cmp	x8, x9
	ccmp	w27, #0, #4, eq
	b.ne	LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	w0, #1
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	w8, [x22, #20]
	cmp	w8, #0
	cset	w0, ne
LBB0_47:                                ;   in Loop: Header=BB0_44 Depth=1
	bl	_Assert
	ldr	w8, [x22, #20]
	cbnz	w8, LBB0_42
; %bb.48:                               ;   in Loop: Header=BB0_44 Depth=1
	add	x22, x20, x23
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_43
; %bb.49:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	w8, [x22, #36]
	cbnz	w8, LBB0_51
; %bb.50:                               ;   in Loop: Header=BB0_44 Depth=1
	add	x8, x20, x23
	ldr	x0, [x8, #8]
	bl	_DatumGetPointer
	bl	_pfree
LBB0_51:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x8, x20, x23
	str	xzr, [x8, #8]
	str	w28, [x22, #16]
	b	LBB0_43
LBB0_52:
	ldr	x22, [x19, #40]
	cmp	w27, #1
	b.lt	LBB0_55
; %bb.53:
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.eq	LBB0_55
; %bb.54:
	str	x8, [x19, #40]
	mov	x0, x21
	bl	_ExecClearTuple
LBB0_55:
	add	x8, x26, x26, lsl #1
	lsl	x23, x8, #4
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_57 Depth=1
	ldr	x0, [x19, #72]
	bl	_ResetExprContext
	ldr	x8, [x19, #40]
	add	x8, x8, #1
	str	x8, [x19, #40]
	mov	x0, x21
	bl	_ExecClearTuple
LBB0_57:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_65 Depth 2
	mov	x0, x21
	bl	_TupIsNull
	cbz	x0, LBB0_59
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=1
	ldr	x1, [x19, #40]
	mov	x0, x24
	mov	x2, x21
	bl	_window_gettupleslot
	cbz	w0, LBB0_67
LBB0_59:                                ;   in Loop: Header=BB0_57 Depth=1
	ldr	x1, [x19, #40]
	mov	x0, x19
	mov	x2, x21
	bl	_row_is_in_frame
	tbnz	w0, #31, LBB0_67
; %bb.60:                               ;   in Loop: Header=BB0_57 Depth=1
	cbz	w0, LBB0_56
; %bb.61:                               ;   in Loop: Header=BB0_57 Depth=1
	ldr	x8, [x19, #72]
	str	x21, [x8]
	cmp	w26, #1
	b.lt	LBB0_56
; %bb.62:                               ;   in Loop: Header=BB0_57 Depth=1
	mov	x20, #0
	b	LBB0_65
LBB0_63:                                ;   in Loop: Header=BB0_65 Depth=2
	ldrsw	x8, [x8, x20]
	ldr	x9, [x19, #56]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	bl	_advance_windowaggregate
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=2
	add	x20, x20, #48
	cmp	x23, x20
	b.eq	LBB0_56
LBB0_65:                                ;   Parent Loop BB0_57 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #64]
	add	x2, x8, x20
	ldr	w9, [x2, #20]
	cbnz	w9, LBB0_63
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=2
	ldr	x9, [x19, #40]
	cmp	x9, x22
	b.ge	LBB0_63
	b	LBB0_64
LBB0_67:
	ldr	x8, [x19, #40]
	cmp	x22, x8
	cset	w0, le
	bl	_Assert
	cmp	w26, #1
	b.lt	LBB0_74
; %bb.68:
	mov	x24, #0
	add	x8, x26, x26, lsl #1
	lsl	x26, x8, #4
	b	LBB0_71
LBB0_69:                                ;   in Loop: Header=BB0_71 Depth=1
	ldr	x8, [x22]
	str	x8, [x21, #8]
LBB0_70:                                ;   in Loop: Header=BB0_71 Depth=1
	ldr	w8, [x20]
	add	x9, x27, x24
	str	w8, [x9, #16]
	add	x24, x24, #48
	cmp	x26, x24
	b.eq	LBB0_74
LBB0_71:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x27, [x19, #56]
	add	x21, x27, x24
	ldrsw	x9, [x21]
	ldp	x10, x11, [x25]
	add	x22, x10, x9, lsl #3
	lsl	x9, x9, #2
	add	x20, x11, x9
	add	x1, x8, x9
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x20
	bl	_finalize_windowaggregate
	ldr	w8, [x21, #36]
	cbnz	w8, LBB0_69
; %bb.72:                               ;   in Loop: Header=BB0_71 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_69
; %bb.73:                               ;   in Loop: Header=BB0_71 Depth=1
	add	x28, x27, x24
	ldr	x0, [x28, #24]
	bl	_MemoryContextSwitchTo
	mov	x23, x0
	ldr	x0, [x22]
	ldr	w1, [x21, #36]
	ldr	w2, [x28, #32]
	bl	_datumCopy
	str	x0, [x28, #8]
	mov	x0, x23
	bl	_MemoryContextSwitchTo
	b	LBB0_70
LBB0_74:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"window frame head moved backward"

	.comm	_FRAMEOPTION_END_UNBOUNDED_FOLLOWING,4,2 ; @FRAMEOPTION_END_UNBOUNDED_FOLLOWING
	.comm	_FRAMEOPTION_END_CURRENT_ROW,4,2 ; @FRAMEOPTION_END_CURRENT_ROW
	.comm	_FRAMEOPTION_EXCLUSION,4,2      ; @FRAMEOPTION_EXCLUSION
l_.str.1:                               ; @.str.1
	.asciz	"could not re-fetch previously fetched frame row"

	.no_dead_strip	_eval_windowaggregates
.subsections_via_symbols
