	.file	"extr_elf64-mips.c_mips_elf64_write_rel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mips_elf64_write_rel, @function
mips_elf64_write_rel:
.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
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	QWORD PTR 56[rsp], rdx
	mov	QWORD PTR 48[rsp], rcx
	mov	QWORD PTR 40[rsp], r8
	mov	rsi, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rsi
	xor	esi, esi
	mov	esi, DWORD PTR 4[rdx]
	imul	esi, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], esi
	call	bfd_alloc@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L30
	lea	rax, 72[rsp]
	mov	DWORD PTR 28[rsp], 0
	xor	ebx, ebx
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR [r15]
	mov	QWORD PTR 16[rsp], 0
	test	eax, eax
	jne	.L15
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L12:
	mov	DWORD PTR 100[rsp], eax
	cmp	r13d, 1
	jne	.L13
	add	ebx, 2
.L11:
	mov	r14, QWORD PTR 8[rsp]
	lea	rsi, 80[rsp]
	mov	rdi, rbp
	mov	rdx, r14
	call	mips_elf64_swap_reloc_out@PLT
	mov	rax, r14
	add	rax, 4
	mov	QWORD PTR 8[rsp], rax
	cmp	DWORD PTR [r15], ebx
	jbe	.L33
.L15:
	mov	rdx, QWORD PTR 16[r15]
	mov	eax, ebx
	mov	r12, QWORD PTR [rdx+rax*8]
	mov	eax, DWORD PTR EXEC_P[rip]
	or	eax, DWORD PTR DYNAMIC[rip]
	mov	rdx, QWORD PTR [r12]
	test	DWORD PTR 0[rbp], eax
	je	.L4
	add	rdx, QWORD PTR 8[r15]
.L4:
	mov	QWORD PTR 80[rsp], rdx
	mov	rdx, QWORD PTR 16[r12]
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR 72[rsp], rax
	cmp	rax, QWORD PTR 16[rsp]
	je	.L18
	mov	edi, DWORD PTR 8[rax]
	call	bfd_is_abs_section@PLT
	mov	r13, QWORD PTR 72[rsp]
	test	rax, rax
	je	.L7
	cmp	QWORD PTR 0[r13], 0
	jne	.L7
	mov	eax, DWORD PTR STN_UNDEF[rip]
	mov	rdx, QWORD PTR 16[r12]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR 88[rsp], eax
	mov	eax, DWORD PTR RSS_UNDEF[rip]
	mov	rcx, QWORD PTR 8[rbp]
	mov	DWORD PTR 104[rsp], eax
	mov	rax, QWORD PTR [rdx]
	mov	rax, QWORD PTR 16[rax]
	cmp	QWORD PTR [rax], rcx
	je	.L10
	mov	rsi, r12
	mov	rdi, rbp
	call	_bfd_elf_validate_reloc@PLT
	test	eax, eax
	je	.L30
.L10:
	mov	rax, QWORD PTR 8[r12]
	xor	r13d, r13d
	lea	r14d, 1[rbx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 92[rsp], eax
	mov	rax, QWORD PTR R_MIPS_NONE[rip]
	mov	DWORD PTR 96[rsp], eax
	mov	DWORD PTR 100[rsp], eax
	cmp	r14d, DWORD PTR [r15]
	jnb	.L22
.L34:
	mov	rdx, QWORD PTR 16[r15]
	mov	eax, r14d
	mov	rdx, QWORD PTR [rdx+rax*8]
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR [rdx], rax
	jne	.L22
	mov	rax, QWORD PTR 16[rdx]
	mov	QWORD PTR [rsp], rdx
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 8[rax]
	call	bfd_is_abs_section@PLT
	test	rax, rax
	je	.L22
	mov	rdx, QWORD PTR [rsp]
	mov	rax, QWORD PTR 16[rdx]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], 0
	jne	.L22
	mov	rax, QWORD PTR 8[rdx]
	mov	eax, DWORD PTR [rax]
	test	r13d, r13d
	jne	.L12
	mov	DWORD PTR 96[rsp], eax
