	.file	"extr_inf.c_expand_variables_buffer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	expand_variables_buffer, @function
expand_variables_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	movzx	eax, BYTE PTR [rsi]
	test	al, al
	je	.L14
	mov	r14, rdi
	mov	rbx, rsi
	xor	r15d, r15d
	xor	r13d, r13d
	xor	r12d, r12d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L35:
	test	r12, r12
	je	.L4
	add	r13d, 1
.L5:
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	test	al, al
	je	.L34
.L12:
	cmp	al, 37
	jne	.L35
	test	r12, r12
	je	.L15
	test	r13d, r13d
	jne	.L7
	test	rbp, rbp
	je	.L8
	mov	BYTE PTR 0[rbp], 37
	add	rbp, 1
.L8:
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	add	r15d, 1
	xor	r12d, r12d
	test	al, al
	jne	.L12
.L34:
	lea	eax, 1[r15]
.L2:
	test	rbp, rbp
	je	.L1
	mov	BYTE PTR 0[rbp], 0
.L1:
	add	rsp, 24
	.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
.L7:
	.cfi_restore_state
	lea	rsi, 1[r12]
	mov	edx, r13d
	mov	rdi, r14
	call	get_substitution@PLT
	test	rax, rax
	je	.L36
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	strlen@PLT
	mov	r12d, eax
	test	rbp, rbp
	je	.L11
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	edx, eax
	call	memcpy@PLT
	movsx	rax, r12d
	add	rbp, rax
.L11:
	add	r15d, r12d
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	test	rbp, rbp
	je	.L6
	mov	BYTE PTR 0[rbp], al
	add	rbp, 1
.L6:
	add	r15d, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L36:
	lea	edx, 2[r13]
	test	rbp, rbp
	je	.L10
	mov	rdi, rbp
	mov	rsi, r12
	mov	DWORD PTR 8[rsp], edx
	call	memcpy@PLT
	movsx	rax, r13d
	mov	edx, DWORD PTR 8[rsp]
	lea	rbp, 2[rbp+rax]
.L10:
	add	r15d, edx
	xor	r12d, r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12, rbx
	xor	r13d, r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	expand_variables_buffer, .-expand_variables_buffer
	.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_inf.c_expand_variables_buffer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand_variables_buffer, %function
expand_variables_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldrb	r3, [r1]	@ zero_extendqisi2
	mov	r4, r2
	cmp	r3, #0
	beq	.L14
	mov	r7, #0
	mov	r5, r1
	mov	r9, r0
	mov	r8, r7
	mov	r6, r7
	b	.L12
.L36:
	cmp	r6, #0
	addne	r8, r8, #1
	beq	.L34
.L5:
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L35
.L12:
	cmp	r3, #37
	bne	.L36
	cmp	r6, #0
	beq	.L15
	cmp	r8, #0
	bne	.L7
	cmp	r4, #0
	strbne	r3, [r4], #1
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	mov	r6, #0
	cmp	r3, #0
	add	r7, r7, #1
	bne	.L12
.L35:
	add	r0, r7, #1
.L2:
	cmp	r4, #0
	movne	r3, #0
	strbne	r3, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r2, r8
	mov	r0, r9
	add	r1, r6, #1
	bl	get_substitution
	subs	r10, r0, #0
	beq	.L37
	bl	strlen
	cmp	r4, #0
	mov	r6, r0
	beq	.L11
	mov	r2, r0
	mov	r1, r10
	mov	r0, r4
	bl	memcpy
	add	r4, r4, r6
.L11:
	add	r7, r7, r6
	mov	r6, #0
	b	.L5
.L34:
	cmp	r4, #0
	strbne	r3, [r4], #1
	add	r7, r7, #1
	b	.L5
.L15:
	mov	r6, r5
	mov	r8, #0
	b	.L5
.L37:
	cmp	r4, #0
	add	r10, r8, #2
	beq	.L10
	mov	r0, r4
	mov	r1, r6
	mov	r2, r10
	bl	memcpy
	add	r4, r4, r10
.L10:
	mov	r6, #0
	add	r7, r7, r10
	b	.L5
.L14:
	mov	r0, #1
	b	.L2
	.size	expand_variables_buffer, .-expand_variables_buffer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
