	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serve_one_client
_serve_one_client:                      ## @serve_one_client
	.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
	movq	_CREDENTIAL_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	$-1, -36(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	callq	_read_request
	testq	%rax, %rax
	js	LBB0_16
## %bb.1:
	movl	-24(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	-24(%rbp), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:
	movl	-24(%rbp), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	-24(%rbp), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.15:
	movl	-24(%rbp), %esi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_warning
	jmp	LBB0_16
LBB0_2:
	leaq	-32(%rbp), %rdi
	callq	_lookup_credential
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fprintf
	movq	8(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fprintf
	jmp	LBB0_16
LBB0_6:
	leaq	-32(%rbp), %rdi
	callq	_remove_credential
	jmp	LBB0_16
LBB0_8:
	cmpl	$0, -36(%rbp)
	js	LBB0_9
## %bb.11:
	cmpl	$0, -28(%rbp)
	je	LBB0_13
## %bb.12:
	cmpl	$0, -32(%rbp)
	je	LBB0_13
## %bb.14:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_remove_credential
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	callq	_cache_credential
	jmp	LBB0_16
LBB0_9:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.7(%rip), %rdi
LBB0_10:
	xorl	%eax, %eax
	callq	_warning
LBB0_16:
	leaq	-32(%rbp), %rdi
	callq	_credential_clear
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_CREDENTIAL_INIT,8,2            ## @CREDENTIAL_INIT
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get"

L_.str.1:                               ## @.str.1
	.asciz	"username=%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"password=%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"exit"

L_.str.4:                               ## @.str.4
	.asciz	"erase"

L_.str.5:                               ## @.str.5
	.asciz	"store"

L_.str.6:                               ## @.str.6
	.asciz	"cache client didn't specify a timeout"

L_.str.7:                               ## @.str.7
	.asciz	"cache client gave us a partial credential"

L_.str.8:                               ## @.str.8
	.asciz	"cache client sent unknown action: %s"

	.no_dead_strip	_serve_one_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serve_one_client
_serve_one_client:                      ; @serve_one_client
	.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
Lloh0:
	adrp	x8, _CREDENTIAL_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CREDENTIAL_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	mov	w8, #-1
	stp	w8, w9, [sp, #12]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_read_request
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w0, [sp, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [sp, #16]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.3:
	ldr	w0, [sp, #16]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w0, [sp, #16]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.5:
	ldr	w8, [sp, #16]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.8@PAGE
Lloh15:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_6:
	bl	_warning
	b	LBB0_10
LBB0_7:
	add	x0, sp, #24
	bl	_lookup_credential
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
	ldr	x2, [x0]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x2, [x20, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	b	LBB0_10
LBB0_9:
	add	x0, sp, #24
	bl	_remove_credential
LBB0_10:
	add	x0, sp, #24
	bl	_credential_clear
	add	x0, sp, #16
	bl	_strbuf_release
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_15
; %bb.12:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_16
; %bb.13:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_16
; %bb.14:
	add	x0, sp, #24
	bl	_remove_credential
	ldr	w1, [sp, #12]
	add	x0, sp, #24
	bl	_cache_credential
	b	LBB0_10
LBB0_15:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_16:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_17:
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CREDENTIAL_INIT,8,2            ; @CREDENTIAL_INIT
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get"

l_.str.1:                               ; @.str.1
	.asciz	"username=%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"password=%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"exit"

l_.str.4:                               ; @.str.4
	.asciz	"erase"

l_.str.5:                               ; @.str.5
	.asciz	"store"

l_.str.6:                               ; @.str.6
	.asciz	"cache client didn't specify a timeout"

l_.str.7:                               ; @.str.7
	.asciz	"cache client gave us a partial credential"

l_.str.8:                               ; @.str.8
	.asciz	"cache client sent unknown action: %s"

	.no_dead_strip	_serve_one_client
.subsections_via_symbols
