	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dependency_degree
_dependency_degree:                     ## @dependency_degree
	.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
	movq	%r9, %r14
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$2, %edx
	setge	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_multi_sort_init
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-108(%rbp), %rsi
	movq	%r14, %rdi
	callq	_build_attnums_array
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leal	(,%rbx,8), %edi
	callq	_palloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.1:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	leaq	-1(%rax), %rcx
	movl	%eax, %r9d
	andl	$3, %r9d
	cmpq	$3, %rcx
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %edx
	andl	$-4, %edx
	xorl	%ecx, %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rsi
	movq	(%rbx,%rsi,8), %rsi
	movq	%rsi, (%rdi,%rcx,8)
	movq	8(%r15,%rcx,8), %rsi
	movq	(%rbx,%rsi,8), %rsi
	movq	%rsi, 8(%rdi,%rcx,8)
	movq	16(%r15,%rcx,8), %rsi
	movq	(%rbx,%rsi,8), %rsi
	movq	%rsi, 16(%rdi,%rcx,8)
	movq	24(%r15,%rcx,8), %rsi
	movq	(%rbx,%rsi,8), %rsi
	movq	%rsi, 24(%rdi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_4
LBB0_5:
	testq	%r9, %r9
	je	LBB0_8
## %bb.6:
	leaq	(%rdi,%rcx,8), %rdx
	leaq	(%r15,%rcx,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	(%rbx,%rdi,8), %rdi
	movq	%rdi, (%rdx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_7
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%r13), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_multi_sort_add_dimension
	incq	%r14
	movq	%rbx, %rax
	cmpq	%r14, %rbx
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	(%r15,%r14,8), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r13
	movl	8(%r13), %edi
	movq	_TYPECACHE_LT_OPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lookup_type_cache
	movq	%rax, %r12
	movq	(%rax), %rdx
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	(%r12), %rdx
	jmp	LBB0_11
LBB0_12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	-56(%rbp), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_build_sorted_items
	movl	-56(%rbp), %ecx
	testl	%ecx, %ecx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_13
## %bb.14:
	leal	-2(%rbx), %edx
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	decl	%ebx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %r13d
	movq	%rax, %r14
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	testl	%esi, %esi
	cmovnel	%eax, %r13d
	addl	%r13d, %edx
	movl	$1, %r13d
	xorl	%esi, %esi
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	-56(%rbp), %rcx
	addq	$8, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movl	%ecx, %eax
	cmpq	%rax, %rbx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	8(%r14), %rcx
	xorl	%edi, %edi
	movl	%esi, %r15d
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	movl	%edx, %r12d
	movq	%r14, %rdx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_multi_sort_compare_dims
	movl	%r15d, %esi
	movl	%r12d, %edx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_multi_sort_compare_dim
	movl	%r15d, %esi
	movl	%r12d, %edx
	cmpq	$1, %rax
	sbbl	$-1, %esi
	incl	%r13d
	jmp	LBB0_19
LBB0_13:
	xorl	%edx, %edx
LBB0_20:
	movl	%edx, %ebx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_pfree
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	cvtsi2sd	%ebx, %xmm0
	cvtsi2sdl	-52(%rbp), %xmm1        ## 4-byte Folded Reload
	divsd	%xmm1, %xmm0
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPECACHE_LT_OPR,4,2           ## @TYPECACHE_LT_OPR
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for ordering operator for type %u"

	.no_dead_strip	_dependency_degree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dependency_degree
_dependency_degree:                     ; @dependency_degree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x26, x4
	mov	x27, x3
	mov	x22, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	cmp	w2, #1
	cset	w0, gt
	bl	_Assert
	mov	x0, x22
	bl	_multi_sort_init
	mov	x20, x0
	add	x1, sp, #40
	mov	x0, x19
	bl	_build_attnums_array
	mov	x21, x0
	lsl	w0, w22, #3
	bl	_palloc
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	str	w22, [sp, #16]                  ; 4-byte Folded Spill
	subs	w8, w22, #1
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	b.lt	LBB0_7
; %bb.1:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	mov	w22, w8
	mov	x8, x22
	mov	x9, x27
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	x11, [x21, x11, lsl #3]
	str	x11, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x28, #0
Lloh0:
	adrp	x23, _TYPECACHE_LT_OPR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TYPECACHE_LT_OPR@GOTPAGEOFF]
Lloh2:
	adrp	x24, _InvalidOid@GOTPAGE
Lloh3:
	ldr	x24, [x24, _InvalidOid@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x19, #4]
	mov	x0, x20
	mov	x1, x28
	bl	_multi_sort_add_dimension
	add	x28, x28, #1
	cmp	x22, x28
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27, x28, lsl #3]
	ldr	x19, [x26, x8, lsl #3]
	ldr	w0, [x19, #8]
	ldr	w1, [x23]
	bl	_lookup_type_cache
	ldr	x2, [x0]
	ldr	x8, [x24]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
Lloh4:
	adrp	x8, _ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	ldr	x2, [x25]
	b	LBB0_4
LBB0_7:
	ldr	x8, [x26]
	ldr	w3, [x8]
	add	x1, sp, #44
	ldp	w19, w0, [sp, #16]              ; 8-byte Folded Reload
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x4, x20
	mov	x5, x19
	ldr	x6, [sp, #24]                   ; 8-byte Folded Reload
	bl	_build_sorted_items
	mov	x25, x0
	ldr	w8, [sp, #44]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x28, #0
	mov	w27, #0
	mov	w22, #0
	sub	w24, w19, #2
	mov	w23, #1
	mov	x26, x25
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	cmp	w22, #0
	mov	w22, #0
	csel	w8, w23, wzr, eq
	add	w27, w8, w27
	mov	w23, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrsw	x8, [sp, #44]
	add	x28, x28, #1
	add	x26, x26, #8
	cmp	x28, x8
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x28, #1
	cmp	x9, w8, uxtw
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x19, x26, #8
	mov	w0, #0
	mov	x1, x24
	mov	x2, x26
	mov	x3, x19
	mov	x4, x20
	bl	_multi_sort_compare_dims
	cbnz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	mov	x1, x26
	mov	x2, x19
	mov	x3, x20
	bl	_multi_sort_compare_dim
	cmp	x0, #0
	cinc	w22, w22, ne
	add	w23, w23, #1
	b	LBB0_10
LBB0_14:
	mov	w27, #0
LBB0_15:
	cbz	x25, LBB0_17
; %bb.16:
	mov	x0, x25
	bl	_pfree
LBB0_17:
	mov	x0, x20
	bl	_pfree
	mov	x0, x21
	bl	_pfree
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_pfree
	scvtf	d0, w27
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	scvtf	d1, w8
	fdiv	d0, d0, d1
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPECACHE_LT_OPR,4,2           ; @TYPECACHE_LT_OPR
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for ordering operator for type %u"

	.no_dead_strip	_dependency_degree
.subsections_via_symbols
