	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_encoding_conversion_args ## -- Begin function check_encoding_conversion_args
	.p2align	4, 0x90
_check_encoding_conversion_args:        ## @check_encoding_conversion_args
	.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	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %ebx
	callq	_PG_VALID_ENCODING
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	cmpl	%r13d, %ebx
	je	LBB0_5
## %bb.3:
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pg_enc2name_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %edx
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_5:
	movl	%r12d, %edi
	callq	_PG_VALID_ENCODING
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_7:
	cmpl	%r15d, %r12d
	je	LBB0_10
## %bb.8:
	testl	%r15d, %r15d
	js	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_pg_enc2name_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %edx
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_10:
	testl	%r14d, %r14d
	js	LBB0_12
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid source encoding ID: %d"

L_.str.1:                               ## @.str.1
	.asciz	"expected source encoding \"%s\", but got \"%s\""

	.comm	_pg_enc2name_tbl,8,3            ## @pg_enc2name_tbl
L_.str.2:                               ## @.str.2
	.asciz	"invalid destination encoding ID: %d"

L_.str.3:                               ## @.str.3
	.asciz	"expected destination encoding \"%s\", but got \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"encoding conversion length must not be negative"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_encoding_conversion_args ; -- Begin function check_encoding_conversion_args
	.p2align	2
_check_encoding_conversion_args:        ; @check_encoding_conversion_args
	.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	x20, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_PG_VALID_ENCODING
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	cmp	w23, w22
	b.eq	LBB0_5
; %bb.3:
	tbnz	w22, #31, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x9, _pg_enc2name_tbl@GOTPAGE
Lloh8:
	ldr	x9, [x9, _pg_enc2name_tbl@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	ldr	x8, [x9]
	ldr	w9, [x8, w22, uxtw #2]
	ldr	w8, [x8, w23, sxtw #2]
	stp	x9, x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_5:
	mov	x0, x21
	bl	_PG_VALID_ENCODING
	cbnz	w0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_7:
	cmp	w21, w20
	b.eq	LBB0_10
; %bb.8:
	tbnz	w20, #31, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	adrp	x9, _pg_enc2name_tbl@GOTPAGE
Lloh21:
	ldr	x9, [x9, _pg_enc2name_tbl@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	ldr	x8, [x9]
	ldr	w9, [x8, w20, uxtw #2]
	ldr	w8, [x8, w21, sxtw #2]
	stp	x9, x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_10:
	tbnz	w19, #31, LBB0_12
; %bb.11:
	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
LBB0_12:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	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
	b	_elog
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid source encoding ID: %d"

l_.str.1:                               ; @.str.1
	.asciz	"expected source encoding \"%s\", but got \"%s\""

	.comm	_pg_enc2name_tbl,8,3            ; @pg_enc2name_tbl
l_.str.2:                               ; @.str.2
	.asciz	"invalid destination encoding ID: %d"

l_.str.3:                               ; @.str.3
	.asciz	"expected destination encoding \"%s\", but got \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"encoding conversion length must not be negative"

.subsections_via_symbols
