	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_privacy                  ## -- Begin function check_privacy
	.p2align	4, 0x90
_check_privacy:                         ## @check_privacy
	.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
	testl	%edi, %edi
	js	LBB0_34
## %bb.1:
	movl	%esi, %r15d
	testl	%esi, %esi
	jle	LBB0_34
## %bb.2:
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_34
## %bb.3:
	xorl	%r13d, %r13d
	cmpl	$1, %edi
	sbbl	%r13d, %r13d
	orl	%edi, %r13d
	movl	$3, %r12d
	cmpl	%r15d, %r13d
	je	LBB0_41
## %bb.4:
	movl	%r15d, %edi
	callq	_get_user
	testq	%rax, %rax
	je	LBB0_34
## %bb.5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rax), %edi
	movl	%ebx, %esi
	callq	_privacy_lookup
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_41
## %bb.6:
	movq	(%rax), %rbx
	movzbl	8(%rax), %r14d
	cmpl	$255, %r14d
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %r14d
	addq	$4, %rbx
	cmpl	$255, %r14d
	setge	%al
	movq	_MAX_PRIVACY_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
LBB0_8:
	movslq	%r14d, %rax
	xorl	%edi, %edi
	cmpl	$-1, (%rbx,%rax,4)
	sete	%dil
	callq	_assert
	movl	$3, %r8d
	movl	$-1, %r11d
	movq	_PL_M_MASK@GOTPCREL(%rip), %rdi
	movq	_PL_M_CAT@GOTPCREL(%rip), %rsi
	movq	_CAT_FR_ALL@GOTPCREL(%rip), %rdx
	movq	_CAT_FR_FR@GOTPCREL(%rip), %r10
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addq	$4, %rbx
	movl	-4(%rbx), %r15d
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$-1, %r15d
	je	LBB0_41
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rdi), %eax
	andl	%r15d, %eax
	testl	%r15d, (%rsi)
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%rdx), %eax
	je	LBB0_40
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%r10), %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r9), %rcx
	movl	%eax, %r14d
	andl	$31, %r14d
	cmpl	(%rcx,%r14,4), %eax
	je	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$0, -4(%rbx)
	jmp	LBB0_9
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r13d, %eax
	jne	LBB0_9
	jmp	LBB0_40
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %r11d
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%r9), %edi
	movl	%r13d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rax), %r11d
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r11d, %r11d
	jg	LBB0_38
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r11d, %r14d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_is_friends_friend
	testl	%eax, %eax
	jg	LBB0_38
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_CAT_FR_FR@GOTPCREL(%rip), %r10
	js	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$-1, %r11d
	jne	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r9), %edi
	movl	%r13d, %esi
	callq	_tree_lookup
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rax), %r11d
	jmp	LBB0_31
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %eax
	andl	$1, %eax
	testl	%r15d, %r15d
	movl	$0, %ecx
	cmovsl	%ecx, %eax
	orl	%eax, %r12d
	andl	$2, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_PL_M_MASK@GOTPCREL(%rip), %rdi
	movq	_PL_M_CAT@GOTPCREL(%rip), %rsi
	movq	_CAT_FR_ALL@GOTPCREL(%rip), %rdx
	movl	%r14d, %r11d
	testl	%r8d, %r8d
	jne	LBB0_9
	jmp	LBB0_39
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r11d, %r11d
	jmp	LBB0_21
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r11d, %r11d
LBB0_31:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	_PL_M_MASK@GOTPCREL(%rip), %rdi
	movq	_PL_M_CAT@GOTPCREL(%rip), %rsi
	movq	_CAT_FR_ALL@GOTPCREL(%rip), %rdx
	movq	_CAT_FR_FR@GOTPCREL(%rip), %r10
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=1
	btl	%r14d, %r11d
	jae	LBB0_9
	jmp	LBB0_40
LBB0_34:
	movl	$-1, %r12d
LBB0_41:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_40
LBB0_39:
	xorl	%r8d, %r8d
LBB0_40:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	cmovnsl	%r8d, %eax
	orl	%eax, %r12d
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PRIVACY_LEN,4,2            ## @MAX_PRIVACY_LEN
	.comm	_PL_M_MASK,4,2                  ## @PL_M_MASK
	.comm	_PL_M_CAT,4,2                   ## @PL_M_CAT
	.comm	_CAT_FR_ALL,4,2                 ## @CAT_FR_ALL
	.comm	_CAT_FR_FR,4,2                  ## @CAT_FR_FR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_privacy                  ; -- Begin function check_privacy
	.p2align	2
