	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ncp_AddUrgentPort              ## -- Begin function ncp_AddUrgentPort
	.p2align	4, 0x90
_ncp_AddUrgentPort:                     ## @ncp_AddUrgentPort
	.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, %r15
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	4(%rdi), %eax
	jne	LBB0_4
## %bb.1:
	leal	10(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	8(%r14), %rdi
	leal	80(,%rax,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, 8(%r14)
	movl	(%r14), %eax
LBB0_4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %eax
	movq	8(%r14), %rsi
	leal	(,%rax,8), %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rsi)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	jg	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$8, %rsi
	addl	$-8, %edx
	cmpq	%rbx, %rax
	jne	LBB0_7
	jmp	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_log_Printf
	addl	$-10, 4(%r14)
	jmp	LBB0_14
LBB0_8:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_log_Printf
	movl	(%r14), %eax
	jmp	LBB0_11
LBB0_10:
	leaq	8(%rsi), %rdi
	callq	_memmove
	movq	8(%r14), %rax
	movq	%r15, (%rax,%rbx,8)
	movl	(%r14), %eax
	incl	%eax
	movl	%eax, (%r14)
LBB0_11:
	cmpl	%eax, %ebx
	jne	LBB0_14
LBB0_13:
	movq	8(%r14), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r14)
	cltq
	movq	%r15, (%rcx,%rax,8)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ncp_AddUrgentPort: realloc: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.1:                               ## @.str.1
	.asciz	"%u: Port already set to urgent\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ncp_AddUrgentPort              ; -- Begin function ncp_AddUrgentPort
	.p2align	2
_ncp_AddUrgentPort:                     ; @ncp_AddUrgentPort
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	add	w8, w8, #10
	str	w8, [x19, #4]
	ldr	x0, [x19, #8]
	lsl	w1, w8, #3
	bl	_realloc
	cbz	x0, LBB0_8
; %bb.2:
	str	x0, [x19, #8]
	ldr	w8, [x19]
LBB0_3:
	cbz	w8, LBB0_12
; %bb.4:
	mov	x21, #0
	mov	w8, w8
	ldr	x1, [x19, #8]
	lsl	w2, w8, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x1]
	cmp	x9, x20
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	b.gt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	add	x1, x1, #8
	sub	w2, w2, #8
	cmp	x8, x21
	b.ne	LBB0_5
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _LogERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
	ldr	w8, [x19, #4]
	sub	w8, w8, #10
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_9:
Lloh8:
	adrp	x8, _LogWARN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_log_Printf
	ldr	w8, [x19]
	b	LBB0_11
LBB0_10:
	add	x0, x1, #8
	bl	_memmove
	ldr	x8, [x19, #8]
	str	x20, [x8, x21, lsl #3]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_11:
	cmp	w21, w8
	b.ne	LBB0_13
LBB0_12:
	ldr	x9, [x19, #8]
	add	w10, w8, #1
	str	w10, [x19]
	str	x20, [x9, w8, sxtw #3]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ncp_AddUrgentPort: realloc: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.1:                               ; @.str.1
	.asciz	"%u: Port already set to urgent\n"

.subsections_via_symbols
