	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_remote_info_refs
_update_remote_info_refs:               ## @update_remote_info_refs
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -36(%rbp)
	movq	_PROCESS_FILES@GOTPCREL(%rip), %rax
	movq	_RECURSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_add_remote_info_ref@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rcx
	callq	_remote_ls
	movq	_aborted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_4:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_DAV_HEADER_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_get_dav_token_headers
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_get_active_slot
	movq	%rax, %rbx
	leaq	-56(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movq	_DAV_PUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fwrite_null@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-40(%rbp), %rcx
	callq	_curl_setup_http
	movl	(%rbx), %edi
	movq	_CURLOPT_HTTPHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_curl_easy_setopt
	movq	%rbx, %rdi
	callq	_start_active_slot
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_run_active_slot
	movq	-56(%rbp), %rdx
	movq	_CURLE_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/"

	.comm	_PROCESS_FILES,4,2              ## @PROCESS_FILES
	.comm	_RECURSIVE,4,2                  ## @RECURSIVE
	.comm	_add_remote_info_ref,4,2        ## @add_remote_info_ref
	.comm	_aborted,4,2                    ## @aborted
	.comm	_DAV_HEADER_IF,4,2              ## @DAV_HEADER_IF
	.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"

	.no_dead_strip	_update_remote_info_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_remote_info_refs
_update_remote_info_refs:               ; @update_remote_info_refs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
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, _PROCESS_FILES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROCESS_FILES@GOTPAGEOFF]
Lloh5:
	adrp	x9, _RECURSIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RECURSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh9:
	adrp	x8, _add_remote_info_ref@GOTPAGE
Lloh10:
	ldr	x8, [x8, _add_remote_info_ref@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	add	x3, sp, #16
	bl	_remote_ls
Lloh14:
	adrp	x8, _aborted@GOTPAGE
Lloh15:
	ldr	x8, [x8, _aborted@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
LBB0_1:
	add	x0, sp, #16
	bl	_strbuf_release
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
Lloh17:
	adrp	x8, _DAV_HEADER_IF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DAV_HEADER_IF@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_get_dav_token_headers
	mov	x21, x0
	bl	_get_active_slot
	mov	x20, x0
	mov	x8, sp
	str	x8, [x0, #8]
	ldr	w0, [x0]
	ldr	w1, [x19]
Lloh20:
	adrp	x8, _DAV_PUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DAV_PUT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _fwrite_null@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fwrite_null@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	add	x3, sp, #16
	bl	_curl_setup_http
	ldr	w0, [x20]
Lloh26:
	adrp	x8, _CURLOPT_HTTPHEADER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CURLOPT_HTTPHEADER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_curl_easy_setopt
	mov	x0, x20
	bl	_start_active_slot
	cbz	x0, LBB0_1
; %bb.3:
	mov	x0, x20
	bl	_run_active_slot
	ldr	x2, [sp]
Lloh29:
	adrp	x8, _CURLE_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CURLE_OK@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_1
; %bb.4:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w3, [sp, #8]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/"

	.comm	_PROCESS_FILES,4,2              ; @PROCESS_FILES
	.comm	_RECURSIVE,4,2                  ; @RECURSIVE
	.comm	_add_remote_info_ref,4,2        ; @add_remote_info_ref
	.comm	_aborted,4,2                    ; @aborted
	.comm	_DAV_HEADER_IF,4,2              ; @DAV_HEADER_IF
	.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"

	.no_dead_strip	_update_remote_info_refs
.subsections_via_symbols
