	.file	"extr_refs.c_ref_transaction_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"refusing to update ref with bad name '%s'"
	.align 8
.LC1:
	.string	"illegal flags 0x%x passed to ref_transaction_update()"
	.text
	.p2align 4
	.globl	ref_transaction_update
	.type	ref_transaction_update, @function
ref_transaction_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR 64[rsp]
	call	assert@PLT
	test	r12, r12
	je	.L2
	mov	rdi, r12
	call	is_null_oid@PLT
	test	eax, eax
	je	.L21
.L2:
	mov	rdi, rbp
	call	refname_is_safe@PLT
	test	eax, eax
	sete	al
.L3:
	test	al, al
	jne	.L22
	mov	eax, DWORD PTR REF_TRANSACTION_UPDATE_ALLOWED_FLAGS[rip]
	not	eax
	test	eax, ebx
	jne	.L23
.L6:
	test	r12, r12
	je	.L7
	or	ebx, DWORD PTR REF_HAVE_NEW[rip]
.L7:
	test	r13, r13
	mov	edx, 0
	mov	r9, r15
	mov	r8, r13
	cmovne	edx, DWORD PTR REF_HAVE_OLD[rip]
	mov	rcx, r12
	mov	rsi, rbp
	mov	rdi, r14
	or	edx, ebx
	call	ref_transaction_add_update@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	esi, DWORD PTR REFNAME_ALLOW_ONELEVEL[rip]
	mov	rdi, rbp
	call	check_refname_format@PLT
	test	eax, eax
	setne	al
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	call	BUG@PLT
	jmp	.L6
.L22:
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	rdi, QWORD PTR 64[rsp]
	mov	rdx, rbp
	mov	esi, eax
	call	strbuf_addf@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ref_transaction_update, .-ref_transaction_update
	.comm	REF_TRANSACTION_UPDATE_ALLOWED_FLAGS,4,4
	.comm	REF_HAVE_OLD,4,4
	.comm	REF_HAVE_NEW,4,4
	.comm	REFNAME_ALLOW_ONELEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_refs.c_ref_transaction_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"refusing to update ref with bad name '%s'\000"
	.align	2
.LC1:
	.ascii	"illegal flags 0x%x passed to ref_transaction_update"
	.ascii	"()\000"
	.text
	.align	2
	.global	ref_transaction_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	ref_transaction_update, %function
ref_transaction_update:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	sub	sp, sp, #8
	mov	r8, r0
	ldr	r0, [sp, #40]
	mov	r6, r1
	mov	r5, r3
	ldr	r7, [sp, #32]
	bl	assert
	cmp	r4, #0
	beq	.L2
	mov	r0, r4
	bl	is_null_oid
	cmp	r0, #0
	beq	.L21
.L2:
	mov	r0, r6
	bl	refname_is_safe
	clz	r2, r0
	lsr	r2, r2, #5
.L3:
	cmp	r2, #0
	bne	.L22
	ldr	r3, .L24
	ldr	r3, [r3]
	bics	r3, r7, r3
	bne	.L23
.L6:
	cmp	r4, #0
	ldrne	r3, .L24+4
	mov	r1, r6
	ldrne	r3, [r3]
	mov	r0, r8
	orrne	r7, r7, r3
	cmp	r5, #0
	moveq	r2, r5
	ldrne	r3, .L24+8
	ldrne	r2, [r3]
	ldr	r3, [sp, #36]
	str	r5, [sp]
	str	r3, [sp, #4]
	orr	r2, r2, r7
	mov	r3, r4
	bl	ref_transaction_add_update
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r3, .L24+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	check_refname_format
	subs	r2, r0, #0
	movne	r2, #1
	b	.L3
.L23:
	mov	r1, r7
	ldr	r0, .L24+16
	bl	BUG
	b	.L6
.L22:
	ldr	r0, .L24+20
	bl	_
	mov	r2, r6
	mov	r1, r0
	ldr	r0, [sp, #40]
	bl	strbuf_addf
	mvn	r0, #0
	b	.L1
.L25:
	.align	2
.L24:
	.word	REF_TRANSACTION_UPDATE_ALLOWED_FLAGS
	.word	REF_HAVE_NEW
	.word	REF_HAVE_OLD
	.word	REFNAME_ALLOW_ONELEVEL
	.word	.LC1
	.word	.LC0
	.size	ref_transaction_update, .-ref_transaction_update
	.comm	REF_TRANSACTION_UPDATE_ALLOWED_FLAGS,4,4
	.comm	REF_HAVE_OLD,4,4
	.comm	REF_HAVE_NEW,4,4
	.comm	REFNAME_ALLOW_ONELEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
