	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function range_union_internal
_range_union_internal:                  ## @range_union_internal
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_RangeTypeGetOid
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_RangeTypeGetOid
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rbx
	leaq	-60(%rbp), %r8
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_range_deserialize
	leaq	-76(%rbp), %r12
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_range_deserialize
	cmpl	$0, -60(%rbp)
	jne	LBB0_10
## %bb.3:
	cmpl	$0, -56(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%r13, %r14
	jmp	LBB0_10
LBB0_5:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_range_overlaps_internal
	movl	%eax, %edi
	callq	_DatumGetBool
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_range_adjacent_internal
	movl	%eax, %edi
	callq	_DatumGetBool
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DATA_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	leaq	-68(%rbp), %r13
	movq	%r13, %rsi
	movq	%r12, %r14
	movq	%r12, %rdx
	callq	_range_cmp_bounds
	testq	%rax, %rax
	cmovsq	%r13, %r14
	movq	%r15, %rdi
	movq	%r15, %r12
	movq	%rbx, %r15
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_range_cmp_bounds
	testq	%rax, %rax
	cmovgq	%r15, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_make_range
	movq	%rax, %r14
LBB0_10:
	movq	%r14, %rax
	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	"range types do not match"

	.comm	_ERRCODE_DATA_EXCEPTION,4,2     ## @ERRCODE_DATA_EXCEPTION
L_.str.1:                               ## @.str.1
	.asciz	"result of range union would not be contiguous"

	.no_dead_strip	_range_union_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function range_union_internal
_range_union_internal:                  ; @range_union_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_RangeTypeGetOid
	mov	x23, x0
	mov	x0, x20
	bl	_RangeTypeGetOid
	cmp	x23, x0
	b.eq	LBB0_2
; %bb.1:
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
LBB0_2:
	add	x2, sp, #28
	add	x3, sp, #20
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_range_deserialize
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_range_deserialize
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_10
; %bb.3:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x20, x21
	b	LBB0_10
LBB0_5:
	cbz	w22, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_range_overlaps_internal
	bl	_DatumGetBool
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_range_adjacent_internal
	bl	_DatumGetBool
	cbnz	w0, LBB0_9
; %bb.8:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _ERRCODE_DATA_EXCEPTION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_DATA_EXCEPTION@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_9:
	add	x20, sp, #28
	add	x21, sp, #24
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x19
	bl	_range_cmp_bounds
	cmp	x0, #0
	csel	x20, x20, x21, lt
	add	x21, sp, #20
	add	x22, sp, #16
	add	x1, sp, #20
	add	x2, sp, #16
	mov	x0, x19
	bl	_range_cmp_bounds
	cmp	x0, #0
	csel	x2, x21, x22, gt
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_make_range
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"range types do not match"

	.comm	_ERRCODE_DATA_EXCEPTION,4,2     ; @ERRCODE_DATA_EXCEPTION
l_.str.1:                               ; @.str.1
	.asciz	"result of range union would not be contiguous"

	.no_dead_strip	_range_union_internal
.subsections_via_symbols
