	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindNewPortGroup               ## -- Begin function FindNewPortGroup
	.p2align	4, 0x90
_FindNewPortGroup:                      ## @FindNewPortGroup
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	24(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %r14d
	callq	_LIBALIAS_LOCK_ASSERT
	cmpl	$128, %r14d
	je	LBB0_1
## %bb.2:
	cmpl	$129, %r14d
	jne	LBB0_21
## %bb.3:
	movq	_LINK_TCP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_LINK_UDP@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	_GET_NEW_PORT_MAX_ATTEMPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PKT_ALIAS_SAME_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	callq	_ntohs
	movl	%eax, %r15d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_11
	jmp	LBB0_21
LBB0_6:
	movq	_FIND_EVEN_ALIAS_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_arc4random
	movl	%eax, %r15d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.8:
	movq	_ALIAS_PORT_MASK_EVEN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ALIAS_PORT_MASK@GOTPCREL(%rip), %rax
LBB0_9:
	andl	(%rax), %r15d
	movq	_ALIAS_PORT_BASE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_21
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	andl	(%rax), %r15d
	movq	_ALIAS_PORT_BASE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_21
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$0, %r12d
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%r12), %edi
	callq	_htons
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movl	%r14d, %r9d
	callq	_FindLinkIn
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	incl	%r12d
	cmpl	%r12d, %r13d
	jne	LBB0_14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r13d, %r12d
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_FIND_EVEN_ALIAS_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_arc4random
	movl	%eax, %r15d
	movq	_ALIAS_PORT_MASK@GOTPCREL(%rip), %rax
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_ALIAS_PORT_MASK_EVEN@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_21:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r15d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_htons                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_UDP,4,2                   ## @LINK_UDP
	.comm	_LINK_TCP,4,2                   ## @LINK_TCP
	.comm	_GET_NEW_PORT_MAX_ATTEMPTS,4,2  ## @GET_NEW_PORT_MAX_ATTEMPTS
	.comm	_PKT_ALIAS_SAME_PORTS,4,2       ## @PKT_ALIAS_SAME_PORTS
	.comm	_FIND_EVEN_ALIAS_BASE,4,2       ## @FIND_EVEN_ALIAS_BASE
	.comm	_ALIAS_PORT_MASK_EVEN,4,2       ## @ALIAS_PORT_MASK_EVEN
	.comm	_ALIAS_PORT_MASK,4,2            ## @ALIAS_PORT_MASK
	.comm	_ALIAS_PORT_BASE,8,3            ## @ALIAS_PORT_BASE
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindNewPortGroup               ; -- Begin function FindNewPortGroup
	.p2align	2
_FindNewPortGroup:                      ; @FindNewPortGroup
	.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
	str	w7, [sp, #12]                   ; 4-byte Folded Spill
	mov	x23, x6
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x26, x2
	mov	x25, x1
	mov	x22, x0
	bl	_LIBALIAS_LOCK_ASSERT
	cmp	w23, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w23, #129
	b.ne	LBB0_15
; %bb.2:
Lloh0:
	adrp	x8, _LINK_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINK_TCP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _LINK_UDP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LINK_UDP@GOTPAGEOFF]
LBB0_4:
	ldr	w23, [x8]
Lloh4:
	adrp	x8, _GET_NEW_PORT_MAX_ATTEMPTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GET_NEW_PORT_MAX_ATTEMPTS@GOTPAGEOFF]
Lloh6:
	ldr	w27, [x8]
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _PKT_ALIAS_SAME_PORTS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PKT_ALIAS_SAME_PORTS@GOTPAGEOFF]
Lloh9:
	adrp	x10, _FIND_EVEN_ALIAS_BASE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FIND_EVEN_ALIAS_BASE@GOTPAGEOFF]
Lloh11:
	adrp	x28, _ALIAS_PORT_MASK_EVEN@GOTPAGE
Lloh12:
	ldr	x28, [x28, _ALIAS_PORT_MASK_EVEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x24
	bl	_ntohs
	mov	x24, x0
	cmp	w27, #1
	b.ge	LBB0_7
	b	LBB0_15
LBB0_6:
	ldr	w19, [x10]
	bl	_arc4random
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w19, w8
Lloh14:
	adrp	x8, _ALIAS_PORT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALIAS_PORT_MASK@GOTPAGEOFF]
	csel	x8, x28, x8, eq
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh16:
	adrp	x9, _ALIAS_PORT_BASE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ALIAS_PORT_BASE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	add	w24, w8, w9
	cmp	w27, #1
	b.lt	LBB0_15
LBB0_7:
	mov	w28, #0
	and	x25, x25, #0xffffffff
	and	x26, x26, #0xffffffff
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w19, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w24, w19
	bl	_htons
	mov	x4, x0
	mov	x0, x22
	mov	x1, x25
	mov	x2, x26
	mov	x3, x21
	mov	x5, x23
	mov	w6, #0
	bl	_FindLinkIn
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w19, w19, #1
	cmp	w20, w19
	b.ne	LBB0_10
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w19, #0
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w19, w20
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh19:
	adrp	x8, _FIND_EVEN_ALIAS_BASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FIND_EVEN_ALIAS_BASE@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	bl	_arc4random
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w19, w8
Lloh22:
	adrp	x8, _ALIAS_PORT_MASK_EVEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ALIAS_PORT_MASK_EVEN@GOTPAGEOFF]
Lloh24:
	adrp	x9, _ALIAS_PORT_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ALIAS_PORT_MASK@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh26:
	adrp	x9, _ALIAS_PORT_BASE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ALIAS_PORT_BASE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	add	w24, w8, w9
	add	w28, w28, #1
	cmp	w28, w27
	b.ne	LBB0_8
LBB0_15:
	mov	w0, #0
	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
LBB0_16:
	mov	x0, x24
	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
	b	_htons
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh13
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_UDP,4,2                   ; @LINK_UDP
	.comm	_LINK_TCP,4,2                   ; @LINK_TCP
	.comm	_GET_NEW_PORT_MAX_ATTEMPTS,4,2  ; @GET_NEW_PORT_MAX_ATTEMPTS
	.comm	_PKT_ALIAS_SAME_PORTS,4,2       ; @PKT_ALIAS_SAME_PORTS
	.comm	_FIND_EVEN_ALIAS_BASE,4,2       ; @FIND_EVEN_ALIAS_BASE
	.comm	_ALIAS_PORT_MASK_EVEN,4,2       ; @ALIAS_PORT_MASK_EVEN
	.comm	_ALIAS_PORT_MASK,4,2            ; @ALIAS_PORT_MASK
	.comm	_ALIAS_PORT_BASE,8,3            ; @ALIAS_PORT_BASE
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
