	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unlock_remote
_unlock_remote:                         ## @unlock_remote
	.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, %r13
	movq	_repo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_DAV_HEADER_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_dav_token_headers
	movq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_active_slot
	movq	%rax, %r12
	leaq	-56(%rbp), %rax
	movq	%rax, 8(%r12)
	movl	(%r12), %edi
	movq	8(%r13), %rsi
	movq	_DAV_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_curl_setup_http_get
	movl	(%r12), %edi
	movq	_CURLOPT_HTTPHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_curl_easy_setopt
	movq	%r12, %rdi
	callq	_start_active_slot
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_run_active_slot
	movq	-56(%rbp), %rax
	movq	_CURLE_OK@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	movq	_repo@GOTPCREL(%rip), %r12
	je	LBB0_4
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_4
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_repo@GOTPCREL(%rip), %r12
LBB0_4:
	movq	%r15, %rdi
	callq	_curl_slist_free_all
	movq	(%r12), %rax
	cmpq	%r13, (%rax)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	movq	24(%rbx), %rbx
	cmpq	%r13, %rbx
	jne	LBB0_5
## %bb.7:
	addq	$24, %rax
LBB0_8:
	movq	24(%r13), %rcx
	movq	%rcx, (%rax)
LBB0_9:
	movq	16(%r13), %rdi
	callq	_free
	movq	8(%r13), %rdi
	callq	_free
	movq	(%r13), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_repo,8,3                       ## @repo
	.comm	_DAV_HEADER_LOCK,4,2            ## @DAV_HEADER_LOCK
	.comm	_DAV_UNLOCK,4,2                 ## @DAV_UNLOCK
	.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	"UNLOCK HTTP error %ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to start UNLOCK request\n"

	.no_dead_strip	_unlock_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unlock_remote
_unlock_remote:                         ; @unlock_remote
	.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	x23, _repo@GOTPAGE
Lloh1:
	ldr	x23, [x23, _repo@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x22, [x8]
Lloh2:
	adrp	x8, _DAV_HEADER_LOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DAV_HEADER_LOCK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_get_dav_token_headers
	mov	x20, x0
	bl	_get_active_slot
	mov	x21, x0
	add	x8, sp, #16
	str	x8, [x0, #8]
	ldr	w0, [x0]
	ldr	x1, [x19, #8]
Lloh5:
	adrp	x8, _DAV_UNLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DAV_UNLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_curl_setup_http_get
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _CURLOPT_HTTPHEADER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CURLOPT_HTTPHEADER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_curl_easy_setopt
	mov	x0, x21
	bl	_start_active_slot
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_run_active_slot
	ldr	x8, [sp, #16]
Lloh11:
	adrp	x9, _CURLE_OK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CURLE_OK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #1
	b	LBB0_6
LBB0_3:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_fprintf
	mov	w21, #0
LBB0_6:
	mov	x0, x20
	bl	_curl_slist_free_all
	ldr	x8, [x23]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x22
	ldr	x22, [x22, #24]
	cmp	x22, x19
	b.ne	LBB0_7
; %bb.9:
	add	x8, x8, #24
LBB0_10:
	ldr	x9, [x19, #24]
	str	x9, [x8]
LBB0_11:
	ldr	x0, [x19, #16]
	bl	_free
	ldr	x0, [x19, #8]
	bl	_free
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x0, x21
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_repo,8,3                       ; @repo
	.comm	_DAV_HEADER_LOCK,4,2            ; @DAV_HEADER_LOCK
	.comm	_DAV_UNLOCK,4,2                 ; @DAV_UNLOCK
	.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	"UNLOCK HTTP error %ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to start UNLOCK request\n"

	.no_dead_strip	_unlock_remote
.subsections_via_symbols
