	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rev_friends_intersect
_rev_friends_intersect:                 ## @rev_friends_intersect
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	movq	_rev_friends_intersect_len@GOTPCREL(%rip), %rbx
	movq	_rev_friends_intersect_pos@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r12), %r8d
	movl	$0, %eax
	cmpl	%r14d, %r8d
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rdi
	movl	%r14d, %esi
	callq	_rev_friends_intersect
	movl	(%r12), %r8d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r8d
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rsi
	movq	(%r13), %rdx
	cmpq	%rsi, %rdx
	jae	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r9
	movq	_rev_friends_intersect_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	8(%r12), %rcx
	incq	%rdx
	negq	%rsi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, -8(%rdi,%rdx,8)
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rdx, (%r13)
	leaq	(%rsi,%rdx), %rbx
	incq	%rbx
	incq	%rdx
	cmpq	$1, %rbx
	jne	LBB0_8
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	movq	%rdx, (%r13)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r14d, %r8d
	jg	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %r12
	addl	%eax, %r15d
	testq	%r12, %r12
	jne	LBB0_3
## %bb.15:
	xorl	%eax, %eax
LBB0_16:
	addl	%eax, %r15d
	jmp	LBB0_17
LBB0_1:
	xorl	%r15d, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rev_friends_intersect_pos,8,3  ## @rev_friends_intersect_pos
	.comm	_rev_friends_intersect_len,8,3  ## @rev_friends_intersect_len
	.comm	_rev_friends_intersect_list,8,3 ## @rev_friends_intersect_list
	.no_dead_strip	_rev_friends_intersect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rev_friends_intersect
_rev_friends_intersect:                 ; @rev_friends_intersect
	.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
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
Lloh0:
	adrp	x22, _rev_friends_intersect_len@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rev_friends_intersect_len@GOTPAGEOFF]
Lloh2:
	adrp	x23, _rev_friends_intersect_pos@GOTPAGE
Lloh3:
	ldr	x23, [x23, _rev_friends_intersect_pos@GOTPAGEOFF]
Lloh4:
	adrp	x24, _rev_friends_intersect_list@GOTPAGE
Lloh5:
	ldr	x24, [x24, _rev_friends_intersect_list@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x20]
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	cmp	w8, w19
	b.eq	LBB0_5
	b	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, #24]
	mov	x1, x19
	bl	_rev_friends_intersect
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x22]
	ldr	x9, [x23]
	cmp	x9, x10
	b.hs	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x24]
	ldr	x12, [x20, #8]
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x11, x9, lsl #3]
	cmp	x13, x12
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x9, x9, #1
	str	x9, [x23]
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w0, w0, #1
	add	x9, x9, #1
	str	x9, [x23]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, w19
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x20, #16]
	add	w21, w0, w21
	cbnz	x20, LBB0_2
; %bb.13:
	mov	w0, #0
LBB0_14:
	add	w0, w0, w21
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rev_friends_intersect_pos,8,3  ; @rev_friends_intersect_pos
	.comm	_rev_friends_intersect_len,8,3  ; @rev_friends_intersect_len
	.comm	_rev_friends_intersect_list,8,3 ; @rev_friends_intersect_list
	.no_dead_strip	_rev_friends_intersect
.subsections_via_symbols
