	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_cmp
_array_cmp:                             ## @array_cmp
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	_locfcinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$2, %esi
	callq	_LOCAL_FCINFO
	xorl	%edi, %edi
	callq	_PG_GETARG_ANY_ARRAY_P
	movq	%rax, %r15
	movl	$1, %edi
	callq	_PG_GETARG_ANY_ARRAY_P
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_PG_GET_COLLATION
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_AARR_NDIM
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_AARR_NDIM
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_AARR_DIMS
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_AARR_DIMS
	movq	%rax, %r13
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_ArrayGetNItems
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	callq	_ArrayGetNItems
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_AARR_ELEMTYPE
	movq	%rax, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_AARR_ELEMTYPE
	cmpq	%rax, %r13
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	cmpq	%r13, (%r12)
	je	LBB0_7
LBB0_4:
	movq	_TYPECACHE_CMP_PROC_FINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_lookup_type_cache
	movq	%rax, %r12
	movl	20(%rax), %edi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_UNDEFINED_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r13, %rdi
	callq	_format_type_be
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	(%rbx), %rax
	movq	%r12, (%rax)
LBB0_7:
	movl	8(%r12), %eax
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	12(%r12), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movb	16(%r12), %r14b
	movq	_locfcinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$20, %r12
	movl	(%rax), %edi
	movq	8(%rax), %rsi
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movq	%r12, %rdx
	movl	$2, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_InitFunctionCallInfoData
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_Min
	movl	%eax, %ebx
	leaq	-120(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_array_iter_setup
	leaq	-116(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_array_iter_setup
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.8:
	movsbl	%r14b, %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	-104(%rbp), %r13d               ## 4-byte Reload
	movl	-100(%rbp), %r12d               ## 4-byte Reload
	movl	-96(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%edx, %edx
	setne	%al
	testl	%ecx, %ecx
	setne	%dl
	andb	%al, %dl
	movl	$1, %eax
	cmovel	%eax, %r15d
	cmpl	$1, %ecx
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r15d
	cmpb	$1, %dl
	jne	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r14d
	cmpl	%r14d, -80(%rbp)                ## 4-byte Folded Reload
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-120(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_array_iter_next
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-116(%rbp), %rdi
	leaq	-108(%rbp), %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_array_iter_next
	movl	-112(%rbp), %ecx
	movl	-108(%rbp), %edx
	movl	%ecx, %esi
	orl	%edx, %esi
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_locfcinfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	8(%rdi), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 8(%rcx)
	movl	$0, (%rcx)
	movq	%rax, 24(%rcx)
	movl	$0, 16(%rcx)
	movl	$0, (%rdi)
	callq	_FunctionCallInvoke
	movl	%eax, %edi
	callq	_DatumGetInt32
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	setns	%al
	jmp	LBB0_27
LBB0_14:
	testl	%r15d, %r15d
	jne	LBB0_28
LBB0_15:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.16:
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.17:
	movl	%r15d, %ebx
	testl	%r15d, %r15d
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	jle	LBB0_21
## %bb.18:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax,4), %ecx
	cmpl	%ecx, (%rdx,%rax,4)
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_20
LBB0_21:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_AARR_LBOUND
	movq	%rax, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_AARR_LBOUND
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.23:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	cmpl	%edx, (%r14,%rcx,4)
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%rcx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rbx
	jne	LBB0_25
	jmp	LBB0_28
LBB0_26:
	setge	%al
LBB0_27:
	movzbl	%al, %eax
	leal	(%rax,%rax), %r15d
	decl	%r15d
LBB0_28:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_AARR_FREE_IF_COPY
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_AARR_FREE_IF_COPY
	movl	%r15d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%r15d, %r15d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_locfcinfo,8,3                  ## @locfcinfo
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot compare arrays of different element types"

	.comm	_TYPECACHE_CMP_PROC_FINFO,4,2   ## @TYPECACHE_CMP_PROC_FINFO
	.comm	_ERRCODE_UNDEFINED_FUNCTION,4,2 ## @ERRCODE_UNDEFINED_FUNCTION
L_.str.1:                               ## @.str.1
	.asciz	"could not identify a comparison function for type %s"

	.no_dead_strip	_array_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_cmp
_array_cmp:                             ; @array_cmp
	.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	x27, x0
Lloh0:
	adrp	x8, _locfcinfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _locfcinfo@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	mov	w1, #2
	bl	_LOCAL_FCINFO
	mov	w0, #0
	bl	_PG_GETARG_ANY_ARRAY_P
	mov	x26, x0
	mov	w0, #1
	bl	_PG_GETARG_ANY_ARRAY_P
	mov	x20, x0
	bl	_PG_GET_COLLATION
	mov	x28, x0
	mov	x0, x26
	bl	_AARR_NDIM
	mov	x24, x0
	mov	x0, x20
	bl	_AARR_NDIM
	mov	x19, x0
	mov	x0, x26
	bl	_AARR_DIMS
	mov	x22, x0
	mov	x0, x20
	bl	_AARR_DIMS
	mov	x23, x0
	mov	x0, x24
	mov	x1, x22
	bl	_ArrayGetNItems
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	str	w19, [sp, #16]                  ; 4-byte Folded Spill
	mov	x0, x19
	mov	x1, x23
	bl	_ArrayGetNItems
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x26
	bl	_AARR_ELEMTYPE
	mov	x21, x0
	mov	x0, x20
	bl	_AARR_ELEMTYPE
	cmp	x21, x0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_2:
	ldr	x8, [x27]
	ldr	x25, [x8]
	cbz	x25, LBB0_4
; %bb.3:
	ldr	x8, [x25]
	cmp	x8, x21
	b.eq	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _TYPECACHE_CMP_PROC_FINFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TYPECACHE_CMP_PROC_FINFO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_lookup_type_cache
	mov	x25, x0
	ldr	w0, [x0, #20]
	bl	_OidIsValid
	cbnz	w0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x8, _ERRCODE_UNDEFINED_FUNCTION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_FUNCTION@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x21
	bl	_format_type_be
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_6:
	ldr	x8, [x27]
	str	x25, [x8]
LBB0_7:
	str	w24, [sp, #20]                  ; 4-byte Folded Spill
	ldp	w21, w24, [x25, #8]
	ldrb	w19, [x25, #16]
Lloh22:
	adrp	x8, _locfcinfo@GOTPAGE
Lloh23:
	ldr	x8, [x8, _locfcinfo@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x2, x25, #20
	ldp	x0, x1, [x8]
	mov	w3, #2
	mov	x4, x28
	mov	x5, #0
	mov	x6, #0
	bl	_InitFunctionCallInfoData
	ldp	w1, w0, [sp, #24]               ; 8-byte Folded Reload
	bl	_Min
	mov	x28, x0
	add	x0, sp, #44
	mov	x1, x26
	bl	_array_iter_setup
	add	x0, sp, #40
	mov	x1, x20
	bl	_array_iter_setup
	cmp	w28, #1
	b.lt	LBB0_15
; %bb.8:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	mov	w27, #0
	mov	w25, #0
	sxtb	w26, w19
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	cmp	w9, #0
	cset	w9, ne
	cmp	w8, #0
	cset	w10, ne
	ands	w9, w10, w9
	csinc	w10, w27, wzr, ne
	cmp	w8, #0
	csinv	w27, w10, wzr, ne
	cmp	w9, #1
	b.ne	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w25, w25, #1
	cmp	w28, w25
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #44
	add	x1, sp, #36
	mov	x2, x25
	mov	x3, x21
	mov	x4, x24
	mov	x5, x26
	bl	_array_iter_next
	mov	x19, x0
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x25
	mov	x3, x21
	mov	x4, x24
	mov	x5, x26
	bl	_array_iter_next
	ldp	w9, w8, [sp, #32]
	orr	w10, w8, w9
	cbnz	w10, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh25:
	adrp	x8, _locfcinfo@GOTPAGE
Lloh26:
	ldr	x8, [x8, _locfcinfo@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	str	x19, [x9, #8]
	str	wzr, [x9]
	str	x0, [x9, #24]
	str	wzr, [x9, #16]
	str	wzr, [x8]
	mov	x0, x8
	bl	_FunctionCallInvoke
	bl	_DatumGetInt32
	cbz	x0, LBB0_10
; %bb.13:
	cmp	x0, #0
	mov	w8, #-1
	cneg	w27, w8, ge
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_25
LBB0_14:
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	cbnz	w27, LBB0_25
LBB0_15:
	ldp	w9, w8, [sp, #24]               ; 8-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.16:
	ldp	w8, w24, [sp, #16]              ; 8-byte Folded Reload
	cmp	w24, w8
	b.ne	LBB0_24
; %bb.17:
	mov	w19, w24
	cmp	w24, #1
	b.lt	LBB0_21
; %bb.18:
	mov	x8, x19
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	ldr	w10, [x23]
	cmp	w9, w10
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #4
	add	x22, x22, #4
	subs	x8, x8, #1
	b.ne	LBB0_19
LBB0_21:
	mov	x0, x26
	bl	_AARR_LBOUND
	mov	x21, x0
	mov	x0, x20
	bl	_AARR_LBOUND
	cmp	w24, #1
	b.lt	LBB0_26
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w27, #0
	add	x0, x0, #4
	add	x21, x21, #4
	subs	x19, x19, #1
	b.ne	LBB0_22
	b	LBB0_25
LBB0_24:
	mov	w8, #-1
	cneg	w27, w8, ge
LBB0_25:
	mov	x0, x26
	mov	w1, #0
	bl	_AARR_FREE_IF_COPY
	mov	x0, x20
	mov	w1, #1
	bl	_AARR_FREE_IF_COPY
	mov	x0, x27
	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
LBB0_26:
	mov	w27, #0
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_locfcinfo,8,3                  ; @locfcinfo
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot compare arrays of different element types"

	.comm	_TYPECACHE_CMP_PROC_FINFO,4,2   ; @TYPECACHE_CMP_PROC_FINFO
	.comm	_ERRCODE_UNDEFINED_FUNCTION,4,2 ; @ERRCODE_UNDEFINED_FUNCTION
l_.str.1:                               ; @.str.1
	.asciz	"could not identify a comparison function for type %s"

	.no_dead_strip	_array_cmp
.subsections_via_symbols
