	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_remote_refs
_update_remote_refs:                    ## @update_remote_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	%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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, -64(%rbp)
	cmpl	$0, 16(%rbp)
	je	LBB0_3
## %bb.1:
	movl	24(%rbp), %eax
	movq	%r9, -48(%rbp)
	movl	(%r9), %ecx
	movl	%ecx, -52(%rbp)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, -56(%rbp)
	movq	_iterate_ref_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_check_connected
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_3:
	testq	%r13, %r13
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_write_remote_refs
	movq	_option_single_branch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_option_no_tags@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_write_followtags
LBB0_7:
	testq	%r12, %r12
	je	LBB0_12
## %bb.8:
	movq	_option_bare@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.9:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strbuf_addstr
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movl	-56(%rbp), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_create_symref
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	-56(%rbp), %esi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECK_CONNECTED_INIT,16,3      ## @CHECK_CONNECTED_INIT
	.comm	_iterate_ref_map,4,2            ## @iterate_ref_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote did not send all necessary objects"

	.comm	_option_single_branch,8,3       ## @option_single_branch
	.comm	_option_no_tags,4,2             ## @option_no_tags
	.comm	_option_bare,4,2                ## @option_bare
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
L_.str.1:                               ## @.str.1
	.asciz	"HEAD"

L_.str.2:                               ## @.str.2
	.asciz	"unable to update %s"

	.no_dead_strip	_update_remote_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_refs
_update_remote_refs:                    ; @update_remote_refs
	.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, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	str	x1, [sp, #24]
	cbz	w6, LBB0_3
; %bb.1:
	str	x5, [sp, #16]
	ldr	w8, [x5]
	cmp	w7, #0
	cset	w9, ne
	stp	w9, w8, [sp, #8]
Lloh0:
	adrp	x8, _iterate_ref_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iterate_ref_map@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_check_connected
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_3:
	cbz	x22, LBB0_6
; %bb.4:
	mov	x0, x23
	bl	_write_remote_refs
Lloh5:
	adrp	x8, _option_single_branch@GOTPAGE
Lloh6:
	ldr	x8, [x8, _option_single_branch@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _option_no_tags@GOTPAGE
Lloh9:
	ldr	x9, [x9, _option_no_tags@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x19
	bl	_write_followtags
LBB0_6:
	cbz	x20, LBB0_11
; %bb.7:
Lloh11:
	adrp	x8, _option_bare@GOTPAGE
Lloh12:
	ldr	x8, [x8, _option_bare@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.8:
Lloh14:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	x1, x21
	bl	_strbuf_addstr
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w0, [sp, #8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x2, x19
	bl	_create_symref
	tbz	x0, #63, LBB0_10
; %bb.9:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	w8, [sp, #8]
	str	x8, [sp]
	bl	_die
LBB0_10:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECK_CONNECTED_INIT,16,3      ; @CHECK_CONNECTED_INIT
	.comm	_iterate_ref_map,4,2            ; @iterate_ref_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote did not send all necessary objects"

	.comm	_option_single_branch,8,3       ; @option_single_branch
	.comm	_option_no_tags,4,2             ; @option_no_tags
	.comm	_option_bare,4,2                ; @option_bare
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
l_.str.1:                               ; @.str.1
	.asciz	"HEAD"

l_.str.2:                               ; @.str.2
	.asciz	"unable to update %s"

	.no_dead_strip	_update_remote_refs
.subsections_via_symbols
