	.file	"extr_gelf_sym.c_gelf_update_sym.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gelf_update_sym
	.type	gelf_update_sym, @function
gelf_update_sym:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movsx	rbx, esi
	mov	eax, ebx
	shr	eax, 31
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdx, rdx
	sete	dl
	or	dl, al
	jne	.L16
	mov	rbp, rdi
	test	rdi, rdi
	je	.L16
	mov	r14, QWORD PTR 16[rdi]
	test	r14, r14
	je	.L16
	mov	r15, QWORD PTR 8[r14]
	test	r15, r15
	je	.L16
	mov	r13d, DWORD PTR [r15]
	cmp	DWORD PTR ELFCLASS32[rip], r13d
	mov	edi, 1
	je	.L5
	xor	edi, edi
	cmp	DWORD PTR ELFCLASS64[rip], r13d
	sete	dil
.L5:
	call	assert@PLT
	cmp	DWORD PTR ELFCLASS32[rip], r13d
	je	.L18
	mov	edi, DWORD PTR [r14]
.L7:
	call	_libelf_xlate_shtype@PLT
	cmp	rax, QWORD PTR ELF_T_SYM[rip]
	mov	rdi, rax
	jne	.L16
	mov	edx, DWORD PTR 4[r15]
	mov	esi, r13d
	call	_libelf_msize@PLT
	xor	edi, edi
	test	rax, rax
	mov	r14, rax
	setne	dil
	imul	r14, rbx
	call	assert@PLT
	mov	edi, 1
	call	assert@PLT
	cmp	r14, QWORD PTR 0[rbp]
	jnb	.L16
	sal	rbx, 4
	add	rbx, QWORD PTR 8[rbp]
	cmp	DWORD PTR ELFCLASS32[rip], r13d
	je	.L19
	movdqu	xmm0, XMMWORD PTR [r12]
	mov	eax, 1
	movups	XMMWORD PTR [rbx], xmm0
	add	rsp, 8
	.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
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR ARGUMENT[rip]
	xor	esi, esi
	call	LIBELF_SET_ERROR@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.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
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r14]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 12[r12]
	mov	edx, DWORD PTR st_value[rip]
	mov	rsi, r12
	mov	rdi, rbx
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR [rbx], eax
	call	LIBELF_COPY_U32@PLT
	mov	edx, DWORD PTR st_size[rip]
	mov	rsi, r12
	mov	rdi, rbx
	call	LIBELF_COPY_U32@PLT
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	gelf_update_sym, .-gelf_update_sym
	.comm	st_value,4,4
	.comm	st_size,4,4
	.comm	ELF_T_SYM,8,8
	.comm	ELFCLASS64,4,4
	.comm	ELFCLASS32,4,4
	.comm	ARGUMENT,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_gelf_sym.c_gelf_update_sym.c"
	.text
	.align	2
	.global	gelf_update_sym
	.syntax unified
	.arm
	.fpu softvfp
	.type	gelf_update_sym, %function
gelf_update_sym:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r0, #0
	lsr	r3, r3, #5
	orr	r3, r3, r1, lsr #31
	moveq	r3, #1
	cmp	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bne	.L16
	ldr	r7, [r0, #8]
	mov	r4, r0
	cmp	r7, #0
	beq	.L16
	ldr	r9, [r7, #8]
	cmp	r9, #0
	beq	.L16
	ldr	r10, .L19
	ldr	r8, [r9]
	ldr	r3, [r10]
	mov	r6, r1
	cmp	r3, r8
	ldrne	r3, .L19+4
	moveq	r0, #1
	ldrne	r0, [r3]
	mov	r5, r2
	subne	r0, r0, r8
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldr	r3, [r10]
	cmp	r3, r8
	ldreq	r0, [r7, #4]
	ldrne	r0, [r7]
	bl	_libelf_xlate_shtype
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L16
	mov	r1, r8
	ldr	r2, [r9, #4]
	bl	_libelf_msize
	mov	r7, r0
	subs	r0, r0, #0
	movne	r0, #1
	mul	r7, r6, r7
	bl	assert
	mov	r0, #1
	bl	assert
	ldr	r3, [r4]
	cmp	r7, r3
	bcs	.L16
	ldr	r2, [r10]
	ldr	r3, [r4, #4]
	cmp	r2, r8
	add	r4, r3, r6, lsl #4
	beq	.L18
	ldm	r5, {r0, r1, r2, r3}
	mov	ip, #1
	stm	r4, {r0, r1, r2, r3}
	mov	r0, ip
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r3, .L19+12
	mov	r1, #0
	ldr	r0, [r3]
	bl	LIBELF_SET_ERROR
	mov	ip, #0
.L1:
	mov	r0, ip
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r2, [r5, #12]
	ldr	r1, [r5, #8]
	str	r2, [r4, #12]
	ldr	r2, [r5, #4]
	str	r1, [r4, #8]
	ldr	r1, [r5]
	str	r2, [r4, #4]
	ldr	r2, .L19+16
	str	r1, [r3, r6, lsl #4]
	ldr	r2, [r2]
	mov	r1, r5
	mov	r0, r4
	bl	LIBELF_COPY_U32
	ldr	r3, .L19+20
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r3]
	bl	LIBELF_COPY_U32
	mov	ip, #1
	b	.L1
.L20:
	.align	2
.L19:
	.word	ELFCLASS32
	.word	ELFCLASS64
	.word	ELF_T_SYM
	.word	ARGUMENT
	.word	st_value
	.word	st_size
	.size	gelf_update_sym, .-gelf_update_sym
	.comm	st_value,4,4
	.comm	st_size,4,4
	.comm	ELF_T_SYM,4,4
	.comm	ELFCLASS64,4,4
	.comm	ELFCLASS32,4,4
	.comm	ARGUMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
