	.file	"extr_refs.c_check_or_sanitize_refname.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_or_sanitize_refname, @function
check_or_sanitize_refname:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	cmp	BYTE PTR [rdi], 64
	mov	DWORD PTR 12[rsp], esi
	jne	.L3
	cmp	BYTE PTR 1[rdi], 0
	jne	.L3
	test	rdx, rdx
	je	.L9
	mov	esi, 45
	mov	rdi, rdx
	call	strbuf_addch@PLT
.L3:
	xor	ebp, ebp
	lea	r12, 12[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	QWORD PTR 0[r13], 0
	jne	.L22
.L7:
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbx
	call	check_refname_component@PLT
	mov	rcx, rbx
	xor	edx, edx
	test	eax, eax
	jne	.L13
	cmp	BYTE PTR [rcx], 0
	lea	eax, 1[rbp]
	je	.L10
.L24:
	lea	rbx, 1[rbx+rdx]
	mov	ebp, eax
.L11:
	test	r13, r13
	jne	.L23
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbx
	call	check_refname_component@PLT
.L13:
	test	eax, eax
	jle	.L9
	movsx	rdx, eax
	lea	eax, 1[rbp]
	lea	rcx, [rbx+rdx]
	cmp	BYTE PTR [rcx], 0
	jne	.L24
.L10:
	cmp	BYTE PTR -1[rbx+rdx], 46
	jne	.L15
	test	r13, r13
	je	.L9
.L15:
	mov	eax, DWORD PTR 12[rsp]
	and	eax, DWORD PTR REFNAME_ALLOW_ONELEVEL[rip]
	or	eax, ebp
	sete	al
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	esi, 47
	mov	rdi, r13
	call	strbuf_complete@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	add	rsp, 24
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	check_or_sanitize_refname, .-check_or_sanitize_refname
	.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_check_or_sanitize_refname.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_or_sanitize_refname, %function
check_or_sanitize_refname:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldrb	r3, [r0]	@ zero_extendqisi2
	sub	sp, sp, #8
	cmp	r3, #64
	mov	r4, r0
	mov	r5, r2
	str	r1, [sp, #4]
	bne	.L3
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	cmp	r2, #0
	beq	.L9
	mov	r1, #45
	mov	r0, r2
	bl	strbuf_addch
.L3:
	mov	r6, #0
	b	.L11
.L23:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L22
.L7:
	mov	r2, r5
	mov	r0, r4
	add	r1, sp, #4
	bl	check_refname_component
	cmp	r0, #0
	moveq	r3, r4
	bne	.L12
.L8:
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r2, r0, #1
	cmp	r3, #0
	add	r3, r6, #1
	beq	.L10
	mov	r6, r3
	add	r4, r4, r2
.L11:
	cmp	r5, #0
	bne	.L23
	mov	r2, r5
	mov	r0, r4
	add	r1, sp, #4
	bl	check_refname_component
.L12:
	cmp	r0, #0
	ble	.L9
	add	r3, r4, r0
	b	.L8
.L22:
	mov	r1, #47
	mov	r0, r5
	bl	strbuf_complete
	b	.L7
.L10:
	add	r0, r4, r0
	ldrb	r3, [r0, #-1]	@ zero_extendqisi2
	cmp	r5, #0
	cmpeq	r3, #46
	beq	.L9
	ldr	r2, .L24
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	and	r3, r3, r2
	orrs	r3, r3, r6
	mvneq	r0, #0
	movne	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mvn	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L25:
	.align	2
.L24:
	.word	REFNAME_ALLOW_ONELEVEL
	.size	check_or_sanitize_refname, .-check_or_sanitize_refname
	.comm	REFNAME_ALLOW_ONELEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
