	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_peervars
_read_peervars:                         ## @read_peervars
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CP_MAXCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_res_associd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_findpeerbyassoc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ctlpeerstatus
	movl	%eax, %edi
	callq	_htons
	movq	_rpkt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_res_authokay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	$0, (%r14)
LBB0_4:
	movq	%r12, %rdi
	callq	_ZERO
	movq	_peer_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_ctl_getitem
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_EOV@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %r15
	movq	%r12, %rdi
	callq	_COUNTOF
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setb	%dil
	callq	_INSIST
	movq	8(%rbx), %rax
	movl	$1, (%r12,%rax,4)
	movq	_peer_var@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_ctl_getitem
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:
	movq	%r12, %rdi
	callq	_COUNTOF
	cmpq	$2, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jb	LBB0_17
## %bb.10:
	movl	$1, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_COUNTOF
	cmpq	%rax, %rbx
	jae	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12,%rbx,4)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_ctl_putpeer
	jmp	LBB0_13
LBB0_1:
	movq	_CERR_BADASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ctl_error
	jmp	LBB0_18
LBB0_14:
	movq	_def_peer_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.15:
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	callq	_ctl_putpeer
	movl	(%rbx), %edi
	addq	$4, %rbx
	testl	%edi, %edi
	jne	LBB0_16
LBB0_17:
	xorl	%edi, %edi
	callq	_ctl_flushpkt
	jmp	LBB0_18
LBB0_7:
	movq	_CERR_UNKNOWNVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ctl_error
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_MAXCODE,4,2                 ## @CP_MAXCODE
	.comm	_res_associd,4,2                ## @res_associd
	.comm	_CERR_BADASSOC,4,2              ## @CERR_BADASSOC
	.comm	_rpkt,4,2                       ## @rpkt
	.comm	_res_authokay,8,3               ## @res_authokay
	.comm	_peer_var,4,2                   ## @peer_var
	.comm	_EOV,4,2                        ## @EOV
	.comm	_CERR_UNKNOWNVAR,4,2            ## @CERR_UNKNOWNVAR
	.comm	_def_peer_var,8,3               ## @def_peer_var
	.no_dead_strip	_read_peervars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_peervars
_read_peervars:                         ; @read_peervars
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _CP_MAXCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP_MAXCODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _res_associd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _res_associd@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_findpeerbyassoc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	bl	_ctlpeerstatus
	bl	_htons
Lloh11:
	adrp	x8, _rpkt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rpkt@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
Lloh14:
	adrp	x8, _res_authokay@GOTPAGE
Lloh15:
	ldr	x8, [x8, _res_authokay@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19]
LBB0_3:
	mov	x0, x20
	bl	_ZERO
Lloh17:
	adrp	x23, _peer_var@GOTPAGE
Lloh18:
	ldr	x23, [x23, _peer_var@GOTPAGEOFF]
	ldr	w0, [x23]
	sub	x1, x29, #80
	bl	_ctl_getitem
	cbz	x0, LBB0_13
; %bb.4:
	mov	x21, x0
Lloh19:
	adrp	x24, _EOV@GOTPAGE
Lloh20:
	ldr	x24, [x24, _EOV@GOTPAGEOFF]
	mov	w25, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x21, #8]
	mov	x0, x20
	bl	_COUNTOF
	cmp	x26, x0
	cset	w0, lo
	bl	_INSIST
	ldr	x8, [x21, #8]
	str	w25, [x20, x8, lsl #2]
	ldr	w0, [x23]
	sub	x1, x29, #80
	bl	_ctl_getitem
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.7:
	mov	x0, x20
	bl	_COUNTOF
	cmp	x0, #2
	b.lo	LBB0_16
; %bb.8:
	mov	w21, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	mov	x0, x20
	bl	_COUNTOF
	cmp	x21, x0
	b.hs	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x21, lsl #2]
	cbz	w8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_ctl_putpeer
	b	LBB0_9
LBB0_12:
Lloh21:
	adrp	x8, _CERR_BADASSOC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CERR_BADASSOC@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
Lloh23:
	adrp	x8, _def_peer_var@GOTPAGE
Lloh24:
	ldr	x8, [x8, _def_peer_var@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w0, [x8]
	cbz	w0, LBB0_16
; %bb.14:
	add	x20, x8, #4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x19
	bl	_ctl_putpeer
	ldr	w0, [x20], #4
	cbnz	w0, LBB0_15
LBB0_16:
	mov	w0, #0
	bl	_ctl_flushpkt
	b	LBB0_19
LBB0_17:
Lloh26:
	adrp	x8, _CERR_UNKNOWNVAR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CERR_UNKNOWNVAR@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	bl	_ctl_error
LBB0_19:
	mov	sp, x22
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_MAXCODE,4,2                 ; @CP_MAXCODE
	.comm	_res_associd,4,2                ; @res_associd
	.comm	_CERR_BADASSOC,4,2              ; @CERR_BADASSOC
	.comm	_rpkt,4,2                       ; @rpkt
	.comm	_res_authokay,8,3               ; @res_authokay
	.comm	_peer_var,4,2                   ; @peer_var
	.comm	_EOV,4,2                        ; @EOV
	.comm	_CERR_UNKNOWNVAR,4,2            ; @CERR_UNKNOWNVAR
	.comm	_def_peer_var,8,3               ; @def_peer_var
	.no_dead_strip	_read_peervars
.subsections_via_symbols
