	.file	"extr_db_thread.c_db_set_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unable to switch to thread %ld\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d: invalid thread\n"
	.text
	.p2align 4
	.globl	db_set_thread
	.type	db_set_thread, @function
db_set_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	je	.L2
	xor	esi, esi
	mov	rbx, rdi
	call	db_lookup_thread@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	kdb_thr_select@PLT
	test	eax, eax
	jne	.L10
	xor	eax, eax
	call	PC_REGS@PLT
	mov	DWORD PTR db_dot[rip], eax
.L2:
	xor	eax, eax
	call	db_print_thread@PLT
	xor	eax, eax
	call	PC_REGS@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	db_print_loc_and_inst@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	db_printf@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, QWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	db_printf@PLT
	.cfi_endproc
.LFE0:
	.size	db_set_thread, .-db_set_thread
	.comm	db_dot,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_db_thread.c_db_set_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to switch to thread %ld\012\000"
	.align	2
.LC1:
	.ascii	"%d: invalid thread\012\000"
	.text
	.align	2
	.global	db_set_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_set_thread, %function
db_set_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	beq	.L2
	mov	r1, #0
	mov	r4, r0
	bl	db_lookup_thread
	subs	r5, r0, #0
	beq	.L3
	bl	kdb_thr_select
	cmp	r0, #0
	bne	.L10
	bl	PC_REGS
	ldr	r3, .L11
	str	r0, [r3]
.L2:
	bl	db_print_thread
	bl	PC_REGS
	pop	{r4, r5, r6, lr}
	b	db_print_loc_and_inst
.L3:
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	ldr	r0, .L11+4
	b	db_printf
.L10:
	ldr	r1, [r5]
	ldr	r0, .L11+8
	pop	{r4, r5, r6, lr}
	b	db_printf
.L12:
	.align	2
.L11:
	.word	db_dot
	.word	.LC1
	.word	.LC0
	.size	db_set_thread, .-db_set_thread
	.comm	db_dot,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
