	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function push_update_ref_status
_push_update_ref_status:                ## @push_update_ref_status
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_REF_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %r13
	addq	$3, %r13
	jmp	LBB0_5
LBB0_2:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_REF_STATUS_REMOTE_REJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %r13
	addq	$6, %r13
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_die
                                        ## implicit-def: $r13
                                        ## implicit-def: $r14d
LBB0_5:
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	incq	%rbx
	movb	$0, (%rax)
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_unquote_c_style
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_xstrdup
	jmp	LBB0_10
LBB0_6:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_8:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_10:
	movq	%rax, %r12
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.26:
	movl	$1, %ebx
	jmp	LBB0_27
LBB0_11:
	movq	_REF_STATUS_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	movq	_REF_STATUS_REJECT_NONFASTFORWARD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_18:
	movq	_REF_STATUS_REJECT_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_20:
	movq	_REF_STATUS_REJECT_FETCH_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_22:
	movq	_REF_STATUS_REJECT_NEEDS_FORCE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_24:
	movq	_REF_STATUS_REJECT_STALE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
LBB0_27:
	movq	%r12, %rdi
	callq	_FREE_AND_NULL
LBB0_28:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	movq	%r13, %rsi
	callq	_find_ref_by_name
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_32
LBB0_30:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_find_ref_by_name
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_31
LBB0_32:
	movq	_REF_STATUS_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, (%rax)
	je	LBB0_34
## %bb.33:
	movl	$1, %ecx
	cmpl	%edx, %r14d
	je	LBB0_35
LBB0_34:
	movl	%r14d, (%rax)
	orl	%ebx, 4(%rax)
	movq	%r12, 8(%rax)
	movq	_REF_STATUS_OK@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	(%rax), %r14d
	setne	%cl
	jmp	LBB0_35
LBB0_31:
	leaq	L_.str.11(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_warning
	movl	$1, %ecx
LBB0_35:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ok "

	.comm	_REF_STATUS_OK,4,2              ## @REF_STATUS_OK
L_.str.1:                               ## @.str.1
	.asciz	"error "

	.comm	_REF_STATUS_REMOTE_REJECT,4,2   ## @REF_STATUS_REMOTE_REJECT
L_.str.2:                               ## @.str.2
	.asciz	"expected ok/error, helper said '%s'"

	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
L_.str.3:                               ## @.str.3
	.asciz	"no match"

	.comm	_REF_STATUS_NONE,4,2            ## @REF_STATUS_NONE
L_.str.4:                               ## @.str.4
	.asciz	"up to date"

	.comm	_REF_STATUS_UPTODATE,4,2        ## @REF_STATUS_UPTODATE
L_.str.5:                               ## @.str.5
	.asciz	"non-fast forward"

	.comm	_REF_STATUS_REJECT_NONFASTFORWARD,4,2 ## @REF_STATUS_REJECT_NONFASTFORWARD
L_.str.6:                               ## @.str.6
	.asciz	"already exists"

	.comm	_REF_STATUS_REJECT_ALREADY_EXISTS,4,2 ## @REF_STATUS_REJECT_ALREADY_EXISTS
L_.str.7:                               ## @.str.7
	.asciz	"fetch first"

	.comm	_REF_STATUS_REJECT_FETCH_FIRST,4,2 ## @REF_STATUS_REJECT_FETCH_FIRST
L_.str.8:                               ## @.str.8
	.asciz	"needs force"

	.comm	_REF_STATUS_REJECT_NEEDS_FORCE,4,2 ## @REF_STATUS_REJECT_NEEDS_FORCE
L_.str.9:                               ## @.str.9
	.asciz	"stale info"

	.comm	_REF_STATUS_REJECT_STALE,4,2    ## @REF_STATUS_REJECT_STALE
L_.str.10:                              ## @.str.10
	.asciz	"forced update"

L_.str.11:                              ## @.str.11
	.asciz	"helper reported unexpected status of %s"

	.no_dead_strip	_push_update_ref_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function push_update_ref_status
_push_update_ref_status:                ; @push_update_ref_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_starts_with
Lloh2:
	adrp	x23, _REF_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _REF_STATUS_OK@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w24, [x23]
	ldr	x8, [x21]
	add	x21, x8, #3
	b	LBB0_5
LBB0_2:
	ldr	x0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _REF_STATUS_REMOTE_REJECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REF_STATUS_REMOTE_REJECT@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	ldr	x8, [x21]
	add	x21, x8, #6
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x1, [x21]
	bl	_die
                                        ; implicit-def: $x21
                                        ; implicit-def: $w24
LBB0_5:
	mov	x0, x21
	mov	w1, #32
	bl	_strchr
	mov	x22, x0
Lloh11:
	adrp	x25, _REF_STATUS_NONE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _REF_STATUS_NONE@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.6:
Lloh13:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	strb	wzr, [x22], #1
	add	x0, sp, #8
	mov	x2, sp
	mov	x1, x22
	bl	_unquote_c_style
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_xstrdup
	b	LBB0_9
LBB0_8:
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
LBB0_9:
	mov	x22, x0
	add	x0, sp, #8
	bl	_strbuf_release
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_18
; %bb.10:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.11:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_20
; %bb.12:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_21
; %bb.13:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_22
; %bb.14:
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.15:
Lloh28:
	adrp	x1, l_.str.9@PAGE
Lloh29:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_24
; %bb.16:
Lloh30:
	adrp	x1, l_.str.10@PAGE
Lloh31:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_25
LBB0_17:
	mov	w26, #0
	ldr	x0, [x19]
	cbnz	x0, LBB0_27
	b	LBB0_28
LBB0_18:
	mov	w26, #0
	ldr	w24, [x25]
	b	LBB0_26
LBB0_19:
	mov	w26, #0
Lloh32:
	adrp	x8, _REF_STATUS_UPTODATE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REF_STATUS_UPTODATE@GOTPAGEOFF]
