	.file	"extr_misc.c_brace_subst.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"brace_subst overflow"
.LC1:
	.string	"{}"
	.text
	.p2align 4
	.globl	brace_subst
	.type	brace_subst, @function
brace_subst:
.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
	mov	r14d, 2
	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, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rsi
	mov	QWORD PTR 16[rsp], rdx
	mov	QWORD PTR 40[rsp], rcx
	call	strlen@PLT
	mov	rdi, rbp
	movsx	rbx, eax
	mov	DWORD PTR 12[rsp], eax
	call	strlen@PLT
	lea	r13, -2[rbx]
	mov	rdi, rbp
	sub	r14, rbx
	lea	r9d, 1[rax]
	movsx	r15, r9d
	lea	rax, 0[rbp+r15]
	mov	QWORD PTR 32[rsp], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, 2[r12]
.L2:
	lea	rsi, .LC1[rip]
	call	strstr@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
	add	r15, r13
	cmp	rbx, 2
	jbe	.L3
	lea	rax, [r14+r15]
	cmp	rax, r15
	jbe	.L3
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	errx@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 24[rsp]
	mov	r13, QWORD PTR [rax]
	cmp	r15, QWORD PTR 40[rsp]
	ja	.L11
.L5:
	lea	r14, .LC1[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12, r15
	mov	rsi, rbp
	mov	rdi, r13
	sub	r12, rbp
	lea	rbp, 2[r15]
	mov	edx, r12d
	add	r13, r12
	call	memcpy@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, r13
	add	r13, rbx
	call	memcpy@PLT
.L6:
	mov	rsi, r14
	mov	rdi, rbp
	call	strstr@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L7
	mov	rdx, QWORD PTR 32[rsp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	sub	rdx, rbp
	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
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r13
	mov	rsi, r15
	call	reallocf@PLT
	mov	r13, rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], r13
	test	r13, r13
	jne	.L5
	xor	esi, esi
	mov	edi, 2
	call	err@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	r13, QWORD PTR [rax]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	brace_subst, .-brace_subst
	.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_misc.c_brace_subst.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"brace_subst overflow\000"
	.align	2
.LC1:
	.ascii	"{}\000"
	.text
	.align	2
	.global	brace_subst
	.syntax unified
	.arm
	.fpu softvfp
	.type	brace_subst, %function
brace_subst:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	sub	sp, sp, #20
	mov	r0, r2
	str	r3, [sp, #12]
	mov	r6, r2
	str	r1, [sp, #4]
	bl	strlen
	mov	r5, r0
	mov	r0, fp
	bl	strlen
	add	r10, r0, #1
	add	r3, fp, r10
	mov	r0, fp
	ldr	r7, .L12
	ldr	r9, .L12+4
	str	r3, [sp, #8]
	sub	r8, r5, #2
	b	.L2
.L3:
	add	r0, r4, #2
.L2:
	mov	r1, r7
	bl	strstr
	subs	r4, r0, #0
	rsb	r3, r5, #2
	beq	.L10
	add	r10, r10, r8
	cmp	r5, #2
	add	r3, r3, r10
	ble	.L3
	cmp	r3, r10
	bls	.L3
	mov	r1, r9
	mov	r0, #2
	bl	errx
	b	.L3
.L10:
	ldr	r3, [sp, #12]
	cmp	r10, r3
	ldr	r3, [sp, #4]
	ldr	r7, [r3]
	bhi	.L11
.L5:
	ldr	r8, .L12
	b	.L6
.L7:
	mov	r1, fp
	mov	r0, r7
	bl	memcpy
	mov	r2, r5
	mov	r1, r6
	mov	r0, r9
	bl	memcpy
	add	fp, r4, #2
	add	r7, r9, r5
.L6:
	mov	r1, r8
	mov	r0, fp
	bl	strstr
	subs	r4, r0, #0
	sub	r2, r4, fp
	add	r9, r7, r2
	bne	.L7
	mov	r1, fp
	mov	r0, r7
	ldr	r3, [sp, #8]
	sub	r2, r3, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	memcpy
.L11:
	mov	r0, r7
	mov	r1, r10
	bl	reallocf
	ldr	r3, [sp, #4]
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r3]
	bne	.L5
	mov	r1, r0
	mov	r0, #2
	bl	err
	ldr	r3, [sp, #4]
	ldr	r7, [r3]
	b	.L5
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	brace_subst, .-brace_subst
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
