	.file	"extr_kgdbts.c_emul_sstep_put.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Stopped at IP: %lx\n"
.LC1:
	.string	"$OK"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"kgdbts: failed sstep break set\n"
	.section	.rodata.str1.1
.LC3:
	.string	"$T0"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"kgdbts: failed continue sstep\n"
	.align 8
.LC5:
	.string	"kgdbts: failed sstep break unset\n"
	.align 8
.LC6:
	.string	"kgdbts: ERROR failed sstep put emulation\n"
	.text
	.p2align 4
	.type	emul_sstep_put, @function
emul_sstep_put:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR arch_needs_sstep_emulation[rip]
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR sstep_state[rip]
	cmp	eax, 3
	je	.L4
	jg	.L5
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	jne	.L8
	mov	edx, 3
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	test	rax, rax
	jne	.L20
.L10:
	sub	DWORD PTR ts[rip], 1
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	eax, 4
	jne	.L8
	mov	edx, 3
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	test	rax, rax
	jne	.L21
	mov	DWORD PTR sstep_state[rip], 0
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	add	rdi, 1
	mov	edx, 2
	call	strncmp@PLT
	test	rax, rax
	setne	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR NUMREGBYTES[rip]
	mov	rsi, QWORD PTR kgdbts_gdb_regs[rip]
	add	rdi, 1
	call	kgdb_hex2mem@PLT
	mov	rdi, QWORD PTR kgdbts_gdb_regs[rip]
	lea	rsi, kgdbts_regs[rip]
	call	gdb_regs_to_pt_regs@PLT
	lea	rdi, kgdbts_regs[rip]
	call	instruction_pointer@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	v2printk@PLT
	lea	rdi, kgdbts_regs[rip]
	call	instruction_pointer@PLT
	add	rax, QWORD PTR BREAK_INSTR_SIZE[rip]
	mov	QWORD PTR sstep_addr[rip], rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, .LC6[rip]
	call	eprintk@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, 3
	lea	rsi, .LC3[rip]
	call	strncmp@PLT
	test	rax, rax
	je	.L10
	lea	rdi, .LC4[rip]
	call	eprintk@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC2[rip]
	call	eprintk@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC5[rip]
	call	eprintk@PLT
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	emul_sstep_put, .-emul_sstep_put
	.comm	ts,4,4
	.comm	sstep_state,4,4
	.comm	sstep_addr,8,8
	.comm	kgdbts_regs,4,4
	.comm	kgdbts_gdb_regs,8,8
	.comm	arch_needs_sstep_emulation,4,4
	.comm	NUMREGBYTES,4,4
	.comm	BREAK_INSTR_SIZE,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_kgdbts.c_emul_sstep_put.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Stopped at IP: %lx\012\000"
	.align	2
.LC1:
	.ascii	"kgdbts: failed sstep break set\012\000"
	.align	2
.LC2:
	.ascii	"kgdbts: failed continue sstep\012\000"
	.align	2
.LC3:
	.ascii	"kgdbts: failed sstep break unset\012\000"
	.align	2
.LC4:
	.ascii	"kgdbts: ERROR failed sstep put emulation\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emul_sstep_put, %function
emul_sstep_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L29
	push	{r4, lr}
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mov	r2, #2
	add	r0, r0, #1
	bl	strncmp
	subs	r0, r0, #0
	movne	r0, #1
	pop	{r4, pc}
.L2:
	ldr	r2, .L29+4
	ldr	r3, [r2]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L5:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L26
.L17:
	ldr	r0, .L29+8
	bl	eprintk
	mov	r0, #1
	pop	{r4, pc}
.L7:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L27
.L16:
	ldr	r0, .L29+12
	bl	eprintk
	mov	r0, #1
	pop	{r4, pc}
.L9:
	ldr	r3, .L29+16
	ldr	r4, .L29+20
	ldr	r2, [r3]
	ldr	r1, [r4]
	add	r0, r0, #1
	bl	kgdb_hex2mem
	ldr	r1, .L29+24
	ldr	r0, [r4]
	bl	gdb_regs_to_pt_regs
	ldr	r0, .L29+24
	bl	instruction_pointer
	mov	r1, r0
	ldr	r0, .L29+28
	bl	v2printk
	ldr	r0, .L29+24
	bl	instruction_pointer
	ldr	r3, .L29+32
	ldr	r2, .L29+36
	ldr	r3, [r3]
	add	r3, r3, r0
	str	r3, [r2]
.L10:
	ldr	r2, .L29+40
	mov	r0, #0
	ldr	r3, [r2]
	sub	r3, r3, #1
	str	r3, [r2]
	pop	{r4, pc}
.L8:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L28
.L15:
	ldr	r0, .L29+44
	bl	eprintk
	mov	r0, #1
	pop	{r4, pc}
.L26:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L17
	ldrb	r0, [r0, #2]	@ zero_extendqisi2
	subs	r0, r0, #75
	bne	.L17
	str	r0, [r2]
	pop	{r4, pc}
.L28:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L15
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #75
	beq	.L10
	b	.L15
.L27:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #84
	bne	.L16
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L10
	b	.L16
.L4:
	ldr	r0, .L29+48
	bl	eprintk
	b	.L10
.L30:
	.align	2
.L29:
	.word	arch_needs_sstep_emulation
	.word	sstep_state
	.word	.LC3
	.word	.LC2
	.word	NUMREGBYTES
	.word	kgdbts_gdb_regs
	.word	kgdbts_regs
	.word	.LC0
	.word	BREAK_INSTR_SIZE
	.word	sstep_addr
	.word	ts
	.word	.LC1
	.word	.LC4
	.size	emul_sstep_put, .-emul_sstep_put
	.comm	ts,4,4
	.comm	sstep_state,4,4
	.comm	sstep_addr,4,4
	.comm	kgdbts_regs,4,4
	.comm	kgdbts_gdb_regs,4,4
	.comm	arch_needs_sstep_emulation,4,4
	.comm	NUMREGBYTES,4,4
	.comm	BREAK_INSTR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
