	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dest_name_check
_dest_name_check:                       ## @dest_name_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TIPC_RESERVED_TYPES@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_likely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	movq	_TIPC_TOP_SRV@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	(%rbx), %rax
	movq	_TIPC_CFG_SRV@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	movl	$4, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-32(%rbp), %edi
	callq	_ntohs
	testl	$49152, %eax                    ## imm = 0xC000
	je	LBB0_9
## %bb.6:
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TIPC_RESERVED_TYPES,8,3        ## @TIPC_RESERVED_TYPES
	.comm	_TIPC_TOP_SRV,8,3               ## @TIPC_TOP_SRV
	.comm	_TIPC_CFG_SRV,8,3               ## @TIPC_CFG_SRV
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.no_dead_strip	_dest_name_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dest_name_check
_dest_name_check:                       ; @dest_name_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TIPC_RESERVED_TYPES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIPC_RESERVED_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_likely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _TIPC_TOP_SRV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIPC_TOP_SRV@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _TIPC_CFG_SRV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIPC_CFG_SRV@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EACCES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19]
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #4
	bl	_copy_from_user
	cbz	x0, LBB0_9
; %bb.7:
Lloh11:
	adrp	x8, _EFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_9:
	ldr	w0, [sp, #8]
	bl	_ntohs
	tst	w0, #0xc000
	b.eq	LBB0_2
; %bb.10:
Lloh13:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_capable
	cbnz	w0, LBB0_2
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TIPC_RESERVED_TYPES,8,3        ; @TIPC_RESERVED_TYPES
	.comm	_TIPC_TOP_SRV,8,3               ; @TIPC_TOP_SRV
	.comm	_TIPC_CFG_SRV,8,3               ; @TIPC_CFG_SRV
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.no_dead_strip	_dest_name_check
.subsections_via_symbols
