	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refresh_lock
_refresh_lock:                          ## @refresh_lock
	.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
	movq	%rdi, %r12
	movl	$1, (%rdi)
	movq	_DAV_HEADER_IF@GOTPCREL(%rip), %rax
	movq	_DAV_HEADER_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_get_dav_token_headers
	movq	%rax, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_get_active_slot
	movq	%rax, %rbx
	leaq	-48(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movl	8(%r12), %esi
	movq	_DAV_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_curl_setup_http_get
	movl	(%rbx), %edi
	movq	_CURLOPT_HTTPHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_curl_easy_setopt
	movq	%rbx, %rdi
	callq	_start_active_slot
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_run_active_slot
	movq	-48(%rbp), %rax
	movq	_CURLE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	callq	_time
	movl	%eax, 4(%r12)
	movl	$1, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-40(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_4:
	movl	$0, (%r12)
	movq	%r14, %rdi
	callq	_curl_slist_free_all
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAV_HEADER_IF,4,2              ## @DAV_HEADER_IF
	.comm	_DAV_HEADER_TIMEOUT,4,2         ## @DAV_HEADER_TIMEOUT
	.comm	_DAV_LOCK,4,2                   ## @DAV_LOCK
	.comm	_CURLOPT_HTTPHEADER,4,2         ## @CURLOPT_HTTPHEADER
	.comm	_CURLE_OK,8,3                   ## @CURLE_OK
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LOCK HTTP error %ld\n"

	.no_dead_strip	_refresh_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refresh_lock
_refresh_lock:                          ; @refresh_lock
	.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	x19, x0
	mov	w8, #1
Lloh0:
	adrp	x9, _DAV_HEADER_IF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DAV_HEADER_IF@GOTPAGEOFF]
	str	w8, [x0]
Lloh2:
	ldr	w8, [x9]
Lloh3:
	adrp	x9, _DAV_HEADER_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DAV_HEADER_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_get_dav_token_headers
	mov	x20, x0
	bl	_get_active_slot
	mov	x21, x0
	mov	x8, sp
	str	x8, [x0, #8]
	ldr	w0, [x0]
	ldr	w1, [x19, #8]
Lloh6:
	adrp	x8, _DAV_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DAV_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_curl_setup_http_get
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _CURLOPT_HTTPHEADER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CURLOPT_HTTPHEADER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_curl_easy_setopt
	mov	x0, x21
	bl	_start_active_slot
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_run_active_slot
	ldr	x8, [sp]
Lloh12:
	adrp	x9, _CURLE_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CURLE_OK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, #0
	bl	_time
	str	w0, [x19, #4]
	mov	w21, #1
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_4:
	mov	w21, #0
LBB0_5:
	str	wzr, [x19]
	mov	x0, x20
	bl	_curl_slist_free_all
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DAV_HEADER_IF,4,2              ; @DAV_HEADER_IF
	.comm	_DAV_HEADER_TIMEOUT,4,2         ; @DAV_HEADER_TIMEOUT
	.comm	_DAV_LOCK,4,2                   ; @DAV_LOCK
	.comm	_CURLOPT_HTTPHEADER,4,2         ; @CURLOPT_HTTPHEADER
	.comm	_CURLE_OK,8,3                   ; @CURLE_OK
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LOCK HTTP error %ld\n"

	.no_dead_strip	_refresh_lock
.subsections_via_symbols
