	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function varchar_input
_varchar_input:                         ## @varchar_input
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	jl	LBB0_9
## %bb.1:
	cmpq	%rbx, %r15
	jae	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_pg_mbcharcliplen
	cmpq	%rbx, %rax
	jae	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpq	%r13, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, (%r14,%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_STRING_DATA_RIGHT_TRUNCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_7
LBB0_3:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cstring_to_text_with_len       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_STRING_DATA_RIGHT_TRUNCATION,4,2 ## @ERRCODE_STRING_DATA_RIGHT_TRUNCATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value too long for type character varying(%d)"

	.no_dead_strip	_varchar_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function varchar_input
_varchar_input:                         ; @varchar_input
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VARHDRSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VARHDRSZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	subs	x21, x2, x8
	ccmp	x21, x1, #2, ge
	b.hs	LBB0_7
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_pg_mbcharcliplen
	mov	x22, x0
	cmp	x0, x20
	b.hs	LBB0_6
; %bb.2:
Lloh3:
	adrp	x25, _ERROR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x26, _ERRCODE_STRING_DATA_RIGHT_TRUNCATION@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ERRCODE_STRING_DATA_RIGHT_TRUNCATION@GOTPAGEOFF]
	mov	x27, x19
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x20, x20, #1
	add	x27, x27, #1
	cmp	x22, x20
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x27, x22]
	cmp	w8, #32
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [x25]
	ldr	w0, [x26]
	bl	_errcode
	mov	x0, x23
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	b	LBB0_3
LBB0_6:
	mov	x20, x22
LBB0_7:
	mov	x0, x19
	mov	x1, 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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_cstring_to_text_with_len
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_STRING_DATA_RIGHT_TRUNCATION,4,2 ; @ERRCODE_STRING_DATA_RIGHT_TRUNCATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value too long for type character varying(%d)"

	.no_dead_strip	_varchar_input
.subsections_via_symbols
