	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function calc_arraycontsel
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calc_arraycontsel:                     ## @calc_arraycontsel
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_TYPECACHE_CMP_PROC_FINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_lookup_type_cache
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movq	%r14, %rdi
	callq	_DatumGetArrayTypeP
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_statistic_proc_security_check
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	(%r13), %edi
	callq	_GETSTRUCT
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	_STATISTIC_KIND_MCELEM@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), %rdi
	movl	(%rdi), %r8d
	orl	(%rax), %r8d
	leaq	-88(%rbp), %rdi
	callq	_get_attstatsslot
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_OID_ARRAY_CONTAINED_OP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %esi
	movq	_STATISTIC_KIND_DECHIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ATTSTATSSLOT_NUMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-120(%rbp), %rdi
	callq	_get_attstatsslot
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
LBB0_7:
	movq	-64(%rbp), %rdx
	movl	-72(%rbp), %ecx
	movq	-80(%rbp), %r8
	movl	-88(%rbp), %r9d
	movl	-120(%rbp), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	pushq	%r12
	pushq	%rax
	pushq	-112(%rbp)
	callq	_mcelem_array_selec
	addq	$32, %rsp
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	leaq	-120(%rbp), %rdi
	callq	_free_attstatsslot
	leaq	-88(%rbp), %rdi
	callq	_free_attstatsslot
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_9
LBB0_14:
	movl	%r12d, %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DEFAULT_SEL                    ## TAILCALL
LBB0_10:
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r12
	pushq	$0
	pushq	$0
	callq	_mcelem_array_selec
	addq	$32, %rsp
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
LBB0_8:
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r12
	pushq	$0
	pushq	$0
	callq	_mcelem_array_selec
	addq	$32, %rsp
LBB0_9:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subsd	(%rax), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
LBB0_11:
	movq	%r15, %rdi
	callq	_PointerGetDatum
	cmpq	%r14, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_pfree
LBB0_13:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPECACHE_CMP_PROC_FINFO,4,2   ## @TYPECACHE_CMP_PROC_FINFO
	.comm	_STATISTIC_KIND_MCELEM,4,2      ## @STATISTIC_KIND_MCELEM
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ## @ATTSTATSSLOT_VALUES
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ## @ATTSTATSSLOT_NUMBERS
	.comm	_OID_ARRAY_CONTAINED_OP,4,2     ## @OID_ARRAY_CONTAINED_OP
	.comm	_STATISTIC_KIND_DECHIST,4,2     ## @STATISTIC_KIND_DECHIST
	.no_dead_strip	_calc_arraycontsel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_arraycontsel
_calc_arraycontsel:                     ; @calc_arraycontsel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x21, x3
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _TYPECACHE_CMP_PROC_FINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPECACHE_CMP_PROC_FINFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_lookup_type_cache
	mov	x22, x0
	ldr	w0, [x0]
	bl	_OidIsValid
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_DatumGetArrayTypeP
	mov	x20, x0
	ldr	w0, [x24]
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x24
	bl	_statistic_proc_security_check
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x24]
	bl	_GETSTRUCT
	mov	x23, x0
Lloh3:
	adrp	x8, _STATISTIC_KIND_MCELEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATISTIC_KIND_MCELEM@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x25, _InvalidOid@GOTPAGE
Lloh7:
	ldr	x25, [x25, _InvalidOid@GOTPAGEOFF]
Lloh8:
	adrp	x8, _ATTSTATSSLOT_VALUES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATTSTATSSLOT_VALUES@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x26, _ATTSTATSSLOT_NUMBERS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ATTSTATSSLOT_NUMBERS@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w4, w9, w8
	add	x0, sp, #48
	bl	_get_attstatsslot
	cbz	x0, LBB0_10
; %bb.4:
Lloh13:
	adrp	x8, _OID_ARRAY_CONTAINED_OP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OID_ARRAY_CONTAINED_OP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x24]
Lloh16:
	adrp	x8, _STATISTIC_KIND_DECHIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STATISTIC_KIND_DECHIST@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w3, [x25]
	ldr	w4, [x26]
	add	x0, sp, #16
	bl	_get_attstatsslot
	cbnz	x0, LBB0_7
LBB0_6:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
LBB0_7:
	ldr	x2, [sp, #72]
	ldr	w3, [sp, #64]
	ldr	x4, [sp, #56]
	ldr	w5, [sp, #48]
	ldr	x6, [sp, #24]
	ldr	w7, [sp, #16]
	str	w21, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_mcelem_array_selec
	fmov	d8, d0
	add	x0, sp, #16
	bl	_free_attstatsslot
	add	x0, sp, #48
	bl	_free_attstatsslot
	b	LBB0_11
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_DEFAULT_SEL
LBB0_9:
	str	w21, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_mcelem_array_selec
	fmov	d8, d0
	b	LBB0_12
LBB0_10:
	str	w21, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_mcelem_array_selec
	fmov	d8, d0
LBB0_11:
	ldr	d0, [x23]
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	fmul	d8, d8, d0
LBB0_12:
	mov	x0, x20
	bl	_PointerGetDatum
	cmp	x0, x19
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_pfree
LBB0_14:
	fmov	d0, d8
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPECACHE_CMP_PROC_FINFO,4,2   ; @TYPECACHE_CMP_PROC_FINFO
	.comm	_STATISTIC_KIND_MCELEM,4,2      ; @STATISTIC_KIND_MCELEM
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ATTSTATSSLOT_VALUES,4,2        ; @ATTSTATSSLOT_VALUES
	.comm	_ATTSTATSSLOT_NUMBERS,4,2       ; @ATTSTATSSLOT_NUMBERS
	.comm	_OID_ARRAY_CONTAINED_OP,4,2     ; @OID_ARRAY_CONTAINED_OP
	.comm	_STATISTIC_KIND_DECHIST,4,2     ; @STATISTIC_KIND_DECHIST
	.no_dead_strip	_calc_arraycontsel
.subsections_via_symbols
