	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function appendStringInfoRegexpSubstr
_appendStringInfoRegexpSubstr:          ## @appendStringInfoRegexpSubstr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_VARDATA_ANY
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_VARSIZE_ANY_EXHDR
	movslq	%eax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	addq	%r15, %r13
	xorl	%eax, %eax
	callq	_pg_database_encoding_max_length
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_appendStringInfoChar
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r13, %r14
	jae	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$92, (%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%r13, %rbx
	jb	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rbx
	cmpq	%r13, %r14
	jae	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$92, (%rbx)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	callq	_pg_mblen
	cltq
	addq	%rax, %rbx
	cmpq	%r13, %rbx
	jb	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %rbx
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edx
	subl	%r14d, %edx
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_appendBinaryStringInfo
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r14
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r13, %r14
	jae	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r14), %rbx
	cmpq	%r13, %rbx
	jae	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rbx), %eax
	leal	-49(%rax), %ecx
	cmpb	$8, %cl
	ja	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	addl	$-48, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdx
	leaq	(%rcx,%rax,8), %rcx
	addq	$4, %rcx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpb	$38, %al
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %edi
	movl	$92, %esi
	cmpb	$92, %al
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_appendStringInfoChar
	addq	$2, %r14
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %r14
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r15d
	cmpl	$-1, %r15d
	je	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rcx), %r14d
	cmpl	$-1, %r14d
	je	LBB0_1
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movl	%r12d, %ebx
	movl	%r15d, %r12d
	subl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	setge	%dil
	callq	_Assert
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %r12d
	callq	_charlen_to_bytelen
	movslq	%eax, %rbx
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	subl	%r15d, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_charlen_to_bytelen
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_appendBinaryStringInfo
	jmp	LBB0_1
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	%r12d, %edi
	movl	$92, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_appendStringInfoChar           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_appendStringInfoRegexpSubstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function appendStringInfoRegexpSubstr
_appendStringInfoRegexpSubstr:          ; @appendStringInfoRegexpSubstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_VARDATA_ANY
	mov	x24, x0
	mov	x0, x23
	bl	_VARSIZE_ANY_EXHDR
	add	x26, x24, w0, sxtw
	bl	_pg_database_encoding_max_length
	mov	x23, x0
	add	x27, x22, #4
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_appendStringInfoChar
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w23, #1
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x24, x26
	b.hs	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x26, x24
	mov	x25, x24
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x25]
	cmp	w9, #92
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x25, x25, #1
	subs	x8, x8, #1
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x26
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
	cmp	x24, x26
	b.hs	LBB0_24
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x25]
	cmp	w8, #92
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x25
	bl	_pg_mblen
	add	x25, x25, w0, sxtw
	cmp	x25, x26
	b.lo	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x25, x24
	b.ls	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w25, w24
	mov	x0, x21
	mov	x1, x24
	bl	_appendBinaryStringInfo
	cmp	x25, x26
	b.lo	LBB0_15
	b	LBB0_25
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x25, x26
	b.hs	LBB0_25
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x25, #1
	cmp	x24, x26
	b.hs	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x24]
	sub	w8, w9, #49
	cmp	w8, #8
	b.hi	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w9, #48
	add	x10, x22, w8, uxtw #3
	add	x8, x10, #4
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x27
	mov	x10, x22
	cmp	w9, #38
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	w1, #92
	cmp	w9, #92
	b.ne	LBB0_1
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_appendStringInfoChar
	add	x24, x25, #2
	b	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x25, #2
	ldr	w28, [x10]
	cmn	w28, #1
	b.eq	LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [x8]
	cmn	w19, #1
	b.eq	LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	subs	w25, w28, w8
	cset	w0, ge
	bl	_Assert
	mov	x0, x20
	mov	x1, x25
	bl	_charlen_to_bytelen
	add	x25, x20, w0, sxtw
	sub	w1, w19, w28
	mov	x0, x25
	bl	_charlen_to_bytelen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_appendBinaryStringInfo
	b	LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
	cmp	x25, x26
	b.lo	LBB0_15
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
	mov	x0, x21
	mov	w1, #92
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_appendStringInfoChar
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_appendStringInfoRegexpSubstr
.subsections_via_symbols
