	.file	"extr_tr2_sid.c_tr2_sid_compute.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tr2_sid_compute, @function
tr2_sid_compute:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR tr2sid_buf[rip+8], 0
	je	.L17
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR TR2_ENVVAR_PARENT_SID[rip]
	call	getenv@PLT
	test	rax, rax
	je	.L3
	movzx	edx, BYTE PTR [rax]
	test	dl, dl
	je	.L3
	mov	rcx, rax
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	dl, 47
	jne	.L4
	add	DWORD PTR tr2sid_nr_git_parents[rip], 1
.L4:
	movzx	edx, BYTE PTR 1[rcx]
	add	rcx, 1
	test	dl, dl
	jne	.L5
	mov	rsi, rax
	lea	rdi, tr2sid_buf[rip]
	call	strbuf_addstr@PLT
	mov	esi, 47
	lea	rdi, tr2sid_buf[rip]
	call	strbuf_addch@PLT
	add	DWORD PTR tr2sid_nr_git_parents[rip], 1
.L3:
	xor	eax, eax
	call	tr2_sid_append_my_sid_component@PLT
	mov	esi, DWORD PTR tr2sid_buf[rip]
	mov	edi, DWORD PTR TR2_ENVVAR_PARENT_SID[rip]
	mov	edx, 1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	setenv@PLT
	.cfi_endproc
.LFE0:
	.size	tr2_sid_compute, .-tr2_sid_compute
	.comm	tr2sid_nr_git_parents,4,4
	.comm	tr2sid_buf,16,16
	.comm	TR2_ENVVAR_PARENT_SID,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_tr2_sid.c_tr2_sid_compute.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tr2_sid_compute, %function
tr2_sid_compute:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L15
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r5, .L15+4
	ldr	r0, [r5]
	bl	getenv
	subs	r1, r0, #0
	beq	.L3
	ldrb	r3, [r1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	mov	r2, r1
	ldr	r6, .L15+8
.L5:
	cmp	r3, #47
	ldreq	r3, [r6]
	addeq	r3, r3, #1
	streq	r3, [r6]
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L15
	bl	strbuf_addstr
	mov	r1, #47
	ldr	r0, .L15
	bl	strbuf_addch
	ldr	r3, [r6]
	add	r3, r3, #1
	str	r3, [r6]
.L3:
	bl	tr2_sid_append_my_sid_component
	ldr	r1, [r4]
	ldr	r0, [r5]
	mov	r2, #1
	pop	{r4, r5, r6, lr}
	b	setenv
.L16:
	.align	2
.L15:
	.word	tr2sid_buf
	.word	TR2_ENVVAR_PARENT_SID
	.word	tr2sid_nr_git_parents
	.size	tr2_sid_compute, .-tr2_sid_compute
	.comm	tr2sid_nr_git_parents,4,4
	.comm	tr2sid_buf,8,4
	.comm	TR2_ENVVAR_PARENT_SID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
