	.file	"extr_xcofflink.c_bfd_xcoff_import_symbol.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bfd_xcoff_import_symbol
	.type	bfd_xcoff_import_symbol, @function
bfd_xcoff_import_symbol:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	bfd_get_flavour@PLT
	cmp	rax, QWORD PTR bfd_target_xcoff_flavour[rip]
	jne	.L17
	mov	rsi, QWORD PTR 48[rbp]
	cmp	BYTE PTR [rsi], 46
	je	.L37
.L4:
	mov	eax, DWORD PTR 88[rsp]
	or	eax, DWORD PTR XCOFF_IMPORT[rip]
	or	DWORD PTR 0[rbp], eax
	cmp	rbx, -1
	je	.L11
	mov	rdx, QWORD PTR 16[rbp]
.L24:
	mov	rax, QWORD PTR bfd_link_hash_defined[rip]
	cmp	rax, rdx
	je	.L38
.L12:
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR bfd_abs_section_ptr[rip]
	mov	QWORD PTR 24[rbp], rbx
	mov	QWORD PTR 32[rbp], rax
.L11:
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	sete	dil
	call	BFD_ASSERT@PLT
	xor	edi, edi
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR XCOFF_BUILT_LDSYM[rip], eax
	sete	dil
	call	BFD_ASSERT@PLT
	test	r12, r12
	je	.L39
	mov	rdi, r15
	mov	ebx, 1
	call	xcoff_hash_table@PLT
	mov	r15, rax
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L20
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR [r15]
	add	ebx, 1
	lea	r15, 24[rax]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L25
.L20:
	mov	rdi, QWORD PTR [rax]
	mov	rsi, r12
	call	strcmp@PLT
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR [r15]
	mov	rsi, r13
	mov	rdi, QWORD PTR 8[rax]
	call	strcmp@PLT
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR [r15]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, QWORD PTR 16[rax]
	call	strcmp@PLT
	test	rax, rax
	jne	.L21
	cmp	QWORD PTR [r15], 0
	je	.L25
.L22:
	mov	DWORD PTR 4[rbp], ebx
.L17:
	mov	eax, DWORD PTR TRUE[rip]
.L1:
	add	rsp, 24
	.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
