	.file	"extr_elf64-ppc.c_get_tls_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_tls_mask, @function
get_tls_mask:
.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, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR 8[r8]
	mov	QWORD PTR 8[rsp], rsi
	lea	r15, 64[rsp]
	lea	r14, 56[rsp]
	mov	QWORD PTR 16[rsp], rdx
	lea	r13, 48[rsp]
	mov	QWORD PTR [rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	ELF64_R_SYM@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rsi, r14
	mov	rdi, r13
	push	QWORD PTR 8[rsp]
	.cfi_def_cfa_offset 160
	mov	r9, rax
	mov	r8, rbx
	mov	rcx, r12
	mov	rdx, r15
	call	get_sym_h@PLT
	pop	rsi
	.cfi_def_cfa_offset 152
	pop	rdi
	.cfi_def_cfa_offset 144
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L4
	cmp	BYTE PTR [rax], 0
	jne	.L5
.L4:
	mov	rdi, QWORD PTR 64[rsp]
	test	rdi, rdi
	je	.L5
	call	ppc64_elf_section_data@PLT
	mov	rsi, QWORD PTR sec_toc[rip]
	cmp	QWORD PTR [rax], rsi
	jne	.L5
	mov	rax, QWORD PTR 48[rsp]
	test	rax, rax
	je	.L6
	mov	rcx, QWORD PTR bfd_link_hash_defined[rip]
	xor	edi, edi
	cmp	QWORD PTR 8[rax], rcx
	sete	dil
	call	BFD_ASSERT@PLT
	mov	rax, QWORD PTR 48[rsp]
	mov	edx, DWORD PTR 16[rax]
.L7:
	add	edx, DWORD PTR 0[rbp]
	test	dl, 7
	mov	DWORD PTR 24[rsp], edx
	sete	dil
	movzx	edi, dil
	call	BFD_ASSERT@PLT
	mov	rdi, QWORD PTR 64[rsp]
	call	ppc64_elf_section_data@PLT
	mov	edx, DWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 64[rsp]
	mov	r8, rax
	test	edx, edx
	lea	eax, 7[rdx]
	cmovs	edx, eax
	mov	rax, QWORD PTR 8[r8]
	sar	edx, 3
	movsx	rdx, edx
	mov	r9, QWORD PTR [rax+rdx*8]
	lea	rcx, 0[0+rdx*8]
	mov	QWORD PTR 32[rsp], rdx
	mov	QWORD PTR 40[rsp], rcx
	mov	QWORD PTR 24[rsp], r9
	call	ppc64_elf_section_data@PLT
	mov	rcx, QWORD PTR 40[rsp]
	mov	r9, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR 8[rax+rcx]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L8
	mov	QWORD PTR [rax], r9
.L8:
	mov	rbp, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[rsp], rdx
	test	rbp, rbp
	je	.L9
	mov	rdi, QWORD PTR 64[rsp]
	mov	QWORD PTR 16[rsp], r9
	call	ppc64_elf_section_data@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR 0[rbp], eax
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rcx, r12
	mov	rdx, r15
	mov	r8, rbx
	push	QWORD PTR 8[rsp]
	.cfi_def_cfa_offset 160
	mov	rsi, r14
	mov	rdi, r13
	call	get_sym_h@PLT
	pop	rdx
	.cfi_def_cfa_offset 152
	pop	rcx
	.cfi_def_cfa_offset 144
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR 48[rsp]
	test	rax, rax
	je	.L11
	mov	rdx, QWORD PTR 8[rax]
	cmp	rdx, QWORD PTR bfd_link_hash_defined[rip]
	je	.L12
	cmp	rdx, QWORD PTR bfd_link_hash_defweak[rip]
	je	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, 1
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L34
	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
.L10:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR [rax]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L5
.L11:
	cmp	DWORD PTR 40[rsp], -2
	jb	.L5
	mov	eax, 1
	sub	eax, DWORD PTR 40[rsp]
	jmp	.L1
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_tls_mask, .-get_tls_mask
	.comm	sec_toc,8,8
	.comm	bfd_link_hash_defweak,8,8
	.comm	bfd_link_hash_defined,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_elf64-ppc.c_get_tls_mask.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_tls_mask, %function
get_tls_mask:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	ldr	r8, [sp, #72]
	mov	r5, r3
	ldr	r3, .L38
	mov	r4, r0
	ldr	r0, [r8, #4]
	mov	r6, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r9, [sp, #76]
	bl	ELF64_R_SYM
	mov	r3, r4
	stmib	sp, {r0, r9}
	str	r5, [sp]
	add	r2, sp, #24
	add	r1, sp, #20
	add	r0, sp, #16
	bl	get_sym_h
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
.L4:
	ldr	r0, [sp, #24]
	cmp	r0, #0
	beq	.L5
	bl	ppc64_elf_section_data
	ldr	r3, .L38+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L38+8
	ldr	r0, [r3, #4]
	ldr	r3, [r2]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BFD_ASSERT
	ldr	r3, [sp, #16]
	ldr	r3, [r3, #8]
.L7:
	ldr	r8, [r8]
	add	r8, r3, r8
	tst	r8, #7
	moveq	r0, #1
	movne	r0, #0
	bl	BFD_ASSERT
	ldr	r0, [sp, #24]
	bl	ppc64_elf_section_data
	add	r10, r8, #7
	cmp	r8, #0
	movlt	r8, r10
	ldr	r3, [r0, #4]
	asr	r10, r8, #3
	ldr	r0, [sp, #24]
	ldr	fp, [r3, r10, lsl #2]
	bl	ppc64_elf_section_data
	ldr	r3, [r0, #4]
	lsl	r2, r10, #2
	cmp	r6, #0
	add	r3, r3, r2
	ldr	r8, [r3, #4]
	strne	fp, [r6]
	cmp	r7, #0
	beq	.L9
	ldr	r0, [sp, #24]
	bl	ppc64_elf_section_data
	ldr	r3, [r0, #8]
	ldr	r3, [r3, r10, lsl #2]
	str	r3, [r7]
.L9:
	mov	r3, r4
	stm	sp, {r5, fp}
	str	r9, [sp, #8]
	add	r2, sp, #24
	add	r1, sp, #20
	add	r0, sp, #16
	bl	get_sym_h
	cmp	r0, #0
	beq	.L10
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L11
	ldr	r1, .L38+8
	ldr	r2, [r3, #4]
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L12
	ldr	r1, .L38+12
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L12
.L5:
	mov	r0, #1
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r0, #0
	b	.L1
.L6:
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	b	.L7
.L12:
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
.L11:
	cmn	r8, #2
	bcc	.L5
	rsb	r0, r8, #1
	b	.L1
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC0
	.word	sec_toc
	.word	bfd_link_hash_defined
	.word	bfd_link_hash_defweak
	.size	get_tls_mask, .-get_tls_mask
	.comm	sec_toc,4,4
	.comm	bfd_link_hash_defweak,4,4
	.comm	bfd_link_hash_defined,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
