	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_char2wchar                     ## -- Begin function char2wchar
	.p2align	4, 0x90
_char2wchar:                            ## @char2wchar
	.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	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_COLLPROVIDER_LIBC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
LBB0_3:
	callq	_Assert
	testq	%r13, %r13
	je	LBB0_6
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pnstrdup
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	%r12, %rdi
	callq	_pfree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_mbstowcs
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_pfree
	cmpq	$-1, %rbx
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_pg_verifymbstr
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CHARACTER_NOT_IN_REPERTOIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	$-1, %rbx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLPROVIDER_LIBC,8,3          ## @COLLPROVIDER_LIBC
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mbstowcs_l is not available"

	.comm	_ERRCODE_CHARACTER_NOT_IN_REPERTOIRE,4,2 ## @ERRCODE_CHARACTER_NOT_IN_REPERTOIRE
L_.str.1:                               ## @.str.1
	.asciz	"invalid multibyte character for locale"

L_.str.2:                               ## @.str.2
	.asciz	"The server's LC_CTYPE locale is probably incompatible with the database encoding."

	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_PG_UTF8,8,3                    ## @PG_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_char2wchar                     ; -- Begin function char2wchar
	.p2align	2
_char2wchar:                            ; @char2wchar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cbz	x4, LBB0_2
; %bb.1:
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _COLLPROVIDER_LIBC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COLLPROVIDER_LIBC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	cbnz	x21, LBB0_3
	b	LBB0_7
LBB0_2:
	mov	w0, #1
	bl	_Assert
	cbz	x21, LBB0_7
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_pnstrdup
	mov	x24, x0
	cbz	x23, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	x0, x24
	bl	_pfree
	mov	x21, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	bl	_mbstowcs
	mov	x21, x0
	mov	x0, x24
	bl	_pfree
	cmn	x21, #1
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_pg_verifymbstr
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _ERRCODE_CHARACTER_NOT_IN_REPERTOIRE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_CHARACTER_NOT_IN_REPERTOIRE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLPROVIDER_LIBC,8,3          ; @COLLPROVIDER_LIBC
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mbstowcs_l is not available"

	.comm	_ERRCODE_CHARACTER_NOT_IN_REPERTOIRE,4,2 ; @ERRCODE_CHARACTER_NOT_IN_REPERTOIRE
l_.str.1:                               ; @.str.1
	.asciz	"invalid multibyte character for locale"

l_.str.2:                               ; @.str.2
	.asciz	"The server's LC_CTYPE locale is probably incompatible with the database encoding."

	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_PG_UTF8,8,3                    ; @PG_UTF8
.subsections_via_symbols
