	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_cache
_do_cache:                              ## @do_cache
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	_FLAG_RELAY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strbuf_read
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_die_errno
LBB0_3:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_send_request
	testq	%rax, %rax
	js	LBB0_4
LBB0_10:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_die_errno
LBB0_7:
	movq	_FLAG_SPAWN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_spawn_daemon
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_send_request
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_die_errno
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"action=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"timeout=%d\n"

	.comm	_FLAG_RELAY,4,2                 ## @FLAG_RELAY
L_.str.2:                               ## @.str.2
	.asciz	"unable to relay credential"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ECONNREFUSED,8,3               ## @ECONNREFUSED
L_.str.3:                               ## @.str.3
	.asciz	"unable to connect to cache daemon"

	.comm	_FLAG_SPAWN,4,2                 ## @FLAG_SPAWN
	.no_dead_strip	_do_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_cache
_do_cache:                              ; @do_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x1, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
Lloh7:
	adrp	x8, _FLAG_RELAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLAG_RELAY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #0
	bl	_strbuf_read
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die_errno
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_send_request
	tbnz	x0, #63, LBB0_5
LBB0_4:
	add	x0, sp, #8
	bl	_strbuf_release
	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
	add	sp, sp, #64
	ret
LBB0_5:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _ENOENT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _ECONNREFUSED@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ECONNREFUSED@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_7
; %bb.6:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die_errno
LBB0_7:
Lloh23:
	adrp	x8, _FLAG_SPAWN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FLAG_SPAWN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.8:
	mov	x0, x19
	bl	_spawn_daemon
	add	x1, sp, #8
	mov	x0, x19
	bl	_send_request
	tbz	x0, #63, LBB0_4
; %bb.9:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die_errno
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"action=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"timeout=%d\n"

	.comm	_FLAG_RELAY,4,2                 ; @FLAG_RELAY
l_.str.2:                               ; @.str.2
	.asciz	"unable to relay credential"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ECONNREFUSED,8,3               ; @ECONNREFUSED
l_.str.3:                               ; @.str.3
	.asciz	"unable to connect to cache daemon"

	.comm	_FLAG_SPAWN,4,2                 ; @FLAG_SPAWN
	.no_dead_strip	_do_cache
.subsections_via_symbols
