	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ref_transaction_update         ## -- Begin function ref_transaction_update
	.p2align	4, 0x90
_ref_transaction_update:                ## @ref_transaction_update
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r13
	movq	%r13, %rdi
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_null_oid
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	movq	%r12, %rdi
	callq	_refname_is_safe
	testl	%eax, %eax
	je	LBB0_11
LBB0_3:
	movq	_REF_TRANSACTION_UPDATE_ALLOWED_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_BUG
LBB0_5:
	xorl	%r13d, %r13d
	movl	$0, %edx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	_REF_HAVE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movl	$0, %eax
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	_REF_HAVE_OLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	orl	%r14d, %edx
	orl	%eax, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rcx
	movq	%r15, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_ref_transaction_add_update
	jmp	LBB0_12
LBB0_2:
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_check_refname_format
	testl	%eax, %eax
	je	LBB0_3
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_strbuf_addf
	movl	$-1, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ## @REFNAME_ALLOW_ONELEVEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refusing to update ref with bad name '%s'"

	.comm	_REF_TRANSACTION_UPDATE_ALLOWED_FLAGS,4,2 ## @REF_TRANSACTION_UPDATE_ALLOWED_FLAGS
L_.str.1:                               ## @.str.1
	.asciz	"illegal flags 0x%x passed to ref_transaction_update()"

	.comm	_REF_HAVE_NEW,4,2               ## @REF_HAVE_NEW
	.comm	_REF_HAVE_OLD,4,2               ## @REF_HAVE_OLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ref_transaction_update         ; -- Begin function ref_transaction_update
	.p2align	2
_ref_transaction_update:                ; @ref_transaction_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x6
	mov	x20, x5
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x24, x0
	mov	x0, x6
	bl	_assert
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_is_null_oid
	cbz	w0, LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_refname_is_safe
	cbz	w0, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _REF_TRANSACTION_UPDATE_ALLOWED_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_TRANSACTION_UPDATE_ALLOWED_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w23, w8
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_BUG
LBB0_5:
Lloh5:
	adrp	x8, _REF_HAVE_NEW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REF_HAVE_NEW@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x22, #0
Lloh8:
	adrp	x9, _REF_HAVE_OLD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REF_HAVE_OLD@GOTPAGEOFF]
	csel	w8, wzr, w8, eq
Lloh10:
	ldr	w9, [x9]
	cmp	x21, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w23
	orr	w2, w8, w9
	mov	x0, x24
	mov	x1, x19
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_ref_transaction_add_update
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_check_refname_format
	cbz	w0, LBB0_3
LBB0_7:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x25
	mov	x2, x19
	bl	_strbuf_addf
	mov	w0, #-1
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	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	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ; @REFNAME_ALLOW_ONELEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refusing to update ref with bad name '%s'"

	.comm	_REF_TRANSACTION_UPDATE_ALLOWED_FLAGS,4,2 ; @REF_TRANSACTION_UPDATE_ALLOWED_FLAGS
l_.str.1:                               ; @.str.1
	.asciz	"illegal flags 0x%x passed to ref_transaction_update()"

	.comm	_REF_HAVE_NEW,4,2               ; @REF_HAVE_NEW
	.comm	_REF_HAVE_OLD,4,2               ; @REF_HAVE_OLD
.subsections_via_symbols
