	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_eclosure_iter
_calc_eclosure_iter:                    ## @calc_eclosure_iter
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movslq	%edx, %r14
	movq	%r14, %rbx
	shlq	$4, %rbx
	movl	(%rax,%rbx), %esi
	incl	%esi
	leaq	-56(%rbp), %rdi
	callq	_re_node_set_alloc
	movq	%rax, %r15
	movq	_REG_NOERROR@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r15
	setne	%dil
	xorl	%esi, %esi
	callq	_BE
	testq	%rax, %rax
	jne	LBB0_28
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	$-1, (%rax,%r14,4)
	movq	16(%r13), %rax
	leaq	(%r14,%r14,2), %r12
	movq	8(%rax,%r12,8), %r8
	testq	%r8, %r8
	movq	%r13, %rdi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	movq	8(%rdi), %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%rbx)
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_7
## %bb.4:
	movq	8(%rcx,%rbx), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, 16(%rax,%rcx,8)
	movq	%rbx, %r14
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rbx
	movq	%rdi, %r14
	movl	%edx, %esi
	movl	%edx, %ecx
	callq	_duplicate_node_closure
	movq	%rax, %r15
	xorl	%edi, %edi
	movq	_REG_NOERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	setne	%dil
	xorl	%esi, %esi
	callq	_BE
	testq	%rax, %rax
	jne	LBB0_28
## %bb.6:
	movq	16(%r14), %rax
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	%r14, %rdi
LBB0_7:
	movq	%rbx, %r14
	jmp	LBB0_8
LBB0_2:
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r12,8), %edi
	callq	_IS_EPSILON_NODE
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	cmpl	$0, (%rax,%r14)
	jle	LBB0_21
## %bb.11:
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %rsi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movq	8(%rbx), %rax
	movslq	(%rax,%r14), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%r14), %rax
	movq	(%rax,%r13,8), %rdx
	movq	(%rbx), %rax
	movslq	%edx, %r12
	movl	(%rax,%r12,4), %eax
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rsi, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_calc_eclosure_iter
	movq	%rax, %r15
	xorl	%edi, %edi
	movq	_REG_NOERROR@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	setne	%dil
	xorl	%esi, %esi
	callq	_BE
	leaq	-48(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_16
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, -48(%rbp)
	movq	_REG_NOERROR@GOTPCREL(%rip), %r14
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_re_node_set_merge
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	xorl	%esi, %esi
	callq	_BE
	testq	%rax, %rax
	jne	LBB0_28
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	cmpl	$0, (%rax,%r12,4)
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	leaq	-48(%rbp), %rsi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rsi, %rdi
	callq	_re_node_set_free
	leaq	-48(%rbp), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_21:
	leaq	-56(%rbp), %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_re_node_set_insert
	shrl	$31, %eax
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_BE
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_28
LBB0_23:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testl	%r15d, %r15d
	jne	LBB0_26
## %bb.24:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rax,%rcx,4)
	jmp	LBB0_27
LBB0_26:
	movl	-56(%rbp), %ecx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rax,%rdx,4)
LBB0_27:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	_REG_NOERROR@GOTPCREL(%rip), %rdx
	movl	-56(%rbp), %eax
	movl	%eax, (%rcx)
	movq	(%rdx), %r15
LBB0_28:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_NOERROR,8,3                ## @REG_NOERROR
	.comm	_REG_ESPACE,8,3                 ## @REG_ESPACE
	.no_dead_strip	_calc_eclosure_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_eclosure_iter
_calc_eclosure_iter:                    ; @calc_eclosure_iter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	sbfiz	x9, x22, #4, #32
	ldr	w8, [x8, x9]
	add	w1, w8, #1
	add	x0, sp, #24
	bl	_re_node_set_alloc
	mov	x23, x0
Lloh0:
	adrp	x25, _REG_NOERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REG_NOERROR@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, ne
	mov	w1, #0
	bl	_BE
	cbnz	x0, LBB0_26
; %bb.1:
	sxtw	x26, w22
	ldr	x8, [x21]
	mov	w9, #-1
	str	w9, [x8, x26, lsl #2]
	ldr	x8, [x21, #16]
	mov	w9, #24
	madd	x9, x26, x9, x8
	ldr	x4, [x9, #8]
	lsl	x27, x26, #4
	cbz	x4, LBB0_4
; %bb.2:
	ldr	x9, [x21, #8]
	ldr	w10, [x9, x27]
	cbz	w10, LBB0_4
; %bb.3:
	add	x9, x9, x26, lsl #4
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	mov	w10, #24
	madd	x9, x9, x10, x8
	ldr	w9, [x9, #16]
	cbz	w9, LBB0_22
LBB0_4:
	mov	w9, #24
	mul	x9, x26, x9
	ldr	w0, [x8, x9]
	bl	_IS_EPSILON_NODE
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_16
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	w9, [x8, x27]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x19, #0
	mov	w28, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w28, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #1
	ldr	x8, [x21, #8]
	ldrsw	x9, [x8, x27]
	cmp	x19, x9
	b.ge	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x26, lsl #4
	ldr	x8, [x8, #8]
	ldr	x24, [x8, x19, lsl #3]
	ldr	x8, [x21]
	sbfiz	x9, x24, #2, #32
	ldr	w8, [x8, x9]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #16
	mov	x1, x21
	mov	x2, x24
	mov	w3, #0
	bl	_calc_eclosure_iter
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, ne
	mov	w1, #0
	bl	_BE
	cbz	x0, LBB0_13
	b	LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	str	w8, [sp, #16]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_re_node_set_merge
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, ne
	mov	w1, #0
	bl	_BE
	cbnz	x0, LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x8, w24
	ldr	x9, [x21]
	ldr	w8, [x9, x8, lsl #2]
	cbnz	w8, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #16
	bl	_re_node_set_free
	b	LBB0_7
LBB0_16:
	mov	w28, #0
LBB0_17:
	add	x0, sp, #24
	mov	x1, x22
	bl	_re_node_set_insert
	lsr	w0, w0, #31
	mov	w1, #0
	bl	_BE
	cbz	x0, LBB0_19
; %bb.18:
Lloh2:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	b	LBB0_26
LBB0_19:
	ldr	x8, [x21]
	cbnz	w20, LBB0_24
; %bb.20:
	cbz	w28, LBB0_24
; %bb.21:
	str	wzr, [x8, x26, lsl #2]
	b	LBB0_25
LBB0_22:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	mov	x3, x22
	bl	_duplicate_node_closure
	mov	x23, x0
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, ne
	mov	w1, #0
	bl	_BE
	cbnz	x0, LBB0_26
; %bb.23:
	ldr	x8, [x21, #16]
	b	LBB0_4
LBB0_24:
	ldr	w9, [sp, #24]
	str	w9, [x8, x26, lsl #2]
LBB0_25:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [sp, #24]
	str	w8, [x9]
	ldr	x23, [x25]
LBB0_26:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_NOERROR,8,3                ; @REG_NOERROR
	.comm	_REG_ESPACE,8,3                 ; @REG_ESPACE
	.no_dead_strip	_calc_eclosure_iter
.subsections_via_symbols
