	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_friend                      ## -- Begin function is_friend
	.p2align	4, 0x90
_is_friend:                             ## @is_friend
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GB@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GA@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	subl	%r8d, %r9d
	xorl	%eax, %eax
	cmpl	$8, %r9d
	jl	LBB0_12
## %bb.1:
	shrl	$3, %r9d
	movl	$-1, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r11d, %r10d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r9d, %ecx
	subl	%r10d, %ecx
	cmpl	$1, %ecx
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%r9), %ecx
	movl	%ecx, %r11d
	sarl	%r11d
	movl	%ecx, %edx
	andl	$-2, %edx
	movslq	%edx, %rdx
	cmpl	%edi, (%r8,%rdx,4)
	jl	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	orl	$1, %ecx
	movslq	%ecx, %rcx
	cmpl	%esi, (%r8,%rcx,4)
	jle	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r11d, %r9d
	jmp	LBB0_3
LBB0_9:
	testl	%r10d, %r10d
	js	LBB0_12
## %bb.10:
	addl	%r10d, %r10d
	movslq	%r10d, %rcx
	cmpl	%edi, (%r8,%rcx,4)
	jne	LBB0_12
## %bb.11:
	orl	$1, %r10d
	movslq	%r10d, %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%r8,%rcx,4)
	sete	%al
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB,4,2                         ## @GB
	.comm	_GA,4,2                         ## @GA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_friend                      ; -- Begin function is_friend
	.p2align	2
_is_friend:                             ; @is_friend
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _GB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _GA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GA@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	sub	w9, w9, w8
	cmp	w9, #8
	b.lt	LBB0_11
; %bb.1:
	lsr	w10, w9, #3
	mov	w9, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w11, w10, w9
	cmp	w11, #1
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w9, w10
	asr	w11, w12, #1
	sxtw	x12, w12
	and	x13, x12, #0x3ffffffffffffffe
	ldr	w13, [x8, x13, lsl #2]
	cmp	w13, w0
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x12, x12, #2
	orr	x12, x12, #0x4
	ldr	w12, [x8, x12]
	cmp	w12, w1
	b.le	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, x11
	b	LBB0_3
LBB0_8:
	tbnz	w9, #31, LBB0_11
; %bb.9:
	sbfiz	x9, x9, #1, #32
	ldr	w10, [x8, w9, sxtw #2]
	cmp	w10, w0
	b.ne	LBB0_11
; %bb.10:
	lsl	x9, x9, #2
	orr	x9, x9, #0x4
	ldr	w8, [x8, x9]
	cmp	w8, w1
	cset	w0, eq
	ret
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GB,4,2                         ; @GB
	.comm	_GA,4,2                         ; @GA
.subsections_via_symbols
