	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ncp_RemoveUrgentPort           ## -- Begin function ncp_RemoveUrgentPort
	.p2align	4, 0x90
_ncp_RemoveUrgentPort:                  ## @ncp_RemoveUrgentPort
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdx
	movl	(%rdi), %eax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	%rax, %rsi
	shlq	$3, %rsi
	movl	$1, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rdi,%rcx)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rcx
	incl	%ebx
	cmpq	%rcx, %rsi
	jne	LBB0_2
LBB0_7:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_log_Printf                     ## TAILCALL
LBB0_3:
	cmpl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	leaq	(%rdi,%rcx), %rsi
	addq	$8, %rsi
	addq	%rcx, %rdi
	leal	(,%rax,8), %edx
	subl	%ecx, %edx
	addl	$-8, %edx
	callq	_memmove
	movl	(%r14), %eax
LBB0_5:
	decl	%eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u: Port not set to urgent\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ncp_RemoveUrgentPort           ; -- Begin function ncp_RemoveUrgentPort
	.p2align	2
_ncp_RemoveUrgentPort:                  ; @ncp_RemoveUrgentPort
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x9, #0
	ldr	x10, [x0, #8]
	lsl	x11, x8, #3
	mov	w12, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x9]
	cmp	x13, x2
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	add	w12, w12, #1
	cmp	x11, x9
	b.ne	LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _LogWARN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_log_Printf
LBB0_5:
	cmp	w8, w12
	b.eq	LBB0_7
; %bb.6:
	add	x0, x10, x9
	add	x1, x0, #8
	lsl	w8, w8, #3
	sub	w8, w8, w9
	sub	w2, w8, #8
	bl	_memmove
	ldr	w8, [x19]
LBB0_7:
	sub	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u: Port not set to urgent\n"

.subsections_via_symbols