_check_privacy:                         ; @check_privacy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w20, #-1
	tbnz	w0, #31, LBB0_34
; %bb.1:
	mov	x19, x1
	cmp	w1, #1
	b.lt	LBB0_34
; %bb.2:
	mov	x23, x2
	cbz	w2, LBB0_34
; %bb.3:
	cmp	w0, #0
	csinv	w21, w0, wzr, ne
	cmp	w21, w19
	b.ne	LBB0_5
; %bb.4:
	mov	w20, #3
	b	LBB0_34
LBB0_5:
	mov	x0, x19
	bl	_get_user
	cbz	x0, LBB0_31
; %bb.6:
	mov	x22, x0
	ldr	w0, [x0, #12]
	mov	x1, x23
	bl	_privacy_lookup
	cbz	x0, LBB0_31
; %bb.7:
	ldr	x23, [x0]
	ldrb	w20, [x0, #8]
	cmp	w20, #255
	b.ne	LBB0_9
; %bb.8:
	ldr	w20, [x23], #4
	cmp	w20, #254
Lloh0:
	adrp	x8, _MAX_PRIVACY_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PRIVACY_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w20, w8, #0, gt
	cset	w0, le
	bl	_assert
LBB0_9:
	ldr	w8, [x23, w20, sxtw #2]
	cmn	w8, #1
	cset	w0, eq
	bl	_assert
	mov	w20, #0
	mov	w10, #3
	mov	w12, #-1
Lloh3:
	adrp	x25, _PL_M_MASK@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PL_M_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x26, _PL_M_CAT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _PL_M_CAT@GOTPAGEOFF]
Lloh7:
	adrp	x28, _CAT_FR_ALL@GOTPAGE
Lloh8:
	ldr	x28, [x28, _CAT_FR_ALL@GOTPAGEOFF]
Lloh9:
	adrp	x11, _CAT_FR_FR@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CAT_FR_FR@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, w21
	b.eq	LBB0_33
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x23, x23, #4
	ldur	w27, [x23, #-4]
	cbz	w27, LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmn	w27, #1
	b.eq	LBB0_34
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x25]
	and	x8, x8, x27
	ldr	w9, [x26]
	tst	w9, w27
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x28]
	cmp	w8, w9
	b.eq	LBB0_33
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x11]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x22]
	and	x24, x8, #0x1f
	ldr	w9, [x9, x24, lsl #2]
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	stur	wzr, [x23, #-4]
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	cmn	w12, #1
	b.ne	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_tree_lookup
	cbz	x0, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w12, [x0]
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w12, #0
	b.gt	LBB0_32
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x24, x12
	mov	x0, x19
	mov	x1, x21
	bl	_is_friends_friend
	cmp	w0, #0
	b.gt	LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	and	w8, w10, #0x1
	cmp	w27, #0
	csel	w8, wzr, w8, lt
	orr	w8, w8, w20
	and	w9, w10, #0x2
	tst	w0, #0x80000000
	csel	w20, w20, w8, eq
	csel	w10, w10, w9, eq
Lloh11:
	adrp	x11, _CAT_FR_FR@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CAT_FR_FR@GOTPAGEOFF]
	mov	x12, x24
	cbnz	w10, LBB0_11
	b	LBB0_33
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	cmn	w12, #1
	b.ne	LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_tree_lookup
	cbz	x0, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w12, [x0]
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w12, #0
	b	LBB0_22
LBB0_28:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w12, #0
LBB0_29:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
Lloh13:
	adrp	x11, _CAT_FR_FR@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CAT_FR_FR@GOTPAGEOFF]
LBB0_30:                                ;   in Loop: Header=BB0_11 Depth=1
	lsr	w8, w12, w24
	tbz	w8, #0, LBB0_11
	b	LBB0_33
LBB0_31:
	mov	w20, #-1
	b	LBB0_34
LBB0_32:
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
LBB0_33:
	cmp	w27, #0
	csel	w8, wzr, w10, lt
	orr	w20, w8, w20
LBB0_34:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PRIVACY_LEN,4,2            ; @MAX_PRIVACY_LEN
	.comm	_PL_M_MASK,4,2                  ; @PL_M_MASK
	.comm	_PL_M_CAT,4,2                   ; @PL_M_CAT
	.comm	_CAT_FR_ALL,4,2                 ; @CAT_FR_ALL
	.comm	_CAT_FR_FR,4,2                  ; @CAT_FR_FR
.subsections_via_symbols
