	.file	"extr_ptrace.c_show_regs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\nCURRENT PROCESS:\n\n"
.LC1:
	.string	"COMM=%s PID=%d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"TEXT=%08x-%08x DATA=%08x-%08x BSS=%08x-%08x\n"
	.align 8
.LC3:
	.string	"USER-STACK=%08x  KERNEL-STACK=%08x\n\n"
	.section	.rodata.str1.1
.LC4:
	.string	"PC: 0x%08lx (%pS)\n"
.LC5:
	.string	"LR: 0x%08lx (%pS)\n"
.LC6:
	.string	"SP: 0x%08lx\n"
.LC7:
	.string	"orig_a0: 0x%08lx\n"
.LC8:
	.string	"PSR: 0x%08lx\n"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	" a0: 0x%08lx   a1: 0x%08lx   a2: 0x%08lx   a3: 0x%08lx\n"
	.align 8
.LC10:
	.string	" r6: 0x%08lx   r7: 0x%08lx   r8: 0x%08lx   r9: 0x%08lx\n"
	.align 8
.LC11:
	.string	"r10: 0x%08lx  r11: 0x%08lx  r12: 0x%08lx  r13: 0x%08lx\n"
	.align 8
.LC12:
	.string	"r14: 0x%08lx   r1: 0x%08lx  r15: 0x%08lx\n"
	.section	.rodata.str1.1
.LC13:
	.string	"\nCODE:"
.LC14:
	.string	"\n%08x: "
.LC15:
	.string	"%08x "
.LC16:
	.string	"\n"
.LC17:
	.string	"\nKERNEL STACK:"
	.text
	.p2align 4
	.globl	show_regs
	.type	show_regs, @function
show_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pr_info@PLT
	mov	rax, QWORD PTR current[rip]
	lea	rdi, .LC1[rip]
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 12[rax]
	xor	eax, eax
	call	pr_info@PLT
	mov	rax, QWORD PTR current[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	r8, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR 24[rax]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rdi, .LC2[rip]
	mov	rdx, QWORD PTR 32[rax]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	r9d, r8d
	push	rax
	.cfi_def_cfa_offset 64
	xor	eax, eax
	call	pr_info@PLT
	mov	rax, QWORD PTR current[rip]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	lea	rdi, .LC3[rip]
	lea	edx, [rax+rdx*2]
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax]
	xor	eax, eax
	call	pr_info@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
