	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_remote
_update_remote:                         ## @update_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -52(%rbp)
	movq	_DAV_HEADER_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_get_dav_token_headers
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_strbuf_addf
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_get_active_slot
	movq	%rax, %rbx
	leaq	-72(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movq	_DAV_PUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fwrite_null@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rcx
	callq	_curl_setup_http
	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_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_run_active_slot
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movq	-72(%rbp), %rdx
	movq	_CURLE_OK@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	cmpq	(%rax), %rdx
	je	LBB0_4
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-64(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_4
LBB0_3:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_DAV_HEADER_IF,4,2              ## @DAV_HEADER_IF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_DAV_PUT,4,2                    ## @DAV_PUT
	.comm	_fwrite_null,4,2                ## @fwrite_null
	.comm	_CURLOPT_HTTPHEADER,4,2         ## @CURLOPT_HTTPHEADER
	.comm	_CURLE_OK,8,3                   ## @CURLE_OK
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"PUT error: curl result=%d, HTTP code=%ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to start PUT request\n"

	.no_dead_strip	_update_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_remote
_update_remote:                         ; @update_remote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, wzr, [sp, #20]
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _DAV_HEADER_IF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAV_HEADER_IF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_get_dav_token_headers
	mov	x21, x0
	mov	x0, x19
	bl	_oid_to_hex
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_strbuf_addf
	bl	_get_active_slot
	mov	x19, x0
	add	x8, sp, #32
	str	x8, [x0, #8]
	ldr	w0, [x0]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _DAV_PUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DAV_PUT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _fwrite_null@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fwrite_null@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x3, sp, #16
	bl	_curl_setup_http
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _CURLOPT_HTTPHEADER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CURLOPT_HTTPHEADER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_curl_easy_setopt
	mov	x0, x19
	bl	_start_active_slot
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_run_active_slot
	add	x0, sp, #16
	bl	_strbuf_release
	ldr	x8, [sp, #32]
Lloh17:
	adrp	x9, _CURLE_OK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CURLE_OK@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
	add	x0, sp, #16
	bl	_strbuf_release
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh25:
	adrp	x9, _stderr@GOTPAGE
Lloh26:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	ldr	w9, [sp, #40]
	stp	x8, x9, [sp]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_fprintf
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_DAV_HEADER_IF,4,2              ; @DAV_HEADER_IF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_DAV_PUT,4,2                    ; @DAV_PUT
	.comm	_fwrite_null,4,2                ; @fwrite_null
	.comm	_CURLOPT_HTTPHEADER,4,2         ; @CURLOPT_HTTPHEADER
	.comm	_CURLE_OK,8,3                   ; @CURLE_OK
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"PUT error: curl result=%d, HTTP code=%ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to start PUT request\n"

	.no_dead_strip	_update_remote
.subsections_via_symbols
