	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_range_serialize                ## -- Begin function range_serialize
	.p2align	4, 0x90
_range_serialize:                       ## @range_serialize
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	sete	%dil
	callq	_Assert
	testl	%ebx, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
LBB0_1:
	movq	_RANGE_EMPTY@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	jmp	LBB0_15
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_range_cmp_bound_values
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATA_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_7
LBB0_4:
	je	LBB0_5
LBB0_7:
	cmpq	$0, 24(%r15)
	je	LBB0_9
## %bb.8:
	movq	_RANGE_LB_INF@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	cmpq	$0, 24(%r14)
	je	LBB0_12
LBB0_11:
	movq	_RANGE_UB_INF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
	cmpq	$0, 16(%r15)
	movq	_RANGE_LB_INC@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ebx
	cmovel	%eax, %ebx
	cmpq	$0, 24(%r14)
	jne	LBB0_11
LBB0_12:
	cmpq	$0, 16(%r14)
	je	LBB0_15
## %bb.13:
	movq	_RANGE_UB_INC@GOTPCREL(%rip), %rax
LBB0_14:
	orb	(%rax), %bl
LBB0_15:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movb	8(%rax), %r14b
	movb	9(%rax), %r15b
	movl	$4, %r12d
	movl	$4, %edi
	callq	_MAXALIGN
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_Assert
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movsbl	%bl, %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_RANGE_HAS_LBOUND
	movsbl	%r14b, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ebx
	movsbl	%r15b, %r15d
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rsi
	cmpl	$-1, %ebx
	jne	LBB0_18
## %bb.17:
	movq	%rsi, %rdi
	callq	_PG_DETOAST_DATUM_PACKED
	movl	%eax, %edi
	callq	_PointerGetDatum
	movq	%rax, %rsi
	movq	%rax, 8(%r14)
LBB0_18:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$4, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	callq	_datum_compute_size
	movl	%eax, %r12d
LBB0_19:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_RANGE_HAS_UBOUND
	testq	%rax, %rax
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_20
## %bb.21:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rsi
	cmpl	$-1, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_23
## %bb.22:
	movq	%rsi, %rdi
	callq	_PG_DETOAST_DATUM_PACKED
	movl	%eax, %edi
	callq	_PointerGetDatum
	movq	%rax, %rsi
	movq	%rax, 8(%r14)
LBB0_23:
	movl	%r12d, %edi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	callq	_datum_compute_size
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_20:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_24:
	incl	%r12d
	movl	%r12d, %edi
	callq	_palloc0
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_SET_VARSIZE
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	4(%r15), %r14
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_RANGE_HAS_LBOUND
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_Assert
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_datum_write
	movq	%rax, %r14
LBB0_26:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_RANGE_HAS_UBOUND
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	xorl	%edi, %edi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, (%r12)
	sete	%dil
	callq	_Assert
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	callq	_datum_write
	movq	%rax, %r14
LBB0_28:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movb	%al, (%r14)
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 16(%r15)
	je	LBB0_1
## %bb.6:
	cmpq	$0, 16(%r14)
	jne	LBB0_7
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_RANGE_EMPTY,1,0                ## @RANGE_EMPTY
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATA_EXCEPTION,4,2     ## @ERRCODE_DATA_EXCEPTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"range lower bound must be less than or equal to range upper bound"

	.comm	_RANGE_LB_INF,1,0               ## @RANGE_LB_INF
	.comm	_RANGE_LB_INC,1,0               ## @RANGE_LB_INC
	.comm	_RANGE_UB_INF,1,0               ## @RANGE_UB_INF
	.comm	_RANGE_UB_INC,1,0               ## @RANGE_UB_INC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_range_serialize                ; -- Begin function range_serialize
	.p2align	2
_range_serialize:                       ; @range_serialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	cbz	w22, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _RANGE_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RANGE_EMPTY@GOTPAGEOFF]
	ldrb	w25, [x8]
	b	LBB0_12
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_range_cmp_bound_values
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, _ERRCODE_DATA_EXCEPTION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_DATA_EXCEPTION@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_5
LBB0_4:
	cbz	w0, LBB0_25
