	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_peer                      ## -- Begin function init_peer
	.p2align	4, 0x90
_init_peer:                             ## @init_peer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_init_peer_alloc@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_COUNTOF
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	incq	%rbx
	movq	_peer_free@GOTPCREL(%rip), %r15
	movq	_p_link@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	movl	(%r15), %edi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movl	(%r12), %edx
	callq	_LINK_SLIST
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_2
LBB0_3:
	movq	(%r14), %rdi
	callq	_COUNTOF
	movq	_total_peer_structs@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rdi
	callq	_COUNTOF
	movq	_peer_free_count@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ASSOCID_MAX@GOTPCREL(%rip), %r14
	movq	_current_association_ID@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ntp_random
	andl	(%r14), %eax
	movl	%eax, (%rbx)
	je	LBB0_4
## %bb.5:
	movq	_initial_association_ID@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_peer_alloc,8,3            ## @init_peer_alloc
	.comm	_peer_free,4,2                  ## @peer_free
	.comm	_p_link,4,2                     ## @p_link
	.comm	_total_peer_structs,4,2         ## @total_peer_structs
	.comm	_peer_free_count,4,2            ## @peer_free_count
	.comm	_ASSOCID_MAX,4,2                ## @ASSOCID_MAX
	.comm	_current_association_ID,4,2     ## @current_association_ID
	.comm	_initial_association_ID,4,2     ## @initial_association_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_peer                      ; -- Begin function init_peer
	.p2align	2
_init_peer:                             ; @init_peer
	.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
Lloh0:
	adrp	x19, _init_peer_alloc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _init_peer_alloc@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_COUNTOF
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w0
	add	x20, x8, #1
Lloh2:
	adrp	x21, _peer_free@GOTPAGE
Lloh3:
	ldr	x21, [x21, _peer_free@GOTPAGEOFF]
Lloh4:
	adrp	x22, _p_link@GOTPAGE
Lloh5:
	ldr	x22, [x22, _p_link@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w20, #2
	ldr	w0, [x21]
	ldr	x9, [x19]
	add	x1, x9, w8, uxtw #2
	ldr	w2, [x22]
	bl	_LINK_SLIST
	sub	x20, x20, #1
	cmp	x20, #1
	b.hi	LBB0_2
LBB0_3:
	ldr	x0, [x19]
	bl	_COUNTOF
Lloh6:
	adrp	x8, _total_peer_structs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _total_peer_structs@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	ldr	x0, [x19]
	bl	_COUNTOF
Lloh9:
	adrp	x8, _peer_free_count@GOTPAGE
Lloh10:
	ldr	x8, [x8, _peer_free_count@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
Lloh12:
	adrp	x19, _ASSOCID_MAX@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ASSOCID_MAX@GOTPAGEOFF]
Lloh14:
	adrp	x20, _current_association_ID@GOTPAGE
Lloh15:
	ldr	x20, [x20, _current_association_ID@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ntp_random
	ldr	w8, [x19]
	ands	w8, w8, w0
	str	w8, [x20]
	b.eq	LBB0_4
; %bb.5:
Lloh16:
	adrp	x9, _initial_association_ID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _initial_association_ID@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_init_peer_alloc,8,3            ; @init_peer_alloc
	.comm	_peer_free,4,2                  ; @peer_free
	.comm	_p_link,4,2                     ; @p_link
	.comm	_total_peer_structs,4,2         ; @total_peer_structs
	.comm	_peer_free_count,4,2            ; @peer_free_count
	.comm	_ASSOCID_MAX,4,2                ; @ASSOCID_MAX
	.comm	_current_association_ID,4,2     ; @current_association_ID
	.comm	_initial_association_ID,4,2     ; @initial_association_ID
.subsections_via_symbols
