	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotValidateName    ## -- Begin function ReplicationSlotValidateName
	.p2align	4, 0x90
_ReplicationSlotValidateName:           ## @ReplicationSlotValidateName
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_13
## %bb.4:
	movb	(%rbx), %cl
	movl	$1, %eax
	testb	%cl, %cl
	je	LBB0_12
## %bb.5:
	leaq	1(%rbx), %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rdx), %ecx
	incq	%rdx
	testb	%cl, %cl
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-97(%rcx), %esi
	cmpb	$26, %sil
	jb	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$95, %cl
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addb	$-48, %cl
	cmpb	$10, %cl
	jb	LBB0_11
## %bb.9:
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	callq	_errhint
	jmp	LBB0_10
LBB0_1:
	movq	_ERRCODE_INVALID_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_13:
	movq	_ERRCODE_NAME_TOO_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%rbx, %rsi
	callq	_errmsg
LBB0_10:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERRCODE_INVALID_NAME,4,2       ## @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"replication slot name \"%s\" is too short"

	.comm	_NAMEDATALEN,8,3                ## @NAMEDATALEN
	.comm	_ERRCODE_NAME_TOO_LONG,4,2      ## @ERRCODE_NAME_TOO_LONG
L_.str.1:                               ## @.str.1
	.asciz	"replication slot name \"%s\" is too long"

L_.str.2:                               ## @.str.2
	.asciz	"replication slot name \"%s\" contains invalid character"

L_.str.3:                               ## @.str.3
	.asciz	"Replication slot names may only contain lower case letters, numbers, and the underscore character."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotValidateName    ; -- Begin function ReplicationSlotValidateName
	.p2align	2
_ReplicationSlotValidateName:           ; @ReplicationSlotValidateName
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _NAMEDATALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAMEDATALEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.2:
	ldrb	w9, [x20]
	cbz	w9, LBB0_13
; %bb.3:
	mov	w8, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x20, x8]
	add	x8, x8, #1
	cbz	w9, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #97
	cmp	w10, #26
	b.lo	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #95
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w9, w9, #48
	cmp	w9, #10
	b.lo	LBB0_4
; %bb.8:
Lloh3:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_errmsg
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errhint
	b	LBB0_12
LBB0_9:
Lloh10:
	adrp	x8, _ERRCODE_INVALID_NAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_INVALID_NAME@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _ERRCODE_NAME_TOO_LONG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_NAME_TOO_LONG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	mov	x1, x20
	bl	_errmsg
LBB0_12:
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ERRCODE_INVALID_NAME,4,2       ; @ERRCODE_INVALID_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"replication slot name \"%s\" is too short"

	.comm	_NAMEDATALEN,8,3                ; @NAMEDATALEN
	.comm	_ERRCODE_NAME_TOO_LONG,4,2      ; @ERRCODE_NAME_TOO_LONG
l_.str.1:                               ; @.str.1
	.asciz	"replication slot name \"%s\" is too long"

l_.str.2:                               ; @.str.2
	.asciz	"replication slot name \"%s\" contains invalid character"

l_.str.3:                               ; @.str.3
	.asciz	"Replication slot names may only contain lower case letters, numbers, and the underscore character."

.subsections_via_symbols