LBB0_5:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.6:
Lloh10:
	adrp	x8, _RANGE_LB_INF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RANGE_LB_INF@GOTPAGEOFF]
	ldrb	w25, [x8]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _RANGE_UB_INF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RANGE_UB_INF@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20, #16]
Lloh14:
	adrp	x9, _RANGE_LB_INC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RANGE_LB_INC@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	x8, #0
	csel	w25, wzr, w9, eq
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_7
LBB0_9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.10:
Lloh16:
	adrp	x8, _RANGE_UB_INC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RANGE_UB_INC@GOTPAGEOFF]
LBB0_11:
	ldrb	w8, [x8]
	orr	w25, w8, w25
LBB0_12:
	ldr	x8, [x21, #8]
	ldp	w22, w23, [x8]
	ldrb	w24, [x8, #8]
	ldrb	w28, [x8, #9]
	mov	w27, #4
	mov	w0, #4
	bl	_MAXALIGN
	cmp	w0, #4
	cset	w0, eq
	bl	_Assert
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	sxtb	w26, w25
	mov	x0, x26
	bl	_RANGE_HAS_LBOUND
	sxtb	w25, w24
	sxtb	w24, w28
	cbz	x0, LBB0_16
; %bb.13:
	ldr	x1, [x20, #8]
	cmn	w22, #1
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x1
	bl	_PG_DETOAST_DATUM_PACKED
	bl	_PointerGetDatum
	mov	x1, x0
	str	x0, [x20, #8]
LBB0_15:
	mov	w0, #4
	mov	x2, x23
	mov	x3, x25
	mov	x4, x22
	mov	x5, x24
	bl	_datum_compute_size
	mov	x27, x0
LBB0_16:
	mov	x0, x26
	bl	_RANGE_HAS_UBOUND
	cbz	x0, LBB0_20
; %bb.17:
	ldr	x1, [x19, #8]
	cmn	w22, #1
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x1
	bl	_PG_DETOAST_DATUM_PACKED
	bl	_PointerGetDatum
	mov	x1, x0
	str	x0, [x19, #8]
LBB0_19:
	mov	x0, x27
	mov	x2, x23
	mov	x3, x25
	mov	x4, x22
	mov	x5, x24
	bl	_datum_compute_size
	mov	x27, x0
LBB0_20:
	add	w28, w27, #1
	mov	x0, x28
	bl	_palloc0
	mov	x27, x0
	mov	x1, x28
	bl	_SET_VARSIZE
	ldr	w8, [x21]
	mov	x21, x27
	str	w8, [x21], #4
	mov	x0, x26
	bl	_RANGE_HAS_LBOUND
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w0, [x20]
	bl	_Assert
	ldr	x1, [x20, #8]
	mov	x0, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x22
	mov	x5, x24
	bl	_datum_write
	mov	x21, x0
LBB0_22:
	mov	x0, x26
	bl	_RANGE_HAS_UBOUND
	cbz	x0, LBB0_24
; %bb.23:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x1, [x19, #8]
	mov	x0, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x22
	mov	x5, x24
	bl	_datum_write
	mov	x21, x0
LBB0_24:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	strb	w8, [x21]
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_1
; %bb.26:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_5
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RANGE_EMPTY,1,0                ; @RANGE_EMPTY
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATA_EXCEPTION,4,2     ; @ERRCODE_DATA_EXCEPTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"range lower bound must be less than or equal to range upper bound"

	.comm	_RANGE_LB_INF,1,0               ; @RANGE_LB_INF
	.comm	_RANGE_LB_INC,1,0               ; @RANGE_LB_INC
	.comm	_RANGE_UB_INF,1,0               ; @RANGE_UB_INF
	.comm	_RANGE_UB_INC,1,0               ; @RANGE_UB_INC
.subsections_via_symbols
