	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function text_overlay
_text_overlay:                          ## @text_overlay
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testl	%edx, %edx
	jg	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_SUBSTRING_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_pg_add_s32_overflow
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	%r15, %rdi
	callq	_PointerGetDatum
	decl	%ebx
	movl	%eax, %edi
	movl	$1, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_text_substring
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_PointerGetDatum
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	movl	$-1, %edx
	movl	$1, %ecx
	callq	_text_substring
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_text_catenate
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_text_catenate
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_SUBSTRING_ERROR,4,2    ## @ERRCODE_SUBSTRING_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"negative substring length not allowed"

	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
L_.str.1:                               ## @.str.1
	.asciz	"integer out of range"

	.no_dead_strip	_text_overlay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function text_overlay
_text_overlay:                          ; @text_overlay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
	cmp	w2, #0
	b.gt	LBB0_2
; %bb.1:
	ldr	w23, [x24]
Lloh2:
	adrp	x8, _ERRCODE_SUBSTRING_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERRCODE_SUBSTRING_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_errcode
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_2:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_pg_add_s32_overflow
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w22, [x24]
Lloh7:
	adrp	x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_4:
	mov	x0, x20
	bl	_PointerGetDatum
	sub	w2, w21, #1
	mov	w1, #1
	mov	w3, #0
	bl	_text_substring
	mov	x21, x0
	mov	x0, x20
	bl	_PointerGetDatum
	ldr	w1, [sp, #12]
	mov	w2, #-1
	mov	w3, #1
	bl	_text_substring
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_text_catenate
	mov	x1, x20
	bl	_text_catenate
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_SUBSTRING_ERROR,4,2    ; @ERRCODE_SUBSTRING_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"negative substring length not allowed"

	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
l_.str.1:                               ; @.str.1
	.asciz	"integer out of range"

	.no_dead_strip	_text_overlay
.subsections_via_symbols
