	.file	"extr_prof.c_prof_thread_name_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	prof_thread_name_set
	.type	prof_thread_name_set, @function
prof_thread_name_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	mov	esi, 1
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	prof_tdata_get@PLT
	test	rax, rax
	je	.L19
	test	r12, r12
	je	.L20
	movzx	edi, BYTE PTR [r12]
	mov	r13, rax
	xor	ebx, ebx
	test	dil, dil
	jne	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	lea	eax, 1[rbx]
	movzx	edi, BYTE PTR [r12+rax]
	mov	rbx, rax
	test	dil, dil
	je	.L6
.L5:
	movsx	ebp, dil
	mov	edi, ebp
	call	isgraph@PLT
	test	eax, eax
	jne	.L7
	mov	edi, ebp
	call	isblank@PLT
	test	eax, eax
	jne	.L7
.L20:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR EFAULT[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r14
	call	tsd_tsdn@PLT
	mov	rsi, r12
	mov	edi, eax
	call	prof_thread_name_alloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L19
	mov	rbp, QWORD PTR 0[r13]
	test	rbp, rbp
	je	.L9
	mov	rdi, r14
	call	tsd_tsdn@PLT
	mov	r9d, 1
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, eax
	mov	r8d, 1
	mov	rsi, rbp
	call	idalloctm@PLT
	mov	QWORD PTR 0[r13], 0
.L9:
	mov	rdi, rbx
	call	strlen@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	QWORD PTR 0[r13], rbx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR EAGAIN[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	prof_thread_name_set, .-prof_thread_name_set
	.comm	EFAULT,4,4
	.comm	EAGAIN,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_prof.c_prof_thread_name_set.c"
	.text
	.align	2
	.global	prof_thread_name_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	prof_thread_name_set, %function
prof_thread_name_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	sub	sp, sp, #8
	mov	r1, #1
	mov	r8, r0
	bl	prof_tdata_get
	subs	r7, r0, #0
	beq	.L19
	cmp	r6, #0
	beq	.L20
	ldrb	r4, [r6]	@ zero_extendqisi2
	cmp	r4, #0
	movne	r5, r6
	bne	.L8
	b	.L6
.L7:
	ldrb	r4, [r5, #1]!	@ zero_extendqisi2
	cmp	r4, #0
	beq	.L6
.L8:
	mov	r0, r4
	bl	isgraph
	cmp	r0, #0
	bne	.L7
	mov	r0, r4
	bl	isblank
	cmp	r0, #0
	bne	.L7
.L20:
	ldr	r3, .L22
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r8
	bl	tsd_tsdn
	mov	r1, r6
	bl	prof_thread_name_alloc
	subs	r4, r0, #0
	beq	.L19
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L10
	mov	r0, r8
	bl	tsd_tsdn
	mov	r2, #1
	mov	r3, #0
	ldr	r1, [r7]
	str	r2, [sp, #4]
	str	r2, [sp]
	mov	r2, r3
	bl	idalloctm
	mov	r3, #0
	str	r3, [r7]
.L10:
	mov	r0, r4
	bl	strlen
	cmp	r0, #0
	movne	r0, #0
	strne	r4, [r7]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L22+4
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	.align	2
.L22:
	.word	EFAULT
	.word	EAGAIN
	.size	prof_thread_name_set, .-prof_thread_name_set
	.comm	EFAULT,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
