	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writevar
_writevar:                              ## @writevar
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r12), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_checkassocid
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_12
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%rbx, %rdi
	callq	_ZERO
	movq	(%r12), %rax
	movl	24(%rax), %esi
	movq	%rbx, %rdi
	callq	_doaddvlist
	movq	_CTL_OP_WRITEVAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	-72(%rbp), %rax
	leaq	-64(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$1, %ecx
	pushq	%rax
	callq	_doquerylist
	addq	$16, %rsp
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_doclearvlist
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.4:
	movq	_numhosts@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.5:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	cmpq	$0, -56(%rbp)
	je	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	testq	%r15, %r15
	jne	LBB0_9
## %bb.10:
	movq	_TYPE_SYS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	$25, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	jmp	LBB0_12
LBB0_9:
	movq	_TYPE_PEER@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movl	-64(%rbp), %edx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_printvars
LBB0_12:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLIST,4,2                    ## @MAXLIST
	.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_SYS,4,2                   ## @TYPE_SYS
	.comm	_TYPE_PEER,4,2                  ## @TYPE_PEER
	.no_dead_strip	_writevar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writevar
_writevar:                              ; @writevar
	.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, #32
	mov	x19, x1
	mov	x22, x0
	mov	x23, sp
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, _MAXLIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXLIST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_checkassocid
	mov	x20, x0
	cbnz	x0, LBB0_3
	b	LBB0_9
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x21
	bl	_ZERO
	ldr	x8, [x22]
	ldr	w1, [x8, #24]
	mov	x0, x21
	bl	_doaddvlist
Lloh8:
	adrp	x8, _CTL_OP_WRITEVAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CTL_OP_WRITEVAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x4, x29, #80
	sub	x5, x29, #72
	sub	x6, x29, #64
	mov	x0, x21
	mov	x2, x20
	mov	w3, #1
	bl	_doquerylist
	mov	x22, x0
	mov	x0, x21
	bl	_doclearvlist
	cbnz	w22, LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _numhosts@GOTPAGE
Lloh12:
	ldr	x8, [x8, _numhosts@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _currenthost@GOTPAGE
Lloh15:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp, #-16]!
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	add	sp, sp, #16
LBB0_6:
	ldur	x8, [x29, #-72]
	cbz	x8, LBB0_8
; %bb.7:
	str	x20, [sp, #-16]!
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	add	sp, sp, #16
Lloh21:
	adrp	x8, _TYPE_SYS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TYPE_SYS@GOTPAGEOFF]
Lloh23:
	adrp	x9, _TYPE_PEER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TYPE_PEER@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	ldp	x0, x1, [x29, #-72]
	ldur	w2, [x29, #-80]
	mov	w4, #0
	mov	x5, x19
	bl	_printvars
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #25
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
LBB0_9:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLIST,4,2                    ; @MAXLIST
	.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_SYS,4,2                   ; @TYPE_SYS
	.comm	_TYPE_PEER,4,2                  ; @TYPE_PEER
	.no_dead_strip	_writevar
.subsections_via_symbols
