	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_update_ref
_cmd_update_ref:                        ## @cmd_update_ref
	.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, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_notnull
	movq	%rax, %r15
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_notnull
	movq	%rax, %r12
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_notnull
	movq	%rax, %r13
	movl	24(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_notnull
	movq	%rax, %r14
	movl	32(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_arg_flags
	movl	%eax, %ebx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_oid_hex
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_get_oid_hex
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	leaq	L_.str.5(%rip), %rdi
	callq	_die
LBB0_3:
	movq	_UPDATE_REFS_DIE_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%ebx, %r9d
	callq	_refs_update_ref
	addq	$40, %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	"msg"

L_.str.1:                               ## @.str.1
	.asciz	"refname"

L_.str.2:                               ## @.str.2
	.asciz	"new-sha1"

L_.str.3:                               ## @.str.3
	.asciz	"old-sha1"

L_.str.4:                               ## @.str.4
	.asciz	"flags"

L_.str.5:                               ## @.str.5
	.asciz	"not sha-1"

	.comm	_UPDATE_REFS_DIE_ON_ERR,4,2     ## @UPDATE_REFS_DIE_ON_ERR
	.no_dead_strip	_cmd_update_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_update_ref
_cmd_update_ref:                        ; @cmd_update_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_notnull
	mov	x20, x0
	ldr	w0, [x22, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_notnull
	mov	x21, x0
	ldr	w0, [x22, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_notnull
	mov	x23, x0
	ldr	w0, [x22, #24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_notnull
	mov	x24, x0
	ldr	w0, [x22, #32]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_arg_flags
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x24
	bl	_get_oid_hex
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x23
	bl	_get_oid_hex
	cbz	x0, LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_die
LBB0_3:
Lloh12:
	adrp	x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x5, x22
	bl	_refs_update_ref
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msg"

l_.str.1:                               ; @.str.1
	.asciz	"refname"

l_.str.2:                               ; @.str.2
	.asciz	"new-sha1"

l_.str.3:                               ; @.str.3
	.asciz	"old-sha1"

l_.str.4:                               ; @.str.4
	.asciz	"flags"

l_.str.5:                               ; @.str.5
	.asciz	"not sha-1"

	.comm	_UPDATE_REFS_DIE_ON_ERR,4,2     ; @UPDATE_REFS_DIE_ON_ERR
	.no_dead_strip	_cmd_update_ref
.subsections_via_symbols