Lloh34:
	ldr	w24, [x8]
	b	LBB0_26
LBB0_20:
	mov	w26, #0
Lloh35:
	adrp	x8, _REF_STATUS_REJECT_NONFASTFORWARD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REF_STATUS_REJECT_NONFASTFORWARD@GOTPAGEOFF]
Lloh37:
	ldr	w24, [x8]
	b	LBB0_26
LBB0_21:
	mov	w26, #0
Lloh38:
	adrp	x8, _REF_STATUS_REJECT_ALREADY_EXISTS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REF_STATUS_REJECT_ALREADY_EXISTS@GOTPAGEOFF]
Lloh40:
	ldr	w24, [x8]
	b	LBB0_26
LBB0_22:
	mov	w26, #0
Lloh41:
	adrp	x8, _REF_STATUS_REJECT_FETCH_FIRST@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REF_STATUS_REJECT_FETCH_FIRST@GOTPAGEOFF]
Lloh43:
	ldr	w24, [x8]
	b	LBB0_26
LBB0_23:
	mov	w26, #0
Lloh44:
	adrp	x8, _REF_STATUS_REJECT_NEEDS_FORCE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REF_STATUS_REJECT_NEEDS_FORCE@GOTPAGEOFF]
Lloh46:
	ldr	w24, [x8]
	b	LBB0_26
LBB0_24:
	mov	w26, #0
Lloh47:
	adrp	x8, _REF_STATUS_REJECT_STALE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _REF_STATUS_REJECT_STALE@GOTPAGEOFF]
Lloh49:
	ldr	w24, [x8]
	b	LBB0_26
LBB0_25:
	mov	w26, #1
LBB0_26:
	mov	x0, x22
	bl	_FREE_AND_NULL
	ldr	x0, [x19]
	cbz	x0, LBB0_28
LBB0_27:
	mov	x1, x21
	bl	_find_ref_by_name
	str	x0, [x19]
	cbnz	x0, LBB0_29
LBB0_28:
	mov	x0, x20
	mov	x1, x21
	bl	_find_ref_by_name
	str	x0, [x19]
	cbz	x0, LBB0_31
LBB0_29:
	ldr	w8, [x0]
	ldr	w9, [x25]
	cmp	w8, w9
	ccmp	w24, w9, #0, ne
	b.eq	LBB0_32
; %bb.30:
	ldr	w8, [x0, #4]
	orr	w8, w8, w26
	stp	w24, w8, [x0]
	str	x22, [x0, #8]
	ldr	w8, [x23]
	cmp	w24, w8
	cset	w0, ne
	b	LBB0_33
LBB0_31:
Lloh50:
	adrp	x0, l_.str.11@PAGE
Lloh51:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_warning
LBB0_32:
	mov	w0, #1
LBB0_33:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ok "

	.comm	_REF_STATUS_OK,4,2              ; @REF_STATUS_OK
l_.str.1:                               ; @.str.1
	.asciz	"error "

	.comm	_REF_STATUS_REMOTE_REJECT,4,2   ; @REF_STATUS_REMOTE_REJECT
l_.str.2:                               ; @.str.2
	.asciz	"expected ok/error, helper said '%s'"

	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
l_.str.3:                               ; @.str.3
	.asciz	"no match"

	.comm	_REF_STATUS_NONE,4,2            ; @REF_STATUS_NONE
l_.str.4:                               ; @.str.4
	.asciz	"up to date"

	.comm	_REF_STATUS_UPTODATE,4,2        ; @REF_STATUS_UPTODATE
l_.str.5:                               ; @.str.5
	.asciz	"non-fast forward"

	.comm	_REF_STATUS_REJECT_NONFASTFORWARD,4,2 ; @REF_STATUS_REJECT_NONFASTFORWARD
l_.str.6:                               ; @.str.6
	.asciz	"already exists"

	.comm	_REF_STATUS_REJECT_ALREADY_EXISTS,4,2 ; @REF_STATUS_REJECT_ALREADY_EXISTS
l_.str.7:                               ; @.str.7
	.asciz	"fetch first"

	.comm	_REF_STATUS_REJECT_FETCH_FIRST,4,2 ; @REF_STATUS_REJECT_FETCH_FIRST
l_.str.8:                               ; @.str.8
	.asciz	"needs force"

	.comm	_REF_STATUS_REJECT_NEEDS_FORCE,4,2 ; @REF_STATUS_REJECT_NEEDS_FORCE
l_.str.9:                               ; @.str.9
	.asciz	"stale info"

	.comm	_REF_STATUS_REJECT_STALE,4,2    ; @REF_STATUS_REJECT_STALE
l_.str.10:                              ; @.str.10
	.asciz	"forced update"

l_.str.11:                              ; @.str.11
	.asciz	"helper reported unexpected status of %s"

	.no_dead_strip	_push_update_ref_status
.subsections_via_symbols
