	.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
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR arch_needs_sstep_emulation[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	r12d, r12d
	jne	.L2
	lea	rax, 11[rdi]
	cmp	BYTE PTR 1[rdi], 84
	mov	QWORD PTR 16[rsp], rax
	je	.L23
.L21:
	mov	r12d, 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	cmp	BYTE PTR 2[rdi], 48
	jne	.L21
	lea	rdi, 16[rsp]
	lea	rsi, sstep_thread_id[rip]
	call	kgdb_hex2long@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR sstep_state[rip]
	cmp	eax, 3
	je	.L5
	jg	.L6
	cmp	eax, 1
	je	.L7
	cmp	eax, 2
	jne	.L9
	mov	edx, 3
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L25
.L11:
	sub	DWORD PTR ts[rip], 1
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	eax, 4
	jne	.L9
	mov	edx, 3
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
	mov	DWORD PTR sstep_state[rip], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC6[rip]
	xor	r12d, r12d
	call	eprintk@PLT
	sub	DWORD PTR ts[rip], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR NUMREGBYTES[rip]
	mov	rsi, QWORD PTR kgdbts_gdb_regs[rip]
	add	rdi, 1
	xor	r12d, r12d
	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	esi, eax
	call	v2printk@PLT
	mov	rax, QWORD PTR BREAK_INSTR_SIZE[rip]
	add	rax, QWORD PTR cont_addr[rip]
	sub	DWORD PTR ts[rip], 1
	mov	QWORD PTR sstep_addr[rip], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, 3
	lea	rsi, .LC3[rip]
	mov	QWORD PTR 8[rsp], rdi
	call	strncmp@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L27
	lea	rbp, 11[rdi]
	lea	rsi, sstep_thread_id[rip]
	lea	rdi, 16[rsp]
	mov	QWORD PTR 16[rsp], rbp
	call	kgdb_hex2long@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC2[rip]
	mov	r12d, 1
	call	eprintk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC5[rip]
	call	eprintk@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, .LC4[rip]
	mov	r12d, 1
	call	eprintk@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	emul_sstep_put, .-emul_sstep_put
	.comm	ts,4,4
	.comm	sstep_thread_id,4,4
	.comm	sstep_state,4,4
	.comm	sstep_addr,8,8
	.comm	kgdbts_regs,4,4
	.comm	kgdbts_gdb_regs,8,8
	.comm	cont_addr,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"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emul_sstep_put, %function
emul_sstep_put:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L34
	sub	sp, sp, #8
	ldr	r4, [r3]
	ldr	r3, .L34+4
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bne	.L2
	ldrb	r2, [r0, #1]	@ zero_extendqisi2
	add	r3, r0, #11
	cmp	r2, #84
	str	r3, [sp]
	beq	.L29
.L27:
	mov	r4, #1
.L1:
	ldr	r3, .L34+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L29:
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L27
	mov	r0, sp
	ldr	r1, .L34+8
	bl	kgdb_hex2long
	b	.L1
.L2:
	ldr	r2, .L34+12
	ldr	r3, [r2]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L6:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L31
.L22:
	ldr	r0, .L34+16
	bl	eprintk
	b	.L27
.L8:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L32
.L21:
	ldr	r0, .L34+20
	bl	eprintk
	mov	r4, #1
	b	.L1
.L9:
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L33
.L20:
	ldr	r0, .L34+24
	bl	eprintk
	mov	r4, #1
	b	.L1
.L10:
	ldr	r3, .L34+28
	ldr	r4, .L34+32
	ldr	r2, [r3]
	ldr	r1, [r4]
	add	r0, r0, #1
	bl	kgdb_hex2mem
	ldr	r1, .L34+36
	ldr	r0, [r4]
	bl	gdb_regs_to_pt_regs
	ldr	r0, .L34+36
	bl	instruction_pointer
	mov	r1, r0
	ldr	r0, .L34+40
	bl	v2printk
	ldr	r2, .L34+44
	ldr	r3, .L34+48
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L34+52
	add	r3, r3, r1
	str	r3, [r2]
.L11:
	ldr	r2, .L34+56
	mov	r4, #0
	ldr	r3, [r2]
	sub	r3, r3, #1
	str	r3, [r2]
	b	.L1
.L31:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L22
	ldrb	r4, [r0, #2]	@ zero_extendqisi2
	subs	r4, r4, #75
	streq	r4, [r2]
	beq	.L1
	b	.L22
.L32:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #84
	bne	.L21
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L21
	add	r3, r0, #11
	ldr	r1, .L34+8
	mov	r0, sp
	str	r3, [sp]
	bl	kgdb_hex2long
	b	.L11
.L33:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L20
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #75
	beq	.L11
	b	.L20
.L30:
	bl	__stack_chk_fail
.L5:
	ldr	r0, .L34+60
	bl	eprintk
	b	.L11
.L35:
	.align	2
.L34:
	.word	arch_needs_sstep_emulation
	.word	.LC5
	.word	sstep_thread_id
	.word	sstep_state
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	NUMREGBYTES
	.word	kgdbts_gdb_regs
	.word	kgdbts_regs
	.word	.LC0
	.word	BREAK_INSTR_SIZE
	.word	cont_addr
	.word	sstep_addr
	.word	ts
	.word	.LC4
	.size	emul_sstep_put, .-emul_sstep_put
	.comm	ts,4,4
	.comm	sstep_thread_id,4,4
	.comm	sstep_state,4,4
	.comm	sstep_addr,4,4
	.comm	kgdbts_regs,4,4
	.comm	kgdbts_gdb_regs,4,4
	.comm	cont_addr,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
