	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_inveclosure
_calc_inveclosure:                      ## @calc_inveclosure
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_REG_NOERROR@GOTPCREL(%rip), %rax
	cmpl	$0, (%rdi)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	callq	_re_node_set_init_empty
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.4:
	movq	16(%r14), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rbx, %r13
	shlq	$4, %r13
	cmpl	$0, 8(%rcx,%r13)
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx,%r13), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r12,%r15,4), %rdi
	addq	8(%r14), %rdi
	movl	%ebx, %esi
	callq	_re_node_set_insert_last
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	xorl	%esi, %esi
	callq	_BE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%r15
	movq	16(%r14), %rcx
	movslq	8(%rcx,%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_11
LBB0_9:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_REG_NOERROR@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.comm	_REG_NOERROR,4,2                ## @REG_NOERROR
	.no_dead_strip	_calc_inveclosure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_inveclosure
_calc_inveclosure:                      ; @calc_inveclosure
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x20, x8
	bl	_re_node_set_init_empty
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x20, #0
	ldr	x9, [x19, #16]
Lloh0:
	adrp	x21, _REG_ESPACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_ESPACE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _REG_NOERROR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REG_NOERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x10, x9, x20, lsl #4
	ldr	w11, [x10, #8]
	cmp	w11, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, #0
	ldr	x24, [x10]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	ldrsw	x9, [x24, x23, lsl #2]
	add	x0, x8, x9
	mov	x1, x20
	bl	_re_node_set_insert_last
	cmn	w0, #1
	cset	w0, eq
	mov	w1, #0
	bl	_BE
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x23, #1
	ldr	x9, [x19, #16]
	add	x8, x9, x20, lsl #4
	ldrsw	x8, [x8, #8]
	cmp	x23, x8
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	b	LBB0_5
LBB0_11:
Lloh4:
	adrp	x21, _REG_NOERROR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _REG_NOERROR@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x21, x22
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.comm	_REG_NOERROR,4,2                ; @REG_NOERROR
	.no_dead_strip	_calc_inveclosure
.subsections_via_symbols
