	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpchar_input
_bpchar_input:                          ## @bpchar_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	movq	%r12, %r15
	jmp	LBB0_12
LBB0_2:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	subq	%rax, %r14
	movq	%r12, %rsi
	callq	_pg_mbstrlen_with_len
	cmpq	%rax, %r14
	jae	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_pg_mbcharcliplen
	movq	%rax, %r15
	cmpq	%r12, %rax
	jae	LBB0_11
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$32, (%rbx,%r15)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_STRING_DATA_RIGHT_TRUNCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_errmsg
	movl	%r13d, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_5
LBB0_8:
	addq	%r12, %r14
	subq	%rax, %r14
	movq	%r14, %r15
	jmp	LBB0_12
LBB0_10:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	movq	%r15, %r12
LBB0_12:
	movq	_VARHDRSZ@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	%r15, %rdi
	callq	_palloc
	movq	%rax, %r13
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	movq	%rax, %rdi
	callq	_SET_VARSIZE
	movq	%r13, %rdi
	callq	_VARDATA
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	subq	%r12, %r15
	jbe	LBB0_14
## %bb.13:
	addq	%r12, %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	movq	%r15, %rdx
	callq	_memset
LBB0_14:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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(%d)"

	.no_dead_strip	_bpchar_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpchar_input
_bpchar_input:                          ; @bpchar_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _VARHDRSZ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VARHDRSZ@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, x2
	b.le	LBB0_2
; %bb.1:
	mov	x21, x19
	b	LBB0_10
LBB0_2:
	sub	x22, x2, x8
	mov	x0, x20
	mov	x1, x19
	bl	_pg_mbstrlen_with_len
	cmp	x22, x0
	b.hs	LBB0_9
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_pg_mbcharcliplen
	mov	x21, x0
	cmp	x0, x19
	b.hs	LBB0_8
; %bb.4:
Lloh2:
	adrp	x26, _ERROR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x27, _ERRCODE_STRING_DATA_RIGHT_TRUNCATION@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ERRCODE_STRING_DATA_RIGHT_TRUNCATION@GOTPAGEOFF]
	mov	x28, x20
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x19, x19, #1
	add	x28, x28, #1
	cmp	x21, x19
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x28, x21]
	cmp	w8, #32
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [x26]
	ldr	w0, [x27]
	bl	_errcode
	mov	x0, x23
	mov	x1, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	b	LBB0_5
LBB0_8:
	mov	x19, x21
	b	LBB0_10
LBB0_9:
	add	x8, x22, x19
	sub	x21, x8, x0
LBB0_10:
	ldr	x8, [x25]
	add	x0, x8, x21
	bl	_palloc
	mov	x22, x0
	ldr	x8, [x25]
	add	x1, x8, x21
	bl	_SET_VARSIZE
	mov	x0, x22
	bl	_VARDATA
	mov	x23, x0
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	subs	x2, x21, x19
	b.ls	LBB0_12
; %bb.11:
	add	x0, x23, x19
	mov	w1, #32
	bl	_memset
LBB0_12:
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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(%d)"

	.no_dead_strip	_bpchar_input
.subsections_via_symbols
