	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_status
_read_status:                           ## @read_status
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_CTL_MAX_DATA_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	andq	$-8, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_res_associd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.1:
	callq	_findpeerbyassoc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ctlpeerstatus
	movl	%eax, %edi
	callq	_htons
	movq	_rpkt@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_res_authokay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%r14)
LBB0_6:
	movq	_def_peer_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	callq	_ctl_putpeer
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.10:
	xorl	%edi, %edi
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctl_flushpkt                   ## TAILCALL
LBB0_11:
	xorl	%eax, %eax
	callq	_ctlsysstatus
	movl	%eax, %edi
	callq	_htons
	movq	_rpkt@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_peer_list@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_18
## %bb.12:
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	movl	(%r12), %edi
	callq	_htons
	movq	%rax, (%r14,%r15,8)
	movq	%r12, %rdi
	callq	_ctlpeerstatus
	movl	%eax, %edi
	callq	_htons
	addq	$2, %r15
	movq	%rax, 8(%r14,%rbx,8)
	addq	$3, %rbx
	movq	%r14, %rdi
	callq	_COUNTOF
	cmpq	%rax, %rbx
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	shlq	$3, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ctl_putdata
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_2:
	movq	_CERR_BADASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.3:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ctl_error                      ## TAILCALL
LBB0_16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	shlq	$3, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ctl_putdata
LBB0_18:
	xorl	%edi, %edi
	callq	_ctl_flushpkt
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_MAX_DATA_LEN,4,2           ## @CTL_MAX_DATA_LEN
	.comm	_res_associd,4,2                ## @res_associd
	.comm	_CERR_BADASSOC,4,2              ## @CERR_BADASSOC
	.comm	_rpkt,8,3                       ## @rpkt
	.comm	_res_authokay,8,3               ## @res_authokay
	.comm	_def_peer_var,8,3               ## @def_peer_var
	.comm	_peer_list,8,3                  ## @peer_list
	.comm	_debug,4,2                      ## @debug
	.no_dead_strip	_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_status
_read_status:                           ; @read_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CTL_MAX_DATA_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_MAX_DATA_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	and	x8, x8, #0xfffffffffffffff8
	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, #0xfffffffffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _res_associd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _res_associd@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	cbz	w0, LBB0_9
; %bb.1:
	bl	_findpeerbyassoc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x19, x0
	bl	_ctlpeerstatus
	bl	_htons
Lloh11:
	adrp	x8, _rpkt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rpkt@GOTPAGEOFF]
Lloh13:
	str	x0, [x8]
Lloh14:
	adrp	x8, _res_authokay@GOTPAGE
Lloh15:
	ldr	x8, [x8, _res_authokay@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	str	xzr, [x19, #16]
LBB0_4:
Lloh17:
	adrp	x8, _def_peer_var@GOTPAGE
Lloh18:
	ldr	x8, [x8, _def_peer_var@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.5:
	add	x20, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x19
	bl	_ctl_putpeer
	ldr	x0, [x20], #8
	cbnz	x0, LBB0_6
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.8:
	mov	w0, #0
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ctl_flushpkt
LBB0_9:
	bl	_ctlsysstatus
	bl	_htons
Lloh23:
	adrp	x8, _rpkt@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rpkt@GOTPAGEOFF]
Lloh25:
	str	x0, [x8]
Lloh26:
	adrp	x8, _peer_list@GOTPAGE
Lloh27:
	ldr	x8, [x8, _peer_list@GOTPAGEOFF]
Lloh28:
	ldr	x20, [x8]
	cbz	x20, LBB0_18
; %bb.10:
	mov	x21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_htons
	add	x23, x19, x21, lsl #3
	str	x0, [x23]
	mov	x0, x20
	bl	_ctlpeerstatus
	bl	_htons
	add	x22, x21, #2
	str	x0, [x23, #8]
	add	x23, x21, #3
	mov	x0, x19
	bl	_COUNTOF
	mov	x21, x22
	cmp	x23, x0
	b.lo	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	lsl	x1, x22, #3
	mov	x0, x19
	mov	w2, #1
	bl	_ctl_putdata
	mov	x21, #0
	b	LBB0_11
LBB0_14:
Lloh29:
	adrp	x8, _CERR_BADASSOC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CERR_BADASSOC@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.15:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ctl_error
LBB0_16:
	cbz	x21, LBB0_18
; %bb.17:
	lsl	x1, x21, #3
	mov	x0, x19
	mov	w2, #1
	bl	_ctl_putdata
LBB0_18:
	mov	w0, #0
	bl	_ctl_flushpkt
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	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 AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_MAX_DATA_LEN,4,2           ; @CTL_MAX_DATA_LEN
	.comm	_res_associd,4,2                ; @res_associd
	.comm	_CERR_BADASSOC,4,2              ; @CERR_BADASSOC
	.comm	_rpkt,8,3                       ; @rpkt
	.comm	_res_authokay,8,3               ; @res_authokay
	.comm	_def_peer_var,8,3               ; @def_peer_var
	.comm	_peer_list,8,3                  ; @peer_list
	.comm	_debug,4,2                      ; @debug
	.no_dead_strip	_read_status
.subsections_via_symbols
