	.file	"extr_elf.c_init_dynstr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".dynstr"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Cannot allocate memory for dynamic strings\n"
	.text
	.p2align 4
	.type	init_dynstr, @function
init_dynstr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR 40[rdi]
	mov	rbp, rdi
	test	rax, rax
	je	.L2
	mov	r10, QWORD PTR [rdi]
	test	r10, r10
	je	.L2
	mov	edx, DWORD PTR 52[rdi]
	test	edx, edx
	jle	.L2
	sub	edx, 1
	mov	r8, QWORD PTR 8[rdi]
	mov	r9, QWORD PTR SHT_STRTAB[rip]
	xor	ebx, ebx
	add	rdx, 1
	lea	r11, .LC0[rip]
	sal	rdx, 5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 32
	add	rax, 32
	cmp	rbx, rdx
	je	.L2
.L7:
	mov	rsi, QWORD PTR [rax]
	cmp	rsi, r8
	ja	.L2
	cmp	QWORD PTR 8[rax], r9
	jne	.L3
	add	rsi, r10
	mov	ecx, 8
	mov	rdi, r11
	repz cmpsb
	seta	r12b
	sbb	r12b, 0
	movsx	r12d, r12b
	test	r12d, r12d
	jne	.L3
	mov	rdi, QWORD PTR 16[rax]
	mov	esi, 1
	add	rdi, 1
	call	calloc@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdx, rax
	test	rax, rax
	je	.L20
	mov	rcx, QWORD PTR 40[rbp]
	mov	rax, QWORD PTR 24[rbp]
	add	rcx, rbx
	mov	rsi, QWORD PTR 24[rcx]
	cmp	rsi, rax
	jg	.L2
	mov	rcx, QWORD PTR 16[rcx]
	lea	rdi, [rsi+rcx]
	cmp	rax, rdi
	jl	.L2
	test	rsi, rsi
	js	.L2
	mov	edi, DWORD PTR 48[rbp]
	call	r_buf_read_at@PLT
	test	eax, eax
	jle	.L21
	mov	rax, QWORD PTR 40[rbp]
	mov	r12d, 1
	mov	rax, QWORD PTR 16[rax+rbx]
	mov	QWORD PTR 32[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	bprintf@PLT
	jmp	.L1
.L21:
	mov	rdi, QWORD PTR 16[rbp]
	call	R_FREE@PLT
	mov	QWORD PTR 32[rbp], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	init_dynstr, .-init_dynstr
	.comm	SHT_STRTAB,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_elf.c_init_dynstr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".dynstr\000"
	.align	2
.LC1:
	.ascii	"Cannot allocate memory for dynamic strings\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_dynstr, %function
init_dynstr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r3, r0, #0
	sub	sp, sp, #12
	str	r3, [sp, #4]
	beq	.L2
	ldr	r4, [r3, #20]
	cmp	r4, #0
	beq	.L2
	ldr	r2, [r3]
	cmp	r2, #0
	str	r2, [sp]
	beq	.L2
	ldr	r7, [r3, #28]
	mov	r2, r3
	cmp	r7, #0
	ble	.L2
	ldr	r3, .L23
	mov	r5, #0
	ldr	fp, [r2, #4]
	ldr	r8, [r3]
	ldr	r10, .L23+4
	b	.L7
.L3:
	cmp	r5, r7
	add	r4, r4, #16
	beq	.L2
.L7:
	ldr	r0, [r4]
	lsl	r9, r5, #4
	cmp	r0, fp
	add	r5, r5, #1
	bhi	.L2
	ldr	r2, [r4, #4]
	cmp	r2, r8
	bne	.L3
	ldr	r3, [sp]
	mov	r1, r10
	add	r0, r3, r0
	bl	strcmp
	subs	r6, r0, #0
	bne	.L3
	mov	r1, #1
	ldr	r5, [r4, #8]
	add	r0, r5, r1
	bl	calloc
	ldr	r3, [sp, #4]
	cmp	r0, #0
	str	r0, [r3, #8]
	beq	.L20
	ldr	r3, [sp, #4]
	ldr	r1, [r4, #12]
	ldr	r2, [r3, #12]
	cmp	r1, r2
	bgt	.L2
	add	r3, r5, r1
	cmp	r2, r3
	movge	r2, #0
	movlt	r2, #1
	orrs	r3, r2, r1, lsr #31
	beq	.L21
.L2:
	mov	r6, #0
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r2, r0
	ldr	r0, [sp, #4]
	mov	r3, r5
	ldr	r0, [r0, #24]
	bl	r_buf_read_at
	cmp	r0, #0
	ble	.L22
	ldr	r2, [sp, #4]
	mov	r6, #1
	ldr	r3, [r2, #20]
	add	r9, r3, r9
	ldr	r3, [r9, #8]
	str	r3, [r2, #16]
	b	.L1
.L22:
	ldr	r4, [sp, #4]
	ldr	r0, [r4, #8]
	bl	R_FREE
	str	r6, [r4, #16]
	b	.L1
.L20:
	ldr	r0, .L23+8
	bl	bprintf
	b	.L1
.L24:
	.align	2
.L23:
	.word	SHT_STRTAB
	.word	.LC0
	.word	.LC1
	.size	init_dynstr, .-init_dynstr
	.comm	SHT_STRTAB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