.L13:
	mov	ebx, r14d
	add	r13d, 1
	lea	r14d, 1[rbx]
	cmp	r14d, DWORD PTR [r15]
	jb	.L34
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ebx, r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR 28[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, rbp
	call	_bfd_elf_symbol_from_bfd_symbol@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	js	.L8
	mov	QWORD PTR 16[rsp], r13
	mov	rdx, QWORD PTR 16[r12]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rax, QWORD PTR 56[rsp]
	mov	r12, QWORD PTR 8[rsp]
	sub	r12, QWORD PTR 8[rax]
	sar	r12, 2
.L16:
	mov	rax, QWORD PTR 48[rsp]
	xor	edi, edi
	movsx	rax, DWORD PTR [rax]
	cmp	rax, r12
	sete	dil
	call	BFD_ASSERT@PLT
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 136
	.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
.L30:
	.cfi_restore_state
	mov	eax, DWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 40[rsp]
	mov	DWORD PTR [rsi], eax
	jmp	.L1
.L8:
	mov	eax, DWORD PTR TRUE[rip]
	mov	rcx, QWORD PTR 40[rsp]
	mov	DWORD PTR [rcx], eax
	jmp	.L1
.L32:
	xor	r12d, r12d
	jmp	.L16
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mips_elf64_write_rel, .-mips_elf64_write_rel
	.comm	TRUE,4,4
	.comm	STN_UNDEF,4,4
	.comm	R_MIPS_NONE,8,8
	.comm	RSS_UNDEF,4,4
	.comm	EXEC_P,4,4
	.comm	DYNAMIC,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_elf64-mips.c_mips_elf64_write_rel.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mips_elf64_write_rel, %function
mips_elf64_write_rel:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	sub	sp, sp, #60
	str	r2, [sp, #20]
	mov	fp, r1
	ldr	r1, [r2, #4]
	ldr	r2, [r3]
	str	r3, [sp, #16]
	mul	r1, r2, r1
	ldr	r3, .L34
	mov	r7, r0
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r3, [sp, #96]
	str	r1, [r4]
	str	r3, [sp, #12]
	bl	bfd_alloc
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L29
	ldr	r2, [fp]
	cmp	r2, #0
	beq	.L16
	mov	r6, #0
	mov	r8, r0
	mov	r10, fp
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	b	.L15
.L12:
	ldr	r3, [r3]
	cmp	fp, #1
	str	r3, [sp, #44]
	bne	.L13
	add	r6, r6, #2
.L11:
	mov	r2, r8
	mov	r0, r7
	add	r1, sp, #28
	bl	mips_elf64_swap_reloc_out
	ldr	r2, [r10]
	add	r8, r8, #4
	cmp	r2, r6
	bls	.L31
.L15:
	ldr	r3, .L34+4
	ldr	ip, [r10, #8]
	ldr	r2, [r3]
	ldr	r3, .L34+8
	ldr	r1, [r7]
	ldr	r0, [r3]
	ldr	r5, [ip, r6, lsl #2]
	orr	r2, r2, r0
	tst	r2, r1
	ldrne	r1, [r10, #4]
	ldr	r2, [r5]
	ldr	r3, [sp, #4]
	addne	r2, r2, r1
	ldr	r1, [r5, #8]
	str	r2, [sp, #28]
	ldr	r2, [r1]
	cmp	r2, r3
	str	r2, [sp, #24]
	beq	.L18
	ldr	r0, [r2, #4]
	bl	bfd_is_abs_section
	cmp	r0, #0
	ldr	r4, [sp, #24]
	beq	.L7
	ldr	r2, [r4]
	cmp	r2, #0
	bne	.L7
	ldr	r3, .L34+12
	ldr	r1, [r5, #8]
	ldr	r0, [r3]
.L5:
	ldr	r2, [r1]
	ldr	r3, .L34+16
	ldr	r2, [r2, #8]
	ldr	r1, [r7, #4]
	str	r0, [sp, #32]
	ldr	r0, [r2]
	ldr	r2, [r3]
	cmp	r0, r1
	str	r2, [sp, #48]
	beq	.L10
	mov	r1, r5
	mov	r0, r7
	bl	_bfd_elf_validate_reloc
	cmp	r0, #0
	beq	.L29
.L10:
	ldr	r3, .L34+20
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	ldr	r3, [r10]
	ldr	r0, [r0]
	add	r9, r6, #1
	cmp	r9, r3
	mov	fp, #0
	str	r1, [sp, #40]
	str	r0, [sp, #36]
	str	r1, [sp, #44]
	bcs	.L22
.L32:
	ldr	r2, [r10, #8]
	ldr	r3, [r5]
	ldr	r4, [r2, r9, lsl #2]
	ldr	r2, [r4]
	cmp	r2, r3
	bne	.L22
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	ldr	r0, [r3, #4]
	bl	bfd_is_abs_section
	cmp	r0, #0
	beq	.L22
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	cmp	fp, #0
	ldr	r3, [r4, #4]
	bne	.L12
	ldr	r3, [r3]
	str	r3, [sp, #40]
.L13:
	mov	r6, r9
	ldr	r3, [r10]
	add	r9, r6, #1
	cmp	r9, r3
	add	fp, fp, #1
	bcc	.L32
.L22:
	mov	r6, r9
	b	.L11
.L18:
	ldr	r0, [sp, #8]
	b	.L5
.L7:
	mov	r0, r7
	add	r1, sp, #24
	bl	_bfd_elf_symbol_from_bfd_symbol
	cmp	r0, #0
	str	r0, [sp, #8]
	ldrge	r1, [r5, #8]
	strge	r4, [sp, #4]
	bge	.L5
.L29:
	ldr	r3, .L34+24
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	str	r3, [r2]
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r3, [sp, #20]
	ldr	r2, [r3, #8]
	sub	r2, r8, r2
	asr	r2, r2, #2
.L16:
	ldr	r3, [sp, #16]
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BFD_ASSERT
	b	.L1
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	EXEC_P
	.word	DYNAMIC
	.word	STN_UNDEF
	.word	RSS_UNDEF
	.word	R_MIPS_NONE
	.word	TRUE
	.size	mips_elf64_write_rel, .-mips_elf64_write_rel
	.comm	TRUE,4,4
	.comm	STN_UNDEF,4,4
	.comm	R_MIPS_NONE,4,4
	.comm	RSS_UNDEF,4,4
	.comm	EXEC_P,4,4
	.comm	DYNAMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
