	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecHashBuildSkewHash
_ExecHashBuildSkewHash:                 ## @ExecHashBuildSkewHash
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %edi
	callq	_OidIsValid
	testl	%r15d, %r15d
	jle	LBB0_29
## %bb.1:
	testl	%eax, %eax
	je	LBB0_29
## %bb.2:
	movq	_STATRELATTINH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%rbx), %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_Int16GetDatum
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_BoolGetDatum
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_SearchSysCache3
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	je	LBB0_29
## %bb.3:
	movq	_STATISTIC_KIND_MCV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ATTSTATSSLOT_VALUES@GOTPCREL(%rip), %rax
	movq	_ATTSTATSSLOT_NUMBERS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rax), %r8d
	leaq	-104(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_get_attstatsslot
	testq	%rax, %rax
	je	LBB0_28
## %bb.4:
	movl	-104(%rbp), %eax
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	testl	%r15d, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.6:
	movq	-88(%rbp), %rcx
	movl	%r15d, %edx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_8
## %bb.7:
	xorpd	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_5:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_13
LBB0_8:
	andl	$-4, %edx
	xorpd	%xmm0, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rcx,%rsi,8), %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	8(%rcx,%rsi,8), %xmm2
	addsd	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sdq	16(%rcx,%rsi,8), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	24(%rcx,%rsi,8), %xmm0
	addsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_9
LBB0_10:
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rcx,%rdx,8), %xmm1
	addsd	%xmm1, %xmm0
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_12
LBB0_13:
	movq	_SKEW_MIN_OUTER_FRACTION@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_27
## %bb.14:
	movl	$2, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r14d
	leal	(%r14,%r14), %eax
	cmpl	%r15d, %r14d
	jle	LBB0_15
## %bb.16:
	shll	$2, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, (%rbx)
	movl	%r14d, 4(%rbx)
	movl	56(%rbx), %edi
	movslq	%r14d, %r12
	leaq	(,%r12,8), %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MemoryContextAllocZero
	movq	%rax, 48(%rbx)
	movl	56(%rbx), %edi
	movslq	%r15d, %r13
	shlq	$2, %r13
	movl	%r13d, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, 8(%rbx)
	leaq	(,%r12,8), %rcx
	addq	%r13, %rcx
	movq	16(%rbx), %rax
	addq	%rcx, %rax
	movq	%rax, 16(%rbx)
	addl	%ecx, 24(%rbx)
	cmpq	32(%rbx), %rax
	jle	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
