	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_island_for_ref
_find_island_for_ref:                   ## @find_island_for_ref
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -344(%rbp)                ## 8-byte Spill
	movq	%rdi, -312(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -336(%rbp)
	movq	_island_regexes_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	1(%rax), %r14d
	leaq	-4(,%rax,4), %rbx
	movq	_island_regexes@GOTPCREL(%rip), %r12
	leaq	-304(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-4(%rbx), %r13
	addq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	-312(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_regexec
	movq	%r13, %rbx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	shlq	$4, %rax
	cmpl	$-1, -16(%rax,%r15)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	leaq	-304(%rbp), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	-2(%rax), %esi
	movl	%ebx, %edi
	callq	_warning
LBB0_5:
	leaq	-304(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.6:
	leaq	-288(%rbp), %rbx
	movl	$1, %r14d
	leaq	-304(%rbp), %r15
	leaq	-336(%rbp), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cltq
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rsi
	movq	8(%rbx), %rdx
	subq	%rax, %rdx
	movq	%r12, %rdi
	callq	_strbuf_add
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r14
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, -328(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movl	$45, %esi
	callq	_strbuf_addch
	movl	(%rbx), %eax
	jmp	LBB0_10
LBB0_12:
	movl	-336(%rbp), %edi
	movq	-344(%rbp), %rsi                ## 8-byte Reload
	callq	_add_ref_to_island
	leaq	-336(%rbp), %rdi
	callq	_strbuf_release
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_island_regexes_nr,4,2          ## @island_regexes_nr
	.comm	_island_regexes,8,3             ## @island_regexes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"island regex from config has too many capture groups (max=%d)"

	.no_dead_strip	_find_island_for_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_island_for_ref
_find_island_for_ref:                   ; @find_island_for_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
Lloh6:
	adrp	x8, _island_regexes_nr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _island_regexes_nr@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w22, w8, #1
	lsl	x8, x8, #2
	sub	x8, x8, #4
Lloh9:
	adrp	x23, _island_regexes@GOTPAGE
Lloh10:
	ldr	x23, [x23, _island_regexes@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	cmp	w22, #1
	b.lt	LBB0_13
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x24, x8, #4
	ldr	x9, [x23]
	add	x21, x9, x8
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	w4, #0
	bl	_regexec
	mov	x8, x24
	cbnz	w0, LBB0_1
; %bb.3:
	add	x21, sp, #24
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	add	x8, x21, w0, sxtw #4
	ldur	w8, [x8, #-16]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x21, x0
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	sub	w1, w0, #2
	mov	x0, x21
	bl	_warning
LBB0_5:
	add	x21, sp, #24
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_12
; %bb.6:
	add	x21, x21, #16
	mov	w22, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x8, w8
	add	x1, x20, x8
	ldr	x9, [x21, #8]
	sub	x2, x9, x8
	mov	x0, sp
	bl	_strbuf_add
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [sp, #8]
	cbz	x9, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	mov	w1, #45
	bl	_strbuf_addch
	ldr	w8, [x21]
	b	LBB0_7
LBB0_12:
	ldr	w0, [sp]
	mov	x1, x19
	bl	_add_ref_to_island
	mov	x0, sp
	bl	_strbuf_release
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_island_regexes_nr,4,2          ; @island_regexes_nr
	.comm	_island_regexes,8,3             ; @island_regexes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"island regex from config has too many capture groups (max=%d)"

	.no_dead_strip	_find_island_for_ref
.subsections_via_symbols