.L2:
	mov	rsi, QWORD PTR 8[rbp]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	lea	r13, .LC14[rip]
	mov	rdx, rsi
	call	pr_info@PLT
	mov	rsi, QWORD PTR 16[rbp]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	mov	rdx, rsi
	call	pr_info@PLT
	mov	rsi, rbp
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	pr_info@PLT
	mov	esi, DWORD PTR 72[rbp]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	pr_info@PLT
	mov	rsi, QWORD PTR 64[rbp]
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	pr_info@PLT
	mov	ecx, DWORD PTR 52[rbp]
	mov	edx, DWORD PTR 56[rbp]
	xor	eax, eax
	mov	esi, DWORD PTR 60[rbp]
	mov	r8d, DWORD PTR 48[rbp]
	lea	rdi, .LC9[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, .LC10[rip]
	mov	rcx, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	r8, QWORD PTR 24[rax]
	mov	rsi, QWORD PTR [rax]
	xor	eax, eax
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, .LC11[rip]
	mov	r8, QWORD PTR 56[rax]
	mov	rcx, QWORD PTR 48[rax]
	mov	rdx, QWORD PTR 40[rax]
	mov	rsi, QWORD PTR 32[rax]
	xor	eax, eax
	call	pr_info@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	lea	rdi, .LC12[rip]
	mov	rdx, QWORD PTR 72[rax]
	mov	rsi, QWORD PTR 64[rax]
	xor	eax, eax
	call	pr_info@PLT
	xor	eax, eax
	lea	rdi, .LC13[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	al, 3
	lea	rdx, -32[rax]
	lea	r12, -30[rax]
	cmove	r12, rdx
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR [r12+rbx*8]
	lea	rdi, .LC15[rip]
	xor	eax, eax
	add	rbx, 1
	call	pr_cont@PLT
	cmp	rbx, 16
	je	.L17
.L5:
	lea	esi, 0[0+rbx*4]
	test	sil, 12
	jne	.L4
	add	esi, r12d
	mov	rdi, r13
	xor	eax, eax
	call	pr_cont@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdi, .LC16[rip]
	xor	eax, eax
	lea	r13, -64[rbp]
	xor	ebx, ebx
	call	pr_cont@PLT
	lea	rdi, .LC17[rip]
	xor	eax, eax
	lea	r12, .LC14[rip]
	call	pr_info@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR -64[rbp+rbx*8]
	lea	rdi, .LC15[rip]
	xor	eax, eax
	add	rbx, 1
	call	pr_cont@PLT
	cmp	rbx, 48
	je	.L18
.L7:
	lea	esi, 0[0+rbx*4]
	test	sil, 12
	jne	.L6
	add	esi, r13d
	mov	rdi, r12
	xor	eax, eax
	call	pr_cont@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC16[rip]
	xor	eax, eax
	call	pr_cont@PLT
	mov	rax, QWORD PTR 0[rbp]
	xor	edi, edi
	mov	rsi, QWORD PTR 32[rax]
	add	rsp, 8
	.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
	jmp	show_stack@PLT
	.cfi_endproc
.LFE0:
	.size	show_regs, .-show_regs
	.comm	current,8,8
	.comm	PAGE_SIZE,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_ptrace.c_show_regs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012CURRENT PROCESS:\012\012\000"
	.align	2
.LC1:
	.ascii	"COMM=%s PID=%d\012\000"
	.align	2
.LC2:
	.ascii	"TEXT=%08x-%08x DATA=%08x-%08x BSS=%08x-%08x\012\000"
	.align	2
.LC3:
	.ascii	"USER-STACK=%08x  KERNEL-STACK=%08x\012\012\000"
	.align	2
.LC4:
	.ascii	"PC: 0x%08lx (%pS)\012\000"
	.align	2
.LC5:
	.ascii	"LR: 0x%08lx (%pS)\012\000"
	.align	2
.LC6:
	.ascii	"SP: 0x%08lx\012\000"
	.align	2
.LC7:
	.ascii	"orig_a0: 0x%08lx\012\000"
	.align	2
.LC8:
	.ascii	"PSR: 0x%08lx\012\000"
	.align	2
.LC9:
	.ascii	" a0: 0x%08lx   a1: 0x%08lx   a2: 0x%08lx   a3: 0x%0"
	.ascii	"8lx\012\000"
	.align	2
.LC10:
	.ascii	" r6: 0x%08lx   r7: 0x%08lx   r8: 0x%08lx   r9: 0x%0"
	.ascii	"8lx\012\000"
	.align	2
.LC11:
	.ascii	"r10: 0x%08lx  r11: 0x%08lx  r12: 0x%08lx  r13: 0x%0"
	.ascii	"8lx\012\000"
	.align	2
.LC12:
	.ascii	"r14: 0x%08lx   r1: 0x%08lx  r15: 0x%08lx\012\000"
	.align	2
.LC13:
	.ascii	"\012CODE:\000"
	.align	2
.LC14:
	.ascii	"\012%08x: \000"
	.align	2
.LC15:
	.ascii	"%08x \000"
	.align	2
.LC16:
	.ascii	"\012\000"
	.align	2
.LC17:
	.ascii	"\012KERNEL STACK:\000"
	.text
	.align	2
	.global	show_regs
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_regs, %function
show_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, .L20
	sub	sp, sp, #20
	mov	r8, r0
	ldr	r0, .L20+4
	bl	pr_info
	ldr	r3, [r4]
	ldr	r0, .L20+8
	ldr	r2, [r3, #4]
	ldr	r1, [r3, #8]
	bl	pr_info
	ldr	r3, [r4]
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r0, #12]
	ldr	r2, [r0, #16]
	ldr	r1, [r0, #20]
	ldr	ip, [r0, #8]
	ldr	r0, [r0, #4]
	str	ip, [sp, #4]
	str	r0, [sp, #8]
	str	ip, [sp]
	ldr	r0, .L20+12
	bl	pr_info
	ldr	r3, [r4]
	ldr	r2, .L20+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L20+20
	add	r2, r3, r2, lsl #1
	bl	pr_info
.L2:
	ldr	r2, [r8, #4]
	ldr	r0, .L20+24
	mov	r1, r2
	bl	pr_info
	ldr	r2, [r8, #8]
	ldr	r0, .L20+28
	mov	r1, r2
	bl	pr_info
	mov	r1, r8
	ldr	r0, .L20+32
	bl	pr_info
	ldr	r1, [r8, #48]
	ldr	r0, .L20+36
	bl	pr_info
	ldr	r1, [r8, #44]
	ldr	r0, .L20+40
	bl	pr_info
	ldr	r2, [r8, #28]
	ldr	r3, [r8, #32]
	str	r2, [sp]
	ldr	r2, [r8, #36]
	ldr	r1, [r8, #40]
	ldr	r0, .L20+44
	bl	pr_info
	ldr	ip, [r8]
	ldr	r0, .L20+48
	ldm	ip, {r1, r2, r3, ip}
	str	ip, [sp]
	bl	pr_info
	ldr	ip, [r8]
	ldr	r0, .L20+52
	add	r1, ip, #16
	ldm	r1, {r1, r2, r3, ip}
	str	ip, [sp]
	bl	pr_info
	ldr	r1, [r8]
	ldr	r3, [r8, #8]
	ldr	r2, [r1, #36]
	ldr	r0, .L20+56
	ldr	r1, [r1, #32]
	bl	pr_info
	ldr	r0, .L20+60
	bl	pr_info
	ldr	r3, [r8, #4]
	mov	r4, #0
	tst	r3, #3
	sub	r5, r3, #32
	ldr	r7, .L20+64
	ldr	r6, .L20+68
	subne	r5, r3, #30
	b	.L5
.L4:
	mov	r0, r6
	ldr	r1, [r5], #4
	bl	pr_cont
	cmp	r4, #64
	beq	.L18
.L5:
	tst	r4, #15
	add	r4, r4, #4
	bne	.L4
	mov	r1, r5
	mov	r0, r7
	bl	pr_cont
	b	.L4
.L18:
	ldr	r0, .L20+72
	bl	pr_cont
	ldr	r0, .L20+76
	bl	pr_info
	ldr	r9, .L20+64
	ldr	r7, .L20+68
	sub	r4, r8, #64
	add	r6, r8, #128
	rsb	r5, r8, #64
	b	.L7
.L6:
	ldr	r1, [r4], #4
	mov	r0, r7
	bl	pr_cont
	cmp	r6, r4
	beq	.L19
.L7:
	add	r3, r4, r5
	tst	r3, #15
	bne	.L6
	mov	r1, r4
	mov	r0, r9
	bl	pr_cont
	b	.L6
.L19:
	ldr	r0, .L20+72
	bl	pr_cont
	mov	r0, #0
	ldr	r3, [r8]
	ldr	r1, [r3, #16]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	show_stack
.L21:
	.align	2
.L20:
	.word	current
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	PAGE_SIZE
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	show_regs, .-show_regs
	.comm	current,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