LBB0_18:
	testl	%r15d, %r15d
	jle	LBB0_27
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	72(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	decl	%r14d
	movl	%r15d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_27
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	64(%rbx), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rax
	movl	(%rax,%r12,4), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_FunctionCall1Coll
	movl	%eax, %edi
	callq	_DatumGetUInt32
	movl	%eax, %r15d
	movq	48(%rbx), %rax
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	andl	%r14d, %ebx
	movslq	%ebx, %r13
	movq	(%rax,%r13,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	cmpl	%r15d, (%rcx)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=2
	incl	%ebx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	56(%r12), %edi
	movl	$16, %esi
	callq	_MemoryContextAlloc
	movq	48(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	48(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	%r15d, (%rax)
	movq	$0, 8(%rax)
	movq	8(%r12), %rax
	movq	40(%r12), %rcx
	movl	%ebx, (%rax,%rcx,4)
	incq	%rcx
	movq	%rcx, 40(%r12)
	movq	_SKEW_BUCKET_OVERHEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r12), %rax
	addq	%rcx, %rax
	movq	%rax, 16(%r12)
	addl	%ecx, 24(%r12)
	cmpq	32(%r12), %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
	jmp	LBB0_26
LBB0_27:
	leaq	-104(%rbp), %rdi
	callq	_free_attstatsslot
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	%rbx, %rdi
	callq	_ReleaseSysCache
LBB0_29:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATRELATTINH,4,2              ## @STATRELATTINH
	.comm	_STATISTIC_KIND_MCV,4,2         ## @STATISTIC_KIND_MCV
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ## @ATTSTATSSLOT_VALUES
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ## @ATTSTATSSLOT_NUMBERS
	.comm	_SKEW_MIN_OUTER_FRACTION,8,3    ## @SKEW_MIN_OUTER_FRACTION
	.comm	_SKEW_BUCKET_OVERHEAD,8,3       ## @SKEW_BUCKET_OVERHEAD
	.no_dead_strip	_ExecHashBuildSkewHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecHashBuildSkewHash
_ExecHashBuildSkewHash:                 ; @ExecHashBuildSkewHash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_OidIsValid
	cmp	w21, #1
	b.lt	LBB0_30
; %bb.1:
	cbz	w0, LBB0_30
; %bb.2:
Lloh0:
	adrp	x8, _STATRELATTINH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATRELATTINH@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x20, #8]
	bl	_ObjectIdGetDatum
	mov	x23, x0
	ldr	w0, [x20, #4]
	bl	_Int16GetDatum
	mov	x24, x0
	ldr	w0, [x20]
	bl	_BoolGetDatum
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_SearchSysCache3
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbz	w0, LBB0_30
; %bb.3:
Lloh3:
	adrp	x8, _STATISTIC_KIND_MCV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATISTIC_KIND_MCV@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ATTSTATSSLOT_VALUES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATTSTATSSLOT_VALUES@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _ATTSTATSSLOT_NUMBERS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATTSTATSSLOT_NUMBERS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w4, w9, w8
	add	x0, sp, #8
	mov	x1, x20
	bl	_get_attstatsslot
	cbz	x0, LBB0_29
; %bb.4:
	ldr	w8, [sp, #8]
	cmp	w8, w21
	csel	w23, w8, w21, lt
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [sp, #24]
	cmp	w23, #8
	b.hs	LBB0_8
; %bb.6:
	mov	x9, #0
	movi	d0, #0000000000000000
	b	LBB0_11
LBB0_7:
	movi	d0, #0000000000000000
	b	LBB0_13
LBB0_8:
	and	x9, x23, #0xfffffff8
	add	x10, x8, #32
	movi	d0, #0000000000000000
	mov	x11, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x10, #-32]
	ldp	q3, q4, [x10], #64
	scvtf.2d	v1, v1
	mov	d5, v1[1]
	scvtf.2d	v2, v2
	mov	d6, v2[1]
	scvtf.2d	v3, v3
	mov	d7, v3[1]
	scvtf.2d	v4, v4
	mov	d16, v4[1]
	fadd	d0, d0, d1
	fadd	d0, d0, d5
	fadd	d0, d0, d2
	fadd	d0, d0, d6
	fadd	d0, d0, d3
	fadd	d0, d0, d7
	fadd	d0, d0, d4
	fadd	d0, d0, d16
	subs	x11, x11, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x9, x23
	b.eq	LBB0_13
LBB0_11:
	add	x8, x8, x9, lsl #3
	sub	x9, x23, x9
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x8], #8
	scvtf	d1, d1
	fadd	d0, d0, d1
	subs	x9, x9, #1
	b.ne	LBB0_12
LBB0_13:
Lloh15:
	adrp	x8, _SKEW_MIN_OUTER_FRACTION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SKEW_MIN_OUTER_FRACTION@GOTPAGEOFF]
Lloh17:
	ldr	d1, [x8]
	fcmp	d0, d1
	b.mi	LBB0_28
; %bb.14:
	mov	w8, #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	lsl	w8, w8, #1
	cmp	w9, w23
	b.le	LBB0_15
; %bb.16:
	lsl	w25, w9, #2
	mov	w8, #1
	stp	w8, w25, [x19]
	ldr	w0, [x19, #56]
	sbfiz	x21, x25, #3, #32
	mov	x1, x21
	bl	_MemoryContextAllocZero
	str	x0, [x19, #48]
	ldr	w0, [x19, #56]
	mov	x8, x23
	sbfiz	x22, x8, #2, #32
	mov	x1, x22
	bl	_MemoryContextAllocZero
	ldr	x8, [x19, #16]
	add	x9, x21, x22
	add	x8, x8, x9
	stp	x0, x8, [x19, #8]
	ldr	w10, [x19, #24]
	add	w9, w10, w9
	str	w9, [x19, #24]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.le	LBB0_18
; %bb.17:
	str	x8, [x19, #32]
LBB0_18:
	cmp	w23, #1
	b.lt	LBB0_28
; %bb.19:
	mov	x24, #0
	ldr	x21, [x19, #72]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x8, w25
	sub	x25, x8, #1
Lloh18:
	adrp	x26, _SKEW_BUCKET_OVERHEAD@GOTPAGE
Lloh19:
	ldr	x26, [x26, _SKEW_BUCKET_OVERHEAD@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x24, x24, #1
	cmp	x24, x23
	b.eq	LBB0_28
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x8, [x19, #64]
	ldr	w1, [x8]
	ldr	x8, [sp, #16]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x21
	bl	_FunctionCall1Coll
	bl	_DatumGetUInt32
	mov	x22, x0
	ldr	x8, [x19, #48]
	and	w27, w0, w25
	ldr	x9, [x8, w27, sxtw #3]
	cbz	x9, LBB0_25
LBB0_22:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x9]
	cmp	w9, w22
	b.eq	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	sxtw	x9, w27
	add	x9, x9, #1
	and	x27, x9, x25
	ldr	x9, [x8, x27, lsl #3]
	cbnz	x9, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x28, x27
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x8, x27
	sxtw	x28, w8
LBB0_26:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w0, [x19, #56]
	mov	w1, #16
	bl	_MemoryContextAlloc
	ldr	x8, [x19, #48]
	lsl	x9, x28, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x9]
	str	w22, [x8]
	str	xzr, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #40]
	str	w27, [x8, x9, lsl #2]
	add	x8, x9, #1
	str	x8, [x19, #40]
	ldr	x9, [x26]
	ldr	x8, [x19, #16]
	ldr	x10, [x19, #32]
	add	x8, x8, x9
	cmp	x8, x10
	str	x8, [x19, #16]
	ldr	w10, [x19, #24]
	add	w9, w10, w9
	str	w9, [x19, #24]
	b.le	LBB0_20
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
	str	x8, [x19, #32]
	b	LBB0_20
LBB0_28:
	add	x0, sp, #8
	bl	_free_attstatsslot
LBB0_29:
	mov	x0, x20
	bl	_ReleaseSysCache
LBB0_30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_STATRELATTINH,4,2              ; @STATRELATTINH
	.comm	_STATISTIC_KIND_MCV,4,2         ; @STATISTIC_KIND_MCV
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ; @ATTSTATSSLOT_VALUES
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ; @ATTSTATSSLOT_NUMBERS
	.comm	_SKEW_MIN_OUTER_FRACTION,8,3    ; @SKEW_MIN_OUTER_FRACTION
	.comm	_SKEW_BUCKET_OVERHEAD,8,3       ; @SKEW_BUCKET_OVERHEAD
	.no_dead_strip	_ExecHashBuildSkewHash
.subsections_via_symbols
