	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecursiveLeafBitFlow           ## -- Begin function RecursiveLeafBitFlow
	.p2align	4, 0x90
_RecursiveLeafBitFlow:                  ## @RecursiveLeafBitFlow
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PORTALS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_leafs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.1:
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %r13
	addq	$8, %r13
	xorl	%r12d, %r12d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%r8d, %rax
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %r11
	cmpq	$0, 16(%r11)
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r11, %rcx
	movq	_portals@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	sarq	$3, %rcx
	movabsq	$-6148914691236517205, %rax     ## imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rcx
	movl	%ecx, %eax
	sarl	$3, %eax
	andb	$7, %cl
	movl	$1, %r10d
	shll	%cl, %r10d
	movslq	%eax, %r9
	movl	(%r15,%r9,4), %eax
	movzbl	%cl, %ecx
	btl	%ecx, %eax
	jae	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_portallongs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r11), %rax
	cmpl	$4, %edi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ecx
	andl	$-4, %ecx
	leaq	(,%rdi,8), %rsi
	andq	$-32, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r15,%rdx), %xmm2
	movdqu	16(%r15,%rdx), %xmm3
	movdqu	(%rax,%rdx), %xmm4
	pand	%xmm2, %xmm4
	movdqu	16(%rax,%rdx), %xmm2
	pand	%xmm3, %xmm2
	movdqa	%xmm4, (%rbx,%rdx)
	movdqa	%xmm2, 16(%rbx,%rdx)
	movdqu	(%r14,%rdx), %xmm3
	movdqu	16(%r14,%rdx), %xmm5
	pandn	%xmm4, %xmm3
	por	%xmm3, %xmm0
	pandn	%xmm2, %xmm5
	por	%xmm5, %xmm1
	addq	$32, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	por	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	movq	%xmm0, %rsi
	cmpq	%rdi, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rcx,8), %rdx
	andq	(%r15,%rcx,8), %rdx
	movq	%rdx, (%rbx,%rcx,8)
	movq	(%r14,%rcx,8), %r13
	notq	%r13
	andq	%rdx, %r13
	orq	%r13, %rsi
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rsi, %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	orl	%r10d, (%r14,%r9,4)
	movl	(%r11), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_RecursiveLeafBitFlow
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	jmp	LBB0_13
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PORTALS,4,2                ## @MAX_PORTALS
	.comm	_leafs,8,3                      ## @leafs
	.comm	_portals,8,3                    ## @portals
	.comm	_portallongs,4,2                ## @portallongs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RecursiveLeafBitFlow           ; -- Begin function RecursiveLeafBitFlow
	.p2align	2
_RecursiveLeafBitFlow:                  ; @RecursiveLeafBitFlow
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x2
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PORTALS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PORTALS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _leafs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _leafs@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
	add	x22, x9, w0, sxtw #4
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x23, #0
	sxtw	x10, w0
	add	x9, x9, x10, lsl #4
	add	x24, x9, #8
	add	x10, x19, #32
	add	x9, x20, #32
	stp	x9, x10, [x29, #-104]           ; 16-byte Folded Spill
	add	x9, x21, #32
	stur	x9, [x29, #-112]                ; 8-byte Folded Spill
Lloh11:
	adrp	x28, _portals@GOTPAGE
Lloh12:
	ldr	x28, [x28, _portals@GOTPAGEOFF]
	mov	w25, #43691
	movk	w25, #43690, lsl #16
	mov	w26, #1
Lloh13:
	adrp	x27, _portallongs@GOTPAGE
Lloh14:
	ldr	x27, [x27, _portallongs@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x9, [x24]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x10, [x9, #16]
	cbnz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x28]
	sub	x10, x9, x10
	lsr	x10, x10, #3
	mul	w10, w10, w25
	asr	w11, w10, #3
	ldr	w12, [x20, w11, sxtw #2]
	and	w11, w10, #0x7
	lsl	w11, w26, w11
	tst	w11, w12
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x27]
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x9, #8]
	cmp	w12, #8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	mov	x15, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	x14, x12, #0xfffffff8
	add	x15, x13, #32
	movi.2d	v0, #0000000000000000
	ldp	x16, x17, [x29, #-112]          ; 16-byte Folded Reload
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x14
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x17, #-32]
	ldp	q6, q7, [x17], #64
	ldp	q16, q17, [x15, #-32]
	ldp	q18, q19, [x15], #64
	and.16b	v4, v16, v4
	and.16b	v5, v17, v5
	and.16b	v6, v18, v6
	and.16b	v7, v19, v7
	stp	q4, q5, [x16, #-32]
	stp	q6, q7, [x16], #64
	ldp	q16, q17, [x0, #-32]
	ldp	q18, q19, [x0], #64
	bic.16b	v4, v4, v16
	bic.16b	v5, v5, v17
	bic.16b	v6, v6, v18
	bic.16b	v7, v7, v19
	orr.16b	v0, v4, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	subs	x1, x1, #8
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	orr.16b	v0, v1, v0
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	x15, d0
	cmp	x14, x12
	b.eq	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x0, x14, #3
	add	x16, x19, x0
	add	x17, x21, x0
	add	x13, x13, x0
	add	x0, x20, x0
	sub	x12, x12, x14
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x0], #8
	ldr	x1, [x13], #8
	and	x14, x1, x14
	str	x14, [x17], #8
	ldr	x1, [x16], #8
	bic	x14, x14, x1
	orr	x15, x14, x15
	subs	x12, x12, #1
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x15, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	sbfx	x8, x10, #3, #29
	lsl	x8, x8, #2
	ldr	w10, [x19, x8]
	orr	w10, w10, w11
	str	w10, [x19, x8]
	ldr	w0, [x9]
	mov	x1, x21
	mov	x2, x19
	bl	_RecursiveLeafBitFlow
	ldr	w8, [x22]
	b	LBB0_2
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PORTALS,4,2                ; @MAX_PORTALS
	.comm	_leafs,8,3                      ; @leafs
	.comm	_portals,8,3                    ; @portals
	.comm	_portallongs,4,2                ; @portallongs
.subsections_via_symbols
