	.file	"extr_name-rev.c_get_rev_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"^0"
.LC1:
	.string	"%.*s~%d"
	.text
	.p2align 4
	.type	get_rev_name, @function
get_rev_name:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR OBJ_COMMIT[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L2
	jmp	get_exact_ref_match@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	get_commit_rev_name@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	test	edx, edx
	jne	.L9
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rax
	call	strlen@PLT
	mov	r12d, eax
	cmp	eax, 2
	jg	.L10
.L4:
	mov	rdi, rbp
	call	strbuf_reset@PLT
	mov	r8d, DWORD PTR 8[rbx]
	mov	rcx, QWORD PTR [rbx]
	mov	edx, r12d
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	strbuf_addf@PLT
	mov	rax, QWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR [rbx]
	cdqe
	lea	rsi, .LC0[rip]
	lea	rdi, -2[rdx+rax]
	call	strcmp@PLT
	mov	r8d, eax
	lea	eax, -2[r12]
	test	r8d, r8d
	cmove	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	get_rev_name, .-get_rev_name
	.comm	OBJ_COMMIT,8,8
	.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_name-rev.c_get_rev_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"^0\000"
	.align	2
.LC1:
	.ascii	"%.*s~%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_rev_name, %function
get_rev_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	b	get_exact_ref_match
.L2:
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r5, r1
	bl	get_commit_rev_name
	subs	r4, r0, #0
	beq	.L5
	ldr	r3, [r4, #4]
	ldr	r6, [r4]
	cmp	r3, #0
	beq	.L1
	mov	r0, r6
	bl	strlen
	cmp	r0, #2
	mov	r7, r0
	bgt	.L12
.L4:
	mov	r0, r5
	bl	strbuf_reset
	ldr	r1, [r4, #4]
	ldr	r3, [r4]
	mov	r2, r7
	str	r1, [sp]
	mov	r0, r5
	ldr	r1, .L13+4
	bl	strbuf_addf
	ldr	r6, [r5]
.L1:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	sub	r8, r0, #2
	ldr	r1, .L13+8
	add	r0, r6, r8
	bl	strcmp
	cmp	r0, #0
	moveq	r7, r8
	b	.L4
.L5:
	mov	r6, r4
	b	.L1
.L14:
	.align	2
.L13:
	.word	OBJ_COMMIT
	.word	.LC1
	.word	.LC0
	.size	get_rev_name, .-get_rev_name
	.comm	OBJ_COMMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
