	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_update_ref
_s_update_ref:                          ## @s_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	_dry_run@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	$0, (%rdx)
	jne	LBB0_12
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_default_rla@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_xstrfmt
	movq	%rax, %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_ref_transaction_begin
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	8(%r13), %esi
	leaq	4(%r13), %rdx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	cmovneq	%r13, %rcx
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_ref_transaction_update
	testq	%rax, %rax
	movq	%rbx, %r14
	movb	$1, %bl
	jne	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ref_transaction_commit
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movq	_TRANSACTION_NAME_CONFLICT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setne	%bl
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %r14
	movb	$1, %bl
LBB0_8:
	movq	%r15, %rdi
	callq	_ref_transaction_free
	movl	-48(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	callq	_free
	testb	%bl, %bl
	je	LBB0_9
## %bb.10:
	movq	_STORE_REF_ERROR_OTHER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_STORE_REF_ERROR_DF_CONFLICT@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rdi
	callq	_ref_transaction_free
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	callq	_free
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GIT_REFLOG_ACTION"

	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_dry_run,8,3                    ## @dry_run
	.comm	_default_rla,8,3                ## @default_rla
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_TRANSACTION_NAME_CONFLICT,4,2  ## @TRANSACTION_NAME_CONFLICT
L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_STORE_REF_ERROR_DF_CONFLICT,4,2 ## @STORE_REF_ERROR_DF_CONFLICT
	.comm	_STORE_REF_ERROR_OTHER,4,2      ## @STORE_REF_ERROR_OTHER
	.no_dead_strip	_s_update_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_update_ref
_s_update_ref:                          ; @s_update_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _dry_run@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dry_run@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _default_rla@GOTPAGE
Lloh9:
	ldr	x8, [x8, _default_rla@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x1, x8, x0, eq
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_xstrfmt
	mov	x19, x0
	add	x0, sp, #8
	bl	_ref_transaction_begin
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x21, #8]
	add	x2, x21, #4
	cmp	w22, #0
	csel	x3, xzr, x21, eq
	add	x6, sp, #8
	mov	x0, x20
	mov	w4, #0
	mov	x5, x19
	bl	_ref_transaction_update
	cbz	x0, LBB0_7
LBB0_4:
	mov	w21, #1
LBB0_5:
	mov	x0, x20
	bl	_ref_transaction_free
	ldr	w1, [sp, #8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	bl	_free
Lloh15:
	adrp	x8, _STORE_REF_ERROR_DF_CONFLICT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STORE_REF_ERROR_DF_CONFLICT@GOTPAGEOFF]
Lloh17:
	adrp	x9, _STORE_REF_ERROR_OTHER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _STORE_REF_ERROR_OTHER@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, ne
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	add	x1, sp, #8
	mov	x0, x20
	bl	_ref_transaction_commit
	cbz	w0, LBB0_9
; %bb.8:
Lloh19:
	adrp	x8, _TRANSACTION_NAME_CONFLICT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRANSACTION_NAME_CONFLICT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w21, ne
	b	LBB0_5
LBB0_9:
	mov	x0, x20
	bl	_ref_transaction_free
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GIT_REFLOG_ACTION"

	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_dry_run,8,3                    ; @dry_run
	.comm	_default_rla,8,3                ; @default_rla
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_TRANSACTION_NAME_CONFLICT,4,2  ; @TRANSACTION_NAME_CONFLICT
l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_STORE_REF_ERROR_DF_CONFLICT,4,2 ; @STORE_REF_ERROR_DF_CONFLICT
	.comm	_STORE_REF_ERROR_OTHER,4,2      ; @STORE_REF_ERROR_OTHER
	.no_dead_strip	_s_update_ref
.subsections_via_symbols
