	.file	"extr_sparc-nat.c_fetch_inferior_registers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Couldn't get floating point status"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Couldn't get registers"
	.text
	.p2align 4
	.globl	fetch_inferior_registers
	.type	fetch_inferior_registers, @function
fetch_inferior_registers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR inferior_ptid[rip]
	mov	r13, QWORD PTR current_regcache[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	TIDGET@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L26
	cmp	DWORD PTR SPARC_G0_REGNUM[rip], r12d
	je	.L27
.L3:
	cmp	r12d, -1
	je	.L5
	mov	edi, r12d
	call	sparc_gregset_supplies_p@PLT
	test	rax, rax
	je	.L28
	lea	r12, 4[rsp]
	mov	edi, DWORD PTR PTRACE_GETREGS[rip]
	xor	ecx, ecx
	mov	esi, ebp
	mov	edx, r12d
	call	ptrace@PLT
	cmp	eax, -1
	je	.L29
.L24:
	mov	edi, DWORD PTR sparc_gregset[rip]
	mov	rcx, r12
	mov	edx, -1
	mov	rsi, r13
	call	sparc_supply_gregset@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 16
	.cfi_remember_state
	.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
.L28:
	.cfi_restore_state
	mov	edi, r12d
	lea	r12, 4[rsp]
	call	sparc_fpregset_supplies_p@PLT
	test	rax, rax
	je	.L1
.L9:
	mov	edi, DWORD PTR PTRACE_GETFPREGS[rip]
	xor	ecx, ecx
	mov	edx, r12d
	mov	esi, ebp
	call	ptrace@PLT
	cmp	eax, -1
	je	.L31
.L8:
	mov	rdx, r12
	mov	esi, -1
	mov	rdi, r13
	call	sparc_supply_fpregset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR inferior_ptid[rip]
	call	PIDGET@PLT
	cmp	DWORD PTR SPARC_G0_REGNUM[rip], r12d
	mov	ebp, eax
	jne	.L3
.L27:
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, r13
	call	regcache_raw_supply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	r12, 4[rsp]
	mov	edi, DWORD PTR PTRACE_GETREGS[rip]
	xor	ecx, ecx
	mov	esi, ebp
	mov	edx, r12d
	call	ptrace@PLT
	cmp	eax, -1
	je	.L32
.L23:
	mov	edi, DWORD PTR sparc_gregset[rip]
	mov	rcx, r12
	mov	edx, -1
	mov	rsi, r13
	call	sparc_supply_gregset@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rdi, .LC0[rip]
	call	perror_with_name@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC1[rip]
	call	perror_with_name@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC1[rip]
	call	perror_with_name@PLT
	jmp	.L23
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fetch_inferior_registers, .-fetch_inferior_registers
	.comm	sparc_gregset,4,4
	.comm	inferior_ptid,4,4
	.comm	current_regcache,8,8
	.comm	SPARC_G0_REGNUM,4,4
	.comm	PTRACE_GETREGS,4,4
	.comm	PTRACE_GETFPREGS,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_sparc-nat.c_fetch_inferior_registers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't get floating point status\000"
	.align	2
.LC1:
	.ascii	"Couldn't get registers\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fetch_inferior_registers
	.syntax unified
	.arm
	.fpu softvfp
	.type	fetch_inferior_registers, %function
fetch_inferior_registers:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L31
	ldr	r3, .L31+4
	ldr	r2, .L31+8
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r0, [r6]
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r7, [r3]
	bl	TIDGET
	subs	r5, r0, #0
	beq	.L24
	ldr	r3, .L31+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L25
.L3:
	cmn	r4, #1
	beq	.L5
	mov	r0, r4
	bl	sparc_gregset_supplies_p
	cmp	r0, #0
	beq	.L26
	ldr	r3, .L31+16
	mov	r1, r5
	ldr	r0, [r3]
	mov	r2, sp
	mov	r3, #0
	bl	ptrace
	cmn	r0, #1
	mov	r4, r0
	beq	.L27
	ldr	r2, .L31+20
	mov	r3, sp
	ldr	r0, [r2]
	mov	r1, r7
	mvn	r2, #0
	bl	sparc_supply_gregset
.L1:
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L26:
	mov	r0, r4
	bl	sparc_fpregset_supplies_p
	cmp	r0, #0
	movne	r6, sp
	beq	.L1
.L9:
	ldr	r3, .L31+24
	mov	r1, r5
	ldr	r0, [r3]
	mov	r2, r6
	mov	r3, #0
	bl	ptrace
	cmn	r0, #1
	beq	.L29
.L8:
	mov	r2, r6
	mov	r0, r7
	mvn	r1, #0
	bl	sparc_supply_fpregset
	b	.L1
.L24:
	ldr	r0, [r6]
	bl	PIDGET
	ldr	r3, .L31+12
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L3
.L25:
	mov	r1, r4
	mov	r0, r7
	mov	r2, #0
	bl	regcache_raw_supply
	b	.L1
.L5:
	mov	r6, sp
	ldr	r3, .L31+16
	mov	r2, r6
	ldr	r0, [r3]
	mov	r1, r5
	mov	r3, #0
	bl	ptrace
	cmn	r0, #1
	beq	.L30
.L22:
	ldr	r3, .L31+20
	mov	r2, r4
	mov	r1, r7
	ldr	r0, [r3]
	mov	r3, r6
	bl	sparc_supply_gregset
	b	.L9
.L29:
	ldr	r0, .L31+28
	bl	perror_with_name
	b	.L8
.L27:
	ldr	r0, .L31+32
	bl	perror_with_name
	ldr	r0, .L31+20
	mov	r3, sp
	mov	r2, r4
	mov	r1, r7
	ldr	r0, [r0]
	bl	sparc_supply_gregset
	b	.L1
.L30:
	ldr	r0, .L31+32
	bl	perror_with_name
	b	.L22
.L28:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	inferior_ptid
	.word	current_regcache
	.word	.LC2
	.word	SPARC_G0_REGNUM
	.word	PTRACE_GETREGS
	.word	sparc_gregset
	.word	PTRACE_GETFPREGS
	.word	.LC0
	.word	.LC1
	.size	fetch_inferior_registers, .-fetch_inferior_registers
	.comm	sparc_gregset,4,4
	.comm	inferior_ptid,4,4
	.comm	current_regcache,4,4
	.comm	SPARC_G0_REGNUM,4,4
	.comm	PTRACE_GETREGS,4,4
	.comm	PTRACE_GETFPREGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
