	.file	"extr_fbsd-threads.c_attach_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[New %s]\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Cannot enable thread event reporting for %s: %s"
	.text
	.p2align 4
	.type	attach_thread, @function
attach_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	in_thread_list@PLT
	test	eax, eax
	je	.L16
.L3:
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR TD_THR_UNKNOWN[rip]
	je	.L1
	cmp	rax, QWORD PTR TD_THR_ZOMBIE[rip]
	je	.L1
	mov	edi, ebp
	call	IS_THREAD@PLT
	test	eax, eax
	je	.L1
	cmp	QWORD PTR fbsd_thread_core[rip], 0
	je	.L17
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, ebp
	call	add_thread@PLT
	test	r12d, r12d
	je	.L3
	mov	edi, ebp
	call	target_pid_to_str@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	printf_unfiltered@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	mov	esi, 1
	call	td_thr_event_enable_p@PLT
	cmp	QWORD PTR TD_OK[rip], rax
	mov	rdi, rax
	je	.L1
	call	thread_db_err_str@PLT
	mov	edi, ebp
	mov	r12, rax
	call	target_pid_to_str@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	error@PLT
	.cfi_endproc
.LFE0:
	.size	attach_thread, .-attach_thread
	.comm	fbsd_thread_core,8,8
	.comm	TD_THR_ZOMBIE,8,8
	.comm	TD_THR_UNKNOWN,8,8
	.comm	TD_OK,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_fbsd-threads.c_attach_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[New %s]\012\000"
	.align	2
.LC1:
	.ascii	"Cannot enable thread event reporting for %s: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	attach_thread, %function
attach_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r5, r2
	mov	r6, r3
	mov	r4, r0
	bl	in_thread_list
	cmp	r0, #0
	beq	.L16
.L3:
	ldr	r2, .L17
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L17+4
	ldr	r2, [r2]
	cmp	r3, r2
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	IS_THREAD
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r7
	mov	r1, #1
	bl	td_thr_event_enable_p
	ldr	r3, .L17+12
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	target_pid_to_str
	mov	r4, r0
	mov	r0, r5
	bl	thread_db_err_str
	mov	r1, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, r0
	ldr	r0, .L17+16
	b	error
.L16:
	mov	r0, r4
	bl	add_thread
	cmp	r6, #0
	beq	.L3
	mov	r0, r4
	bl	target_pid_to_str
	mov	r1, r0
	ldr	r0, .L17+20
	bl	printf_unfiltered
	b	.L3
.L18:
	.align	2
.L17:
	.word	TD_THR_UNKNOWN
	.word	TD_THR_ZOMBIE
	.word	fbsd_thread_core
	.word	TD_OK
	.word	.LC1
	.word	.LC0
	.size	attach_thread, .-attach_thread
	.comm	fbsd_thread_core,4,4
	.comm	TD_THR_ZOMBIE,4,4
	.comm	TD_THR_UNKNOWN,4,4
	.comm	TD_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
