	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writelist
_writelist:                             ## @writelist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_checkassocid
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_14
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_g_varlist@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CTL_OP_WRITEVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %r8
	leaq	-24(%rbp), %r9
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_doquerylist
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	_numhosts@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.7:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	cmpq	$0, -24(%rbp)
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	-24(%rbp), %rdi
	movq	-40(%rbp), %rsi
	movl	-32(%rbp), %edx
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.10:
	movq	_TYPE_SYS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	movl	$25, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	jmp	LBB0_14
LBB0_12:
	movq	_TYPE_PEER@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_printvars
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_varlist,4,2                  ## @g_varlist
	.comm	_CTL_OP_WRITEVAR,4,2            ## @CTL_OP_WRITEVAR
	.comm	_numhosts,4,2                   ## @numhosts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"server=%s "

	.comm	_currenthost,8,3                ## @currenthost
L_.str.1:                               ## @.str.1
	.asciz	"done! (no data returned)\n"

L_.str.2:                               ## @.str.2
	.asciz	"associd=%u "

	.comm	_TYPE_PEER,4,2                  ## @TYPE_PEER
	.comm	_TYPE_SYS,4,2                   ## @TYPE_SYS
	.no_dead_strip	_writelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writelist
_writelist:                             ; @writelist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_checkassocid
	mov	x20, x0
	cbnz	x0, LBB0_4
	b	LBB0_10
LBB0_3:
	mov	x20, #0
LBB0_4:
Lloh0:
	adrp	x8, _g_varlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_varlist@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CTL_OP_WRITEVAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_OP_WRITEVAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x4, sp, #8
	add	x5, sp, #16
	add	x6, sp, #24
	mov	x2, x20
	mov	w3, #1
	bl	_doquerylist
	cbnz	w0, LBB0_10
; %bb.5:
Lloh6:
	adrp	x8, _numhosts@GOTPAGE
Lloh7:
	ldr	x8, [x8, _numhosts@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _currenthost@GOTPAGE
Lloh10:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_7:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_9
; %bb.8:
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldp	x0, x1, [sp, #16]
Lloh16:
	adrp	x8, _TYPE_PEER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TYPE_PEER@GOTPAGEOFF]
	ldr	w2, [sp, #8]
Lloh18:
	adrp	x9, _TYPE_SYS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TYPE_SYS@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	mov	w4, #0
	mov	x5, x19
	bl	_printvars
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #25
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_g_varlist,4,2                  ; @g_varlist
	.comm	_CTL_OP_WRITEVAR,4,2            ; @CTL_OP_WRITEVAR
	.comm	_numhosts,4,2                   ; @numhosts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"server=%s "

	.comm	_currenthost,8,3                ; @currenthost
l_.str.1:                               ; @.str.1
	.asciz	"done! (no data returned)\n"

l_.str.2:                               ; @.str.2
	.asciz	"associd=%u "

	.comm	_TYPE_PEER,4,2                  ; @TYPE_PEER
	.comm	_TYPE_SYS,4,2                   ; @TYPE_SYS
	.no_dead_strip	_writelist
.subsections_via_symbols
