	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_compile_and_cache           ## -- Begin function RE_compile_and_cache
	.p2align	4, 0x90
_RE_compile_and_cache:                  ## @RE_compile_and_cache
	.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	%rdx, -176(%rbp)                ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_VARSIZE_ANY_EXHDR
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_VARDATA_ANY
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	_num_res@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	movq	_re_array@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	cmpl	%r13d, (%rcx,%rbx)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, 4(%rcx,%rbx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, 8(%rcx,%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rcx,%rbx), %rdi
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_num_res@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_8:
	leal	4(,%r13,4), %edi
	callq	_palloc
	movq	%rax, %r12
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movq	%rax, %rsi
	movl	%r13d, %edx
	callq	_pg_mb2wchar_with_len
	leaq	-192(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movq	-176(%rbp), %r8                 ## 8-byte Reload
	callq	_pg_regcomp
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_pfree
	movq	_REG_OKAY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	leaq	-160(%rbp), %r12
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	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(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movq	%r14, %rbx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_Max
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, -184(%rbp)
	testq	%rax, %rax
	movq	_num_res@GOTPCREL(%rip), %r14
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_pg_regfree
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	-184(%rbp), %rax
LBB0_12:
	movq	%rax, %rdi
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, -208(%rbp)
	movl	%r15d, -204(%rbp)
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -200(%rbp)
	movl	(%r14), %edx
	movq	_MAX_CACHED_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jl	LBB0_14
## %bb.13:
	leal	-1(%rdx), %ecx
	movl	%ecx, (%r14)
	xorl	%edi, %edi
	cmpl	%eax, %edx
	setle	%dil
	callq	_Assert
	movq	_re_array@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movslq	(%r14), %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$16, %rdi
	callq	_pg_regfree
	movq	(%rbx), %rax
	movslq	(%r14), %rcx
	shlq	$5, %rcx
	movq	24(%rax,%rcx), %rdi
	callq	_free
	movl	(%r14), %edx
LBB0_14:
	testl	%edx, %edx
	jle	LBB0_16
## %bb.15:
	movq	_re_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	32(%rsi), %rdi
	shll	$5, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
LBB0_16:
	movq	_re_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movups	-208(%rbp), %xmm0
	movups	-192(%rbp), %xmm1
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	incl	(%r14)
LBB0_19:
	movq	_re_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$16, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.18:
	movq	(%r12), %rsi
	movups	(%rsi,%rbx), %xmm0
	movups	16(%rsi,%rbx), %xmm1
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm1, -192(%rbp)
	leaq	32(%rsi), %rdi
	movl	%ebx, %edx
	callq	_memmove
	movq	(%r12), %rax
	movaps	-208(%rbp), %xmm0
	movaps	-192(%rbp), %xmm1
	movups	%xmm0, (%rax)
	movups	%xmm1, 16(%rax)
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_num_res,4,2                    ## @num_res
	.comm	_re_array,8,3                   ## @re_array
	.comm	_REG_OKAY,4,2                   ## @REG_OKAY
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_REGULAR_EXPRESSION,4,2 ## @ERRCODE_INVALID_REGULAR_EXPRESSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid regular expression: %s"

	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_MAX_CACHED_RES,4,2             ## @MAX_CACHED_RES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_compile_and_cache           ; -- Begin function RE_compile_and_cache
	.p2align	2
_RE_compile_and_cache:                  ; @RE_compile_and_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_VARSIZE_ANY_EXHDR
	mov	x21, x0
	mov	x0, x22
	bl	_VARDATA_ANY
	mov	x22, x0
Lloh3:
	adrp	x27, _num_res@GOTPAGE
Lloh4:
	ldr	x27, [x27, _num_res@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh5:
	adrp	x26, _re_array@GOTPAGE
Lloh6:
	ldr	x26, [x26, _re_array@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	add	x23, x23, #32
	cmp	x24, w8, sxtw
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	ldr	w10, [x9, x23]
	cmp	w10, w21
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x9, x23
	ldr	w11, [x10, #4]
	cmp	w11, w20
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x10, #8]
	cmp	x10, x19
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x23
	ldr	x0, [x8, #24]
	mov	x1, x22
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	b	LBB0_2
LBB0_8:
	lsl	w8, w21, #2
	add	w0, w8, #4
	bl	_palloc
	mov	x25, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x21
	bl	_pg_mb2wchar_with_len
	mov	x2, x0
	add	x8, sp, #16
	add	x23, x8, #16
	mov	x0, x23
	mov	x1, x25
	mov	x3, x20
	mov	x4, x19
	bl	_pg_regcomp
	mov	x24, x0
	mov	x0, x25
	bl	_pfree
Lloh7:
	adrp	x8, _REG_OKAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_OKAY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_10
; %bb.9:
	bl	_CHECK_FOR_INTERRUPTS
	add	x25, sp, #52
	add	x2, sp, #52
	mov	x0, x24
	mov	x1, x23
	mov	w3, #100
	bl	_pg_regerror
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x8]
Lloh13:
	adrp	x8, _ERRCODE_INVALID_REGULAR_EXPRESSION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_INVALID_REGULAR_EXPRESSION@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	str	x25, [sp]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_10:
	mov	x0, x21
	mov	w1, #1
	bl	_Max
	bl	_malloc
	str	x0, [sp, #40]
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_pg_regfree
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
Lloh21:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	ldr	x0, [sp, #40]
LBB0_12:
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	stp	w21, w20, [sp, #16]
	str	x19, [sp, #24]
	ldr	w8, [x27]
Lloh26:
	adrp	x9, _MAX_CACHED_RES@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MAX_CACHED_RES@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_14
; %bb.13:
	sub	w10, w8, #1
	str	w10, [x27]
	cmp	w8, w9
	cset	w0, le
	bl	_Assert
	ldr	x8, [x26]
	ldrsw	x9, [x27]
	add	x8, x8, x9, lsl #5
	add	x0, x8, #16
	bl	_pg_regfree
	ldr	x8, [x26]
	ldrsw	x9, [x27]
	add	x8, x8, x9, lsl #5
	ldr	x0, [x8, #24]
	bl	_free
	ldr	w8, [x27]
LBB0_14:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.15:
	ldr	x1, [x26]
	add	x0, x1, #32
	lsl	w2, w8, #5
	bl	_memmove
LBB0_16:
	ldr	x8, [x26]
	ldp	q0, q1, [sp, #16]
	stp	q0, q1, [x8]
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
LBB0_17:
	ldr	x8, [x26]
	ldur	x9, [x29, #-88]
Lloh29:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_21
; %bb.18:
	add	x0, x8, #16
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_19:
	cbz	w24, LBB0_17
; %bb.20:
	ldr	x1, [x26]
	add	x8, x1, x23
	ldp	q1, q0, [x8]
	stp	q1, q0, [sp, #16]
	add	x0, x1, #32
	mov	x2, x23
	bl	_memmove
	ldr	x8, [x26]
	ldp	q1, q0, [sp, #16]
	stp	q1, q0, [x8]
	b	LBB0_17
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_num_res,4,2                    ; @num_res
	.comm	_re_array,8,3                   ; @re_array
	.comm	_REG_OKAY,4,2                   ; @REG_OKAY
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_REGULAR_EXPRESSION,4,2 ; @ERRCODE_INVALID_REGULAR_EXPRESSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid regular expression: %s"

	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_MAX_CACHED_RES,4,2             ; @MAX_CACHED_RES
.subsections_via_symbols