.L39:
	.cfi_restore_state
	mov	DWORD PTR 4[rbp], -1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR bfd_link_hash_undefined[rip]
	cmp	rdx, rax
	jne	.L4
	cmp	rbx, -1
	je	.L40
	mov	eax, DWORD PTR 88[rsp]
	or	eax, DWORD PTR XCOFF_IMPORT[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdi, QWORD PTR 32[rbp]
	call	bfd_is_abs_section@PLT
	mov	r8, QWORD PTR 24[rbp]
	test	eax, eax
	jne	.L13
.L14:
	mov	rax, QWORD PTR 32[rbp]
	mov	r10, QWORD PTR [r15]
	mov	r9, r14
	mov	rdi, r15
	mov	rsi, QWORD PTR 48[rbp]
	push	rbx
	.cfi_def_cfa_offset 88
	mov	edx, DWORD PTR [rax]
	push	QWORD PTR bfd_abs_section_ptr[rip]
	.cfi_def_cfa_offset 96
	mov	rcx, rax
	call	[QWORD PTR [r10]]
	mov	r8d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR FALSE[rip]
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r8d, r8d
	je	.L1
.L34:
	mov	rax, QWORD PTR bfd_link_hash_defined[rip]
	jmp	.L12
.L13:
	cmp	r8, rbx
	jne	.L14
	jmp	.L34
.L40:
	mov	rbx, QWORD PTR 56[rbp]
	test	rbx, rbx
	je	.L41
.L6:
	cmp	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 88[rsp]
	cmove	rbp, rbx
	or	eax, DWORD PTR XCOFF_IMPORT[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, 32
	mov	rdi, r14
	call	bfd_alloc@PLT
	test	rax, rax
	je	.L35
	mov	rcx, QWORD PTR 80[rsp]
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR [rax], r12
	mov	QWORD PTR 8[rax], r13
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR [r15], rax
	jmp	.L22
.L35:
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
.L41:
	mov	r9d, DWORD PTR FALSE[rip]
	mov	rdi, r15
	mov	ebx, DWORD PTR TRUE[rip]
	mov	QWORD PTR 8[rsp], rsi
	mov	DWORD PTR 4[rsp], r9d
	call	xcoff_hash_table@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	r8d, ebx
	mov	edx, ebx
	mov	r9d, DWORD PTR 4[rsp]
	mov	rdi, rax
	add	rsi, 1
	mov	ecx, r9d
	call	xcoff_link_hash_lookup@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR bfd_link_hash_new[rip]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L8
	mov	rax, QWORD PTR bfd_link_hash_undefined[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR 40[rbx], eax
.L8:
	mov	eax, DWORD PTR XCOFF_DESCRIPTOR[rip]
	mov	edx, DWORD PTR [rbx]
	xor	edi, edi
	or	edx, eax
	mov	DWORD PTR [rbx], edx
	test	DWORD PTR XCOFF_CALLED[rip], edx
	jne	.L9
	xor	edi, edi
	test	DWORD PTR 0[rbp], eax
	sete	dil
.L9:
	call	BFD_ASSERT@PLT
	mov	QWORD PTR 56[rbx], rbp
	mov	rax, QWORD PTR bfd_link_hash_undefined[rip]
	mov	QWORD PTR 56[rbp], rbx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bfd_xcoff_import_symbol, .-bfd_xcoff_import_symbol
	.comm	bfd_target_xcoff_flavour,8,8
	.comm	bfd_link_hash_undefined,8,8
	.comm	bfd_link_hash_new,8,8
	.comm	bfd_link_hash_defined,8,8
	.comm	bfd_abs_section_ptr,8,8
	.comm	XCOFF_IMPORT,4,4
	.comm	XCOFF_DESCRIPTOR,4,4
	.comm	XCOFF_CALLED,4,4
	.comm	XCOFF_BUILT_LDSYM,4,4
	.comm	TRUE,4,4
	.comm	FALSE,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_xcofflink.c_bfd_xcoff_import_symbol.c"
	.text
	.align	2
	.global	bfd_xcoff_import_symbol
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfd_xcoff_import_symbol, %function
bfd_xcoff_import_symbol:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r6, r3
	mov	r7, r1
	mov	r4, r2
	mov	r8, r0
	ldr	r5, [sp, #56]
	ldr	r9, [sp, #60]
	bl	bfd_get_flavour
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L17
	ldr	r3, [r4, #28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L41
.L4:
	ldr	r2, .L44+4
	ldr	r1, [sp, #68]
	ldr	r2, [r2]
	ldr	r3, [r4]
	orr	r2, r1, r2
	orr	r3, r3, r2
	cmn	r6, #1
	str	r3, [r4]
	beq	.L11
	ldr	r2, [r4, #12]
.L25:
	ldr	fp, .L44+8
	ldr	r3, [fp]
	cmp	r3, r2
	beq	.L35
.L39:
	ldr	r10, .L44+12
.L12:
	ldr	r2, [r10]
	str	r3, [r4, #12]
	str	r2, [r4, #20]
	str	r6, [r4, #16]
.L11:
	ldr	r0, [r4, #8]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BFD_ASSERT
	ldr	r3, .L44+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	BFD_ASSERT
	cmp	r5, #0
	mvneq	r3, #0
	streq	r3, [r4, #4]
	beq	.L17
	mov	r0, r7
	bl	xcoff_hash_table
	ldr	r6, [r0]
	cmp	r6, #0
	beq	.L18
	mov	r7, #1
	b	.L21
.L27:
	mov	r6, r3
.L21:
	mov	r1, r5
	ldr	r0, [r6]
	bl	strcmp
	cmp	r0, #0
	bne	.L19
	mov	r1, r9
	ldr	r0, [r6, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L19
	ldr	r1, [sp, #64]
	ldr	r0, [r6, #8]
	bl	strcmp
	cmp	r0, #0
	beq	.L20
.L19:
	ldr	r3, [r6, #12]
	add	r7, r7, #1
	cmp	r3, #0
	bne	.L27
	add	r6, r6, #12
.L22:
	mov	r0, r8
	mov	r1, #16
	bl	bfd_alloc
	subs	r3, r0, #0
	beq	.L23
	mov	r2, #0
	ldr	r1, [sp, #64]
	stm	r3, {r5, r9}
	str	r1, [r3, #8]
	str	r2, [r3, #12]
	str	r3, [r6]
.L20:
	str	r7, [r4, #4]
.L17:
	ldr	r3, .L44+20
	ldr	r0, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	ldr	r10, .L44+24
	ldr	r2, [r4, #12]
	ldr	r3, [r10]
	cmp	r2, r3
	bne	.L4
	cmn	r6, #1
	beq	.L42
	ldr	r3, .L44+4
	ldr	r0, [sp, #68]
	ldr	r3, [r3]
	ldr	r1, [r4]
	orr	r3, r0, r3
	orr	r3, r1, r3
	str	r3, [r4]
	b	.L25
.L35:
	ldr	r0, [r4, #20]
	bl	bfd_is_abs_section
	cmp	r0, #0
	ldr	r0, [r4, #16]
	beq	.L14
	cmp	r0, r6
	ldreq	r3, [fp]
	beq	.L39
.L14:
	ldr	r3, [r4, #20]
	ldr	r10, .L44+12
	ldr	ip, [r7]
	ldr	lr, [r10]
	ldr	r2, [r3]
	ldr	r1, [r4, #28]
	stm	sp, {r0, r8}
	str	lr, [sp, #8]
	str	r6, [sp, #12]
	ldr	r0, [ip]
	mov	ip, r0
	mov	r0, r7
	blx	ip
	cmp	r0, #0
	ldrne	r3, [fp]
	bne	.L12
.L23:
	ldr	r3, .L44+28
	ldr	r0, [r3]
	b	.L1
.L42:
	ldr	r6, [r4, #32]
	cmp	r6, #0
	beq	.L43
.L6:
	ldr	r1, [r6, #12]
	ldr	r2, .L44+4
	cmp	r1, r3
	moveq	r4, r6
	ldr	r2, [r2]
	ldr	r1, [sp, #68]
	ldr	r3, [r4]
	orr	r2, r1, r2
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L11
.L18:
	mov	r6, r0
	mov	r7, #1
	b	.L22
.L43:
	mov	r0, r7
	bl	xcoff_hash_table
	ldr	r3, .L44+20
	ldr	r1, [r4, #28]
	ldr	r2, [r3]
	ldr	fp, .L44+28
	str	r2, [sp]
	ldr	r3, [fp]
	add	r1, r1, #1
	bl	xcoff_link_hash_lookup
	subs	r6, r0, #0
	ldreq	r0, [fp]
	beq	.L1
	ldr	r3, .L44+32
	ldr	r2, [r6, #12]
	ldr	r3, [r3]
	ldr	r1, .L44+36
	cmp	r2, r3
	ldreq	r3, [r4, #24]
	ldreq	r2, [r10]
	streq	r3, [r6, #24]
	ldr	r3, .L44+40
	streq	r2, [r6, #12]
	ldr	r2, [r3]
	ldr	r3, [r6]
	ldr	r1, [r1]
	orr	r3, r2, r3
	tst	r3, r1
	movne	r0, #0
	str	r3, [r6]
	bne	.L9
	ldr	r3, [r4]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
.L9:
	bl	BFD_ASSERT
	str	r4, [r6, #32]
	ldr	r3, [r10]
	str	r6, [r4, #32]
	b	.L6
.L45:
	.align	2
.L44:
	.word	bfd_target_xcoff_flavour
	.word	XCOFF_IMPORT
	.word	bfd_link_hash_defined
	.word	bfd_abs_section_ptr
	.word	XCOFF_BUILT_LDSYM
	.word	TRUE
	.word	bfd_link_hash_undefined
	.word	FALSE
	.word	bfd_link_hash_new
	.word	XCOFF_CALLED
	.word	XCOFF_DESCRIPTOR
	.size	bfd_xcoff_import_symbol, .-bfd_xcoff_import_symbol
	.comm	bfd_target_xcoff_flavour,4,4
	.comm	bfd_link_hash_undefined,4,4
	.comm	bfd_link_hash_new,4,4
	.comm	bfd_link_hash_defined,4,4
	.comm	bfd_abs_section_ptr,4,4
	.comm	XCOFF_IMPORT,4,4
	.comm	XCOFF_DESCRIPTOR,4,4
	.comm	XCOFF_CALLED,4,4
	.comm	XCOFF_BUILT_LDSYM,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
