	.file	"extr_write.c_create_symtab_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"elf_getshstrndx failed: %s"
.LC1:
	.string	"elf_getshdr failed: %s"
.LC2:
	.string	"elf_strptr failed: %s"
.LC3:
	.string	".strtab"
.LC4:
	.string	"elf_nextscn failed: %s"
.LC5:
	.string	"can't find .strtab section"
.LC6:
	.string	"gelf_getsym failed: %s"
	.text
	.p2align 4
	.type	create_symtab_entry, @function
create_symtab_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rsi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	elf_kind@PLT
	cmp	rax, QWORD PTR ELF_K_ELF[rip]
	je	.L45
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 88
	.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
.L45:
	.cfi_restore_state
	lea	rsi, 24[rsp]
	mov	rdi, r15
	lea	rbx, 48[rsp]
	xor	ebp, ebp
	call	elf_getshstrndx@PLT
	test	rax, rax
	je	.L47
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbp
	mov	rdi, r15
	call	elf_nextscn@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L48
	mov	rsi, rbx
	mov	rdi, rbp
	call	gelf_getshdr@PLT
	cmp	rbx, rax
	je	.L5
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdx, .LC1[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR 68[rsp]
	mov	esi, DWORD PTR 24[rsp]
	mov	rdi, r15
	call	elf_strptr@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L49
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L3
	mov	rdi, rbp
	call	elf_ndxscn@PLT
	mov	DWORD PTR 12[rsp], eax
	xor	eax, eax
	call	elf_errno@PLT
	test	eax, eax
	jne	.L8
.L9:
	cmp	DWORD PTR 12[rsp], -1
	je	.L29
	mov	QWORD PTR [rsp], 0
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r15
	call	elf_nextscn@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L50
	lea	rbx, 48[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, rbx
	call	gelf_getshdr@PLT
	cmp	rbx, rax
	jne	.L51
	mov	rax, QWORD PTR SHT_SYMTAB[rip]
	cmp	QWORD PTR 48[rsp], rax
	jne	.L12
	xor	r12d, r12d
	cmp	QWORD PTR 56[rsp], 0
	je	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, r12
	call	elf_getdata@PLT
	mov	r12, rax
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR [r12]
	cdq
	idiv	DWORD PTR 64[rsp]
	mov	r13d, eax
	test	eax, eax
	jle	.L18
	xor	ebx, ebx
	lea	rbp, 32[rsp]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L52:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdx, .LC6[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
.L20:
	add	ebx, 1
	cmp	r13d, ebx
	je	.L18
.L26:
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r12
	call	gelf_getsym@PLT
	cmp	rbp, rax
	jne	.L52
	mov	edi, DWORD PTR 44[rsp]
	call	GELF_ST_BIND@PLT
	cmp	rax, QWORD PTR STB_GLOBAL[rip]
	je	.L24
	mov	edi, DWORD PTR 44[rsp]
	call	GELF_ST_BIND@PLT
	cmp	rax, QWORD PTR STB_WEAK[rip]
	jne	.L20
.L24:
	mov	rax, QWORD PTR SHN_UNDEF[rip]
	cmp	QWORD PTR 32[rsp], rax
	je	.L20
	mov	esi, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 40[rsp]
	mov	rdi, r15
	call	elf_strptr@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L53
	mov	rdi, r14
	add	ebx, 1
	call	add_to_ar_sym_table@PLT
	cmp	r13d, ebx
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	QWORD PTR 56[rsp], 0
	jne	.L16
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdx, .LC2[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L53:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdx, .LC2[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L51:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdx, .LC1[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L12
.L50:
	call	elf_errno@PLT
	test	eax, eax
	je	.L1
	mov	edi, eax
	call	elf_errmsg@PLT
	lea	rdx, .LC4[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L1
.L48:
	xor	eax, eax
	call	elf_errno@PLT
	mov	DWORD PTR 12[rsp], -1
	test	eax, eax
	je	.L29
.L8:
	mov	edi, eax
	call	elf_errmsg@PLT
	lea	rdx, .LC4[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L9
.L47:
	mov	edi, -1
	call	elf_errmsg@PLT
	lea	rdx, .LC0[rip]
	xor	esi, esi
	mov	rdi, r14
	mov	ecx, eax
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L1
.L29:
	lea	rdx, .LC5[rip]
	xor	esi, esi
	mov	rdi, r14
	xor	eax, eax
	call	bsdar_warnc@PLT
	jmp	.L1
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_symtab_entry, .-create_symtab_entry
	.comm	STB_WEAK,8,8
	.comm	STB_GLOBAL,8,8
	.comm	SHT_SYMTAB,8,8
	.comm	SHN_UNDEF,8,8
	.comm	ELF_K_ELF,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_write.c_create_symtab_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"elf_getshstrndx failed: %s\000"
	.align	2
.LC1:
	.ascii	"elf_getshdr failed: %s\000"
	.align	2
.LC2:
	.ascii	"elf_strptr failed: %s\000"
	.align	2
.LC3:
	.ascii	".strtab\000"
	.align	2
.LC4:
	.ascii	"elf_nextscn failed: %s\000"
	.align	2
.LC5:
	.ascii	"can't find .strtab section\000"
	.global	__aeabi_idiv
	.align	2
.LC6:
	.ascii	"gelf_getsym failed: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_symtab_entry, %function
create_symtab_entry:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L55
	sub	sp, sp, #60
	mov	r8, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	fp, r1
	bl	elf_kind
	ldr	r3, .L55+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L46
.L1:
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	mov	r0, fp
	add	r1, sp, #20
	bl	elf_getshstrndx
	subs	r4, r0, #0
	beq	.L48
	mov	r4, #0
	ldr	r7, .L55+8
	ldr	r9, .L55+12
	ldr	r6, .L55+16
.L3:
	mov	r1, r4
	mov	r0, fp
	bl	elf_nextscn
	subs	r4, r0, #0
	beq	.L49
	add	r5, sp, #36
	mov	r1, r5
	bl	gelf_getshdr
	cmp	r5, r0
	beq	.L5
	mvn	r0, #0
	bl	elf_errmsg
	mov	r2, r6
	mov	r3, r0
	mov	r1, #0
	mov	r0, r8
	bl	bsdar_warnc
	b	.L3
.L5:
	mov	r0, fp
	ldr	r2, [sp, #48]
	ldr	r1, [sp, #20]
	bl	elf_strptr
	subs	r5, r0, #0
	beq	.L50
	mov	r1, r7
	bl	strcmp
	cmp	r0, #0
	bne	.L3
	mov	r0, r4
	bl	elf_ndxscn
	str	r0, [sp, #8]
	bl	elf_errno
	cmp	r0, #0
	bne	.L8
.L9:
	ldr	r3, [sp, #8]
	cmn	r3, #1
	beq	.L29
	mov	r3, #0
	ldr	r10, .L55+20
	str	r3, [sp, #4]
.L12:
	mov	r0, fp
	ldr	r1, [sp, #4]
	bl	elf_nextscn
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L51
	add	r4, sp, #36
	mov	r1, r4
	bl	gelf_getshdr
	cmp	r4, r0
	bne	.L52
	ldr	r3, .L55+24
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
	ldr	r3, [sp, #40]
	cmp	r3, #0
	movne	r6, #0
	beq	.L12
.L16:
	mov	r1, r6
	ldr	r0, [sp, #4]
	bl	elf_getdata
	subs	r6, r0, #0
	beq	.L12
	ldr	r1, [sp, #44]
	ldr	r0, [r6]
	bl	__aeabi_idiv
	subs	r7, r0, #0
	ble	.L18
	mov	r4, #0
	ldr	r9, .L55+28
	add	r5, sp, #24
	b	.L26
.L53:
	mvn	r0, #0
	bl	elf_errmsg
	mov	r2, r9
	mov	r3, r0
	mov	r1, #0
	mov	r0, r8
	bl	bsdar_warnc
.L20:
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L18
.L26:
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	gelf_getsym
	cmp	r5, r0
	bne	.L53
	ldr	r0, [sp, #32]
	bl	GELF_ST_BIND
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L24
	ldr	r0, [sp, #32]
	bl	GELF_ST_BIND
	ldr	r3, .L55+32
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L20
.L24:
	ldr	r3, .L55+36
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L20
	ldr	r1, [sp, #8]
	mov	r0, fp
	ldr	r2, [sp, #28]
	bl	elf_strptr
	subs	r1, r0, #0
	beq	.L54
	mov	r0, r8
	add	r4, r4, #1
	bl	add_to_ar_sym_table
	cmp	r7, r4
	bne	.L26
.L18:
	ldr	r3, [sp, #40]
	cmp	r3, #0
	bne	.L16
	b	.L12
.L54:
	mvn	r0, #0
	str	r1, [sp, #12]
	bl	elf_errmsg
	ldr	r2, .L55+12
	mov	r3, r0
	ldr	r1, [sp, #12]
	mov	r0, r8
	bl	bsdar_warnc
	b	.L20
.L52:
	mvn	r0, #0
	bl	elf_errmsg
	mov	r1, #0
	mov	r3, r0
	ldr	r2, .L55+16
	mov	r0, r8
	bl	bsdar_warnc
	b	.L12
.L51:
	bl	elf_errno
	cmp	r0, #0
	beq	.L1
	bl	elf_errmsg
	ldr	r1, [sp, #4]
	mov	r3, r0
	ldr	r2, .L55+40
	mov	r0, r8
	bl	bsdar_warnc
	b	.L1
.L49:
	bl	elf_errno
	cmp	r0, #0
	mvnne	r3, #0
	strne	r3, [sp, #8]
	beq	.L29
.L8:
	bl	elf_errmsg
	mov	r1, #0
	mov	r3, r0
	ldr	r2, .L55+40
	mov	r0, r8
	bl	bsdar_warnc
	b	.L9
.L50:
	mvn	r0, #0
	bl	elf_errmsg
	mov	r2, r9
	mov	r3, r0
	mov	r1, r5
	mov	r0, r8
	bl	bsdar_warnc
	b	.L3
.L48:
	mvn	r0, #0
	bl	elf_errmsg
	mov	r1, r4
	mov	r3, r0
	ldr	r2, .L55+44
	mov	r0, r8
	bl	bsdar_warnc
	b	.L1
.L29:
	mov	r0, r8
	mov	r1, #0
	ldr	r2, .L55+48
	bl	bsdar_warnc
	b	.L1
.L47:
	bl	__stack_chk_fail
.L56:
	.align	2
.L55:
	.word	.LC7
	.word	ELF_K_ELF
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	STB_GLOBAL
	.word	SHT_SYMTAB
	.word	.LC6
	.word	STB_WEAK
	.word	SHN_UNDEF
	.word	.LC4
	.word	.LC0
	.word	.LC5
	.size	create_symtab_entry, .-create_symtab_entry
	.comm	STB_WEAK,4,4
	.comm	STB_GLOBAL,4,4
	.comm	SHT_SYMTAB,4,4
	.comm	SHN_UNDEF,4,4
	.comm	ELF_K_ELF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
