	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_priv_stream
_check_priv_stream:                     ## @check_priv_stream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$16, -20(%rbp)
	movl	4(%rdi), %edi
	movq	_LOCAL_PEERCRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	leaq	-40(%rbp), %rcx
	leaq	-20(%rbp), %r8
	xorl	%esi, %esi
	callq	_getsockopt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$16, -20(%rbp)
	jb	LBB0_4
## %bb.2:
	movq	-40(%rbp), %rax
	movq	_XUCRED_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	cmpq	$0, -32(%rbp)
	sete	%r14b
LBB0_4:
	movl	%r14d, (%rbx)
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCAL_PEERCRED,4,2             ## @LOCAL_PEERCRED
	.comm	_XUCRED_VERSION,8,3             ## @XUCRED_VERSION
	.no_dead_strip	_check_priv_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_priv_stream
_check_priv_stream:                     ; @check_priv_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	mov	w8, #16
	str	w8, [sp, #12]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _LOCAL_PEERCRED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCAL_PEERCRED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #16
	add	x4, sp, #12
	mov	w1, #0
	bl	_getsockopt
	mov	w8, #0
	ldr	w9, [sp, #12]
	cmp	x0, #0
	ccmp	w9, #16, #0, eq
	b.lo	LBB0_4
; %bb.1:
	ldr	x8, [sp, #16]
Lloh3:
	adrp	x9, _XUCRED_VERSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XUCRED_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp, #24]
	cmp	x8, #0
	cset	w8, eq
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCAL_PEERCRED,4,2             ; @LOCAL_PEERCRED
	.comm	_XUCRED_VERSION,8,3             ; @XUCRED_VERSION
	.no_dead_strip	_check_priv_stream
.subsections_via_symbols
