	.file	"extr_sol-thread.c_sol_thread_fetch_registers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sol_thread_fetch_registers:  thread == 0"
	.align 8
.LC1:
	.string	"sol_thread_fetch_registers: td_ta_map_id2thr: %s"
	.align 8
.LC2:
	.string	"sol_thread_fetch_registers: td_thr_getgregs %s"
	.align 8
.LC3:
	.string	"sol_thread_fetch_registers: td_thr_getfpregs %s"
	.text
	.p2align 4
	.type	sol_thread_fetch_registers, @function
sol_thread_fetch_registers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR inferior_ptid[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	is_thread@PLT
	test	eax, eax
	jne	.L2
	cmp	QWORD PTR target_has_execution[rip], 0
	mov	edi, ebp
	jne	.L13
	call	[QWORD PTR orig_core_ops[rip]]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	[QWORD PTR procfs_ops[rip]]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR inferior_ptid[rip]
	call	GET_THREAD@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
.L6:
	mov	edi, DWORD PTR main_ta[rip]
	lea	r12, 12[rsp]
	mov	rsi, rbp
	mov	rdx, r12
	call	p_td_ta_map_id2thr@PLT
	cmp	QWORD PTR TD_OK[rip], rax
	mov	rdi, rax
	je	.L7
	call	td_err_string@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	error@PLT
.L7:
	mov	esi, DWORD PTR 16[rsp]
	mov	rdi, r12
	call	p_td_thr_getgregs@PLT
	cmp	QWORD PTR TD_OK[rip], rax
	je	.L8
	cmp	QWORD PTR TD_PARTIALREG[rip], rax
	jne	.L16
.L8:
	lea	rbp, 20[rsp]
	mov	rdi, r12
	mov	rsi, rbp
	call	p_td_thr_getfpregs@PLT
	cmp	QWORD PTR TD_OK[rip], rax
	je	.L9
	cmp	QWORD PTR TD_NOFPREGS[rip], rax
	jne	.L17
.L9:
	lea	rdi, 16[rsp]
	call	supply_gregset@PLT
	mov	rdi, rbp
	call	supply_fpregset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rax
	call	td_err_string@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	xor	eax, eax
	call	error@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rax
	call	td_err_string@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	error@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	error@PLT
	jmp	.L6
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sol_thread_fetch_registers, .-sol_thread_fetch_registers
	.comm	target_has_execution,8,8
	.comm	procfs_ops,8,8
	.comm	orig_core_ops,8,8
	.comm	main_ta,4,4
	.comm	inferior_ptid,4,4
	.comm	TD_PARTIALREG,8,8
	.comm	TD_OK,8,8
	.comm	TD_NOXREGS,8,8
	.comm	TD_NOFPREGS,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_sol-thread.c_sol_thread_fetch_registers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sol_thread_fetch_registers:  thread == 0\000"
	.align	2
.LC1:
	.ascii	"sol_thread_fetch_registers: td_ta_map_id2thr: %s\000"
	.align	2
.LC2:
	.ascii	"sol_thread_fetch_registers: td_thr_getgregs %s\000"
	.align	2
.LC3:
	.ascii	"sol_thread_fetch_registers: td_thr_getfpregs %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sol_thread_fetch_registers, %function
sol_thread_fetch_registers:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L17
	ldr	r3, .L17+4
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	is_thread
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L17+8
	mov	r0, r4
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, .L17+12
	ldreq	r3, .L17+16
	ldr	r3, [r3]
	blx	r3
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r0, [r5]
	bl	GET_THREAD
	subs	r4, r0, #0
	beq	.L14
.L6:
	ldr	r3, .L17+20
	mov	r1, r4
	ldr	r0, [r3]
	mov	r2, sp
	bl	p_td_ta_map_id2thr
	ldr	r4, .L17+24
	ldr	r3, [r4]
	cmp	r3, r0
	beq	.L7
	bl	td_err_string
	mov	r1, r0
	ldr	r0, .L17+28
	bl	error
.L7:
	mov	r0, sp
	ldr	r1, [sp, #4]
	bl	p_td_thr_getgregs
	ldr	r2, [r4]
	cmp	r2, r0
	beq	.L8
	ldr	r2, .L17+32
	ldr	r2, [r2]
	cmp	r2, r0
	bne	.L15
.L8:
	mov	r0, sp
	add	r1, sp, #8
	bl	p_td_thr_getfpregs
	ldr	r2, [r4]
	cmp	r2, r0
	beq	.L9
	ldr	r2, .L17+36
	ldr	r2, [r2]
	cmp	r2, r0
	bne	.L16
.L9:
	add	r0, sp, #4
	bl	supply_gregset
	add	r0, sp, #8
	bl	supply_fpregset
	b	.L1
.L16:
	bl	td_err_string
	mov	r1, r0
	ldr	r0, .L17+40
	bl	error
	add	r0, sp, #4
	bl	supply_gregset
	add	r0, sp, #8
	bl	supply_fpregset
	b	.L1
.L15:
	bl	td_err_string
	mov	r1, r0
	ldr	r0, .L17+44
	bl	error
	b	.L8
.L14:
	ldr	r0, .L17+48
	bl	error
	b	.L6
.L13:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	inferior_ptid
	.word	.LC4
	.word	target_has_execution
	.word	procfs_ops
	.word	orig_core_ops
	.word	main_ta
	.word	TD_OK
	.word	.LC1
	.word	TD_PARTIALREG
	.word	TD_NOFPREGS
	.word	.LC3
	.word	.LC2
	.word	.LC0
	.size	sol_thread_fetch_registers, .-sol_thread_fetch_registers
	.comm	target_has_execution,4,4
	.comm	procfs_ops,4,4
	.comm	orig_core_ops,4,4
	.comm	main_ta,4,4
	.comm	inferior_ptid,4,4
	.comm	TD_PARTIALREG,4,4
	.comm	TD_OK,4,4
	.comm	TD_NOXREGS,4,4
	.comm	TD_NOFPREGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
