	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dogetassoc                     ## -- Begin function dogetassoc
	.p2align	4, 0x90
_dogetassoc:                            ## @dogetassoc
	.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	%rdi, %r14
	movq	_CTL_OP_READSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rax
	leaq	-48(%rbp), %r10
	xorl	%ebx, %ebx
	leaq	-60(%rbp), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_doquery
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.5:
	testb	$3, %dl
	je	LBB0_6
## %bb.15:
	movq	_numhosts@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-48(%rbp), %rdx
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_2:
	movq	_numhosts@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_6:
	movq	_numassoc@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	_assoc_cache_slots@GOTPCREL(%rip), %r12
	movq	_assoc_cache@GOTPCREL(%rip), %r15
	movq	_debug@GOTPCREL(%rip), %r13
	leaq	L_.str.3(%rip), %r14
	xorl	%edx, %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	movq	%rdx, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r12), %rdx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_grow_assoc_cache
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	(%r15), %rcx
	movq	(%rbx), %rdx
	shlq	$4, %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	4(%rax), %edi
	callq	_ntohs
	movq	(%r15), %rsi
	movq	(%rbx), %rdx
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movq	%rax, 8(%rsi,%rcx)
	addq	$4, -56(%rbp)
	movq	-48(%rbp), %rax
	addq	$-8, %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, (%r13)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	(%rax,%rcx), %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rdx
	movq	-48(%rbp), %rax
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	xorl	%eax, %eax
	callq	_sortassoc
	movl	$1, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_OP_READSTAT,4,2            ## @CTL_OP_READSTAT
	.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	"No association ID's returned\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"***Server returned %zu octets, should be multiple of 4\n"

	.comm	_numassoc,8,3                   ## @numassoc
	.comm	_assoc_cache_slots,8,3          ## @assoc_cache_slots
	.comm	_assoc_cache,8,3                ## @assoc_cache
	.comm	_debug,8,3                      ## @debug
L_.str.3:                               ## @.str.3
	.asciz	"[%u] "

L_.str.4:                               ## @.str.4
	.asciz	"\n%d associations total\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dogetassoc                     ; -- Begin function dogetassoc
	.p2align	2
_dogetassoc:                            ; @dogetassoc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CTL_OP_READSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_OP_READSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x5, sp, #12
	add	x6, sp, #16
	add	x7, sp, #24
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_doquery
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_19
; %bb.1:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_6
; %bb.2:
	tst	x8, #0x3
	b.eq	LBB0_10
; %bb.3:
Lloh3:
	adrp	x9, _numhosts@GOTPAGE
Lloh4:
	ldr	x9, [x9, _numhosts@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x19, _stderr@GOTPAGE
Lloh7:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _currenthost@GOTPAGE
Lloh9:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [sp, #16]
LBB0_5:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _numhosts@GOTPAGE
Lloh16:
	ldr	x8, [x8, _numhosts@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _currenthost@GOTPAGE
Lloh19:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_9:
	bl	_fprintf
	mov	w0, #0
	b	LBB0_19
LBB0_10:
	mov	x8, #0
Lloh25:
	adrp	x20, _numassoc@GOTPAGE
Lloh26:
	ldr	x20, [x20, _numassoc@GOTPAGEOFF]
	str	xzr, [x20]
Lloh27:
	adrp	x22, _assoc_cache_slots@GOTPAGE
Lloh28:
	ldr	x22, [x22, _assoc_cache_slots@GOTPAGEOFF]
Lloh29:
	adrp	x24, _assoc_cache@GOTPAGE
Lloh30:
	ldr	x24, [x24, _assoc_cache@GOTPAGEOFF]
Lloh31:
	adrp	x23, _debug@GOTPAGE
Lloh32:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
Lloh33:
	adrp	x21, _stderr@GOTPAGE
Lloh34:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
Lloh35:
	adrp	x19, l_.str.3@PAGE
Lloh36:
	add	x19, x19, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	str	x8, [x20]
	cbz	x9, LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	cmp	x8, x9
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_grow_assoc_cache
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x24]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	str	x0, [x8, x9]
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #4]!
	str	x8, [sp, #24]
	bl	_ntohs
	ldr	x9, [x24]
	ldr	x8, [x20]
	add	x9, x9, x8, lsl #4
	str	x0, [x9, #8]
	ldr	x9, [sp, #24]
	add	x10, x9, #4
	ldr	x9, [sp, #16]
	sub	x9, x9, #8
	stp	x9, x10, [sp, #16]
	ldr	x10, [x23]
	cbz	x10, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x21]
	ldr	x9, [x24]
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	str	x8, [sp]
	mov	x1, x19
	bl	_fprintf
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	b	LBB0_11
LBB0_16:
	ldr	x9, [x23]
	cbz	x9, LBB0_18
; %bb.17:
	ldr	w0, [x21]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_18:
	bl	_sortassoc
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_OP_READSTAT,4,2            ; @CTL_OP_READSTAT
	.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	"No association ID's returned\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"***Server returned %zu octets, should be multiple of 4\n"

	.comm	_numassoc,8,3                   ; @numassoc
	.comm	_assoc_cache_slots,8,3          ; @assoc_cache_slots
	.comm	_assoc_cache,8,3                ; @assoc_cache
	.comm	_debug,8,3                      ; @debug
l_.str.3:                               ; @.str.3
	.asciz	"[%u] "

l_.str.4:                               ; @.str.4
	.asciz	"\n%d associations total\n"

.subsections_via_symbols
