	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NIAddAffix
_NIAddAffix:                            ## @NIAddAffix
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -208(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %esi
	cmpl	%esi, (%rdi)
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	movl	%edx, -164(%rbp)                ## 4-byte Spill
	jge	LBB0_2
## %bb.1:
	movq	8(%r15), %r14
	jmp	LBB0_6
LBB0_2:
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	leal	(%rsi,%rsi), %eax
	movl	%eax, 4(%r15)
	movq	8(%r15), %rdi
	shll	$7, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc
	jmp	LBB0_5
LBB0_4:
	movl	$16, 4(%r15)
	movl	$1024, %edi                     ## imm = 0x400
	callq	_palloc
LBB0_5:
	movq	%rax, %r14
	movq	%rax, 8(%r15)
LBB0_6:
	movslq	(%r15), %r12
	shlq	$6, %r12
	leaq	(%r14,%r12), %r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpb	$0, (%rbx)
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_RS_isRegis
	movl	$0, (%r13)
	leaq	(%r14,%r12), %rcx
	addq	$4, %rcx
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movl	$1, (%rcx)
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	16(%rbp), %r13d
	cmpl	%r13d, (%rax)
	leaq	60(%r14,%r12), %rdi
	sete	%sil
	cmpb	$0, (%rbx)
	jne	LBB0_12
## %bb.11:
	movq	_VoidString@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_12:
	movq	%rbx, %rdx
	callq	_RS_compile
	jmp	LBB0_15
LBB0_8:
	movl	$1, (%r13)
	movl	$0, 4(%r14,%r12)
	movl	16(%rbp), %r13d
LBB0_15:
	movl	-164(%rbp), %edx                ## 4-byte Reload
	movb	%dl, 8(%r14,%r12)
	movsbl	%dl, %eax
	movq	_FF_COMPOUNDONLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
## %bb.16:
	movq	_FF_COMPOUNDPERMITFLAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
LBB0_17:
	movq	_FF_COMPOUNDFLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_19
## %bb.18:
	leaq	(%r14,%r12), %rax
	addq	$8, %rax
	orb	%dl, %cl
	movb	%cl, (%rax)
LBB0_19:
	movq	%r15, %rdi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	callq	_cpstrdup
	movq	%rax, 16(%r14,%r12)
	movl	%r13d, 24(%r14,%r12)
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_22
## %bb.20:
	cmpb	$0, (%rsi)
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_cpstrdup
	jmp	LBB0_23
LBB0_22:
	movq	_VoidString@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_23:
	movq	%rax, 32(%r14,%r12)
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movq	%rax, 40(%r14,%r12)
	testl	%eax, %eax
	jle	LBB0_25
## %bb.24:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cpstrdup
	jmp	LBB0_26
LBB0_25:
	movq	_VoidString@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_26:
	movq	%rax, 48(%r14,%r12)
	incl	(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$0, (%rcx)
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %edi
	callq	_tmpalloc
	movq	%rax, %rdi
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	_FF_SUFFIX@GOTPCREL(%rip), %rax
	movl	16(%rbp), %r13d
	cmpl	%r13d, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_sprintf
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	callq	_strlen
	movl	%eax, %ebx
	leal	4(,%rbx,4), %edi
	callq	_tmpalloc
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_pg_mb2wchar_with_len
	leaq	(%r14,%r12), %rbx
	addq	$56, %rbx
	movq	_REG_ADVANCED@GOTPCREL(%rip), %rdx
	movq	_REG_NOSUB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_DEFAULT_COLLATION_OID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%rbx, %rdi
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %edx
	callq	_pg_regcomp
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	-160(%rbp), %rdx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$100, %ecx
	callq	_pg_regerror
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_REGULAR_EXPRESSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	leaq	-160(%rbp), %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_15
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_FF_SUFFIX,4,2                  ## @FF_SUFFIX
	.comm	_VoidString,8,3                 ## @VoidString
L_.str.1:                               ## @.str.1
	.asciz	"%s$"

L_.str.2:                               ## @.str.2
	.asciz	"^%s"

	.comm	_REG_ADVANCED,4,2               ## @REG_ADVANCED
	.comm	_REG_NOSUB,4,2                  ## @REG_NOSUB
	.comm	_DEFAULT_COLLATION_OID,4,2      ## @DEFAULT_COLLATION_OID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_REGULAR_EXPRESSION,4,2 ## @ERRCODE_INVALID_REGULAR_EXPRESSION
L_.str.3:                               ## @.str.3
	.asciz	"invalid regular expression: %s"

	.comm	_FF_COMPOUNDONLY,4,2            ## @FF_COMPOUNDONLY
	.comm	_FF_COMPOUNDPERMITFLAG,4,2      ## @FF_COMPOUNDPERMITFLAG
	.comm	_FF_COMPOUNDFLAG,4,2            ## @FF_COMPOUNDFLAG
	.no_dead_strip	_NIAddAffix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function NIAddAffix
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_NIAddAffix:                            ; @NIAddAffix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x23, x6
	mov	x27, x5
	mov	x22, x4
	mov	x26, x3
	mov	x25, x2
	mov	x28, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	w9, w8, [x0]
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	x21, [x19, #8]
	b	LBB0_6
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
	lsl	w9, w8, #1
	str	w9, [x19, #4]
	ldr	x0, [x19, #8]
	lsl	w1, w8, #7
	bl	_repalloc
	b	LBB0_5
LBB0_4:
	mov	w8, #16
	str	w8, [x19, #4]
	mov	w0, #1024
	bl	_palloc
LBB0_5:
	mov	x21, x0
	str	x0, [x19, #8]
LBB0_6:
	ldrsw	x24, [x19]
	add	x20, x21, x24, lsl #6
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.7:
	ldrb	w8, [x26]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x0, x26
	bl	_RS_isRegis
	str	wzr, [x20]
	add	x20, x21, x24, lsl #6
	add	x8, x20, #4
	cbz	x0, LBB0_24
; %bb.9:
	mov	w9, #1
	str	w9, [x8]
	add	x0, x20, #60
Lloh5:
	adrp	x8, _FF_SUFFIX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FF_SUFFIX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w1, eq
	ldrb	w8, [x26]
Lloh8:
	adrp	x9, _VoidString@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VoidString@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x2, x9, x26, eq
	bl	_RS_compile
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
LBB0_11:
	add	x8, x21, x24, lsl #6
	strb	w25, [x8, #8]!
Lloh13:
	adrp	x9, _FF_COMPOUNDONLY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FF_COMPOUNDONLY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w25
	b.ne	LBB0_13
; %bb.12:
Lloh16:
	adrp	x9, _FF_COMPOUNDPERMITFLAG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FF_COMPOUNDPERMITFLAG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w25
	b.eq	LBB0_15
LBB0_13:
Lloh19:
	adrp	x9, _FF_COMPOUNDFLAG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FF_COMPOUNDFLAG@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w25
	b.ne	LBB0_15
; %bb.14:
	orr	w9, w9, w25
	strb	w9, [x8]
LBB0_15:
	mov	x0, x19
	mov	x1, x28
	bl	_cpstrdup
	add	x8, x21, x24, lsl #6
	str	x0, [x8, #16]
	str	w23, [x8, #24]
	cbz	x22, LBB0_18
; %bb.16:
	ldrb	w8, [x22]
	cbz	w8, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x22
	bl	_cpstrdup
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x8, _VoidString@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VoidString@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
LBB0_19:
	add	x20, x21, x24, lsl #6
	str	x0, [x20, #32]
	mov	x0, x27
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x20, #40]
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x1, x27
	bl	_cpstrdup
	b	LBB0_22
LBB0_21:
Lloh25:
	adrp	x8, _VoidString@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VoidString@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
LBB0_22:
	add	x8, x21, x24, lsl #6
	str	x0, [x8, #48]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.23:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_24:
	str	wzr, [x8]
	mov	x0, x26
	bl	_strlen
	add	w0, w0, #3
	bl	_tmpalloc
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, x0
Lloh31:
	adrp	x8, _FF_SUFFIX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FF_SUFFIX@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, l_.str.2@PAGE
Lloh35:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh36:
	adrp	x10, l_.str.1@PAGE
Lloh37:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w23
	csel	x1, x10, x9, eq
	mov	x2, x26
	bl	_sprintf
	mov	x0, x27
	bl	_strlen
	mov	x26, x0
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_tmpalloc
	str	x28, [sp]                       ; 8-byte Folded Spill
	mov	x28, x0
	mov	x0, x27
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	mov	x1, x28
	mov	x2, x26
	bl	_pg_mb2wchar_with_len
	mov	x2, x0
	add	x26, x20, #56
Lloh38:
	adrp	x8, _REG_ADVANCED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_ADVANCED@GOTPAGEOFF]
Lloh40:
	adrp	x9, _REG_NOSUB@GOTPAGE
Lloh41:
	ldr	x9, [x9, _REG_NOSUB@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh44:
	adrp	x8, _DEFAULT_COLLATION_OID@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DEFAULT_COLLATION_OID@GOTPAGEOFF]
Lloh46:
	ldr	w4, [x8]
	mov	x0, x26
	mov	x1, x28
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	bl	_pg_regcomp
	cbz	w0, LBB0_11
; %bb.25:
	add	x2, sp, #20
	mov	x1, x26
	mov	w3, #100
	bl	_pg_regerror
Lloh47:
	adrp	x8, _ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w26, [x8]
Lloh50:
	adrp	x8, _ERRCODE_INVALID_REGULAR_EXPRESSION@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ERRCODE_INVALID_REGULAR_EXPRESSION@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_errcode
Lloh53:
	adrp	x0, l_.str.3@PAGE
Lloh54:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	b	LBB0_11
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_FF_SUFFIX,4,2                  ; @FF_SUFFIX
	.comm	_VoidString,8,3                 ; @VoidString
l_.str.1:                               ; @.str.1
	.asciz	"%s$"

l_.str.2:                               ; @.str.2
	.asciz	"^%s"

	.comm	_REG_ADVANCED,4,2               ; @REG_ADVANCED
	.comm	_REG_NOSUB,4,2                  ; @REG_NOSUB
	.comm	_DEFAULT_COLLATION_OID,4,2      ; @DEFAULT_COLLATION_OID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_REGULAR_EXPRESSION,4,2 ; @ERRCODE_INVALID_REGULAR_EXPRESSION
l_.str.3:                               ; @.str.3
	.asciz	"invalid regular expression: %s"

	.comm	_FF_COMPOUNDONLY,4,2            ; @FF_COMPOUNDONLY
	.comm	_FF_COMPOUNDPERMITFLAG,4,2      ; @FF_COMPOUNDPERMITFLAG
	.comm	_FF_COMPOUNDFLAG,4,2            ; @FF_COMPOUNDFLAG
	.no_dead_strip	_NIAddAffix
.subsections_via_symbols
