	.file	"extr_debug_gdb.c_r_debug_gdb_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r_debug_gdb_wait, @function
r_debug_gdb_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	check_connection@PLT
	mov	rdi, QWORD PTR desc[rip]
	mov	eax, DWORD PTR R_DEBUG_REASON_UNKNOWN[rip]
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR 48[rdi]
	test	eax, eax
	je	.L10
.L4:
	cmp	QWORD PTR 40[rdi], 0
	je	.L6
	mov	rdx, QWORD PTR 24[rdi]
	mov	rsi, QWORD PTR 32[rdi]
	mov	QWORD PTR 16[rbx], rdx
	mov	QWORD PTR [rbx], rsi
	mov	QWORD PTR 8[rbx], rdx
	cmp	rsi, QWORD PTR [rdi]
	jne	.L7
	cmp	rdx, QWORD PTR 8[rdi]
	je	.L6
.L7:
	call	gdbr_select@PLT
	mov	rdi, QWORD PTR desc[rip]
.L6:
	mov	eax, DWORD PTR 20[rdi]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR 16[rdi]
	mov	DWORD PTR 24[rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	gdbr_stop_reason@PLT
	test	rax, rax
	js	.L5
	mov	rdi, QWORD PTR desc[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR R_DEBUG_REASON_UNKNOWN[rip]
	mov	DWORD PTR 24[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	r_debug_gdb_wait, .-r_debug_gdb_wait
	.comm	desc,8,8
	.comm	R_DEBUG_REASON_UNKNOWN,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_debug_gdb.c_r_debug_gdb_wait.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r_debug_gdb_wait, %function
r_debug_gdb_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	mov	r4, r0
	bl	check_connection
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L13
	ldr	r3, [r0, #28]
	cmp	r3, #0
	beq	.L14
.L4:
	ldr	r3, [r0, #24]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [r0, #20]
	ldr	r3, [r0]
	ldr	r2, [r0, #16]
	cmp	r1, r3
	str	r1, [r4]
	str	r2, [r4, #8]
	str	r2, [r4, #4]
	bne	.L7
	ldr	r3, [r0, #4]
	cmp	r2, r3
	beq	.L6
.L7:
	bl	gdbr_select
	ldr	r0, [r5]
.L6:
	ldr	r3, [r0, #12]
	ldr	r0, [r0, #8]
	str	r3, [r4, #16]
	str	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L14:
	bl	gdbr_stop_reason
	cmp	r0, #0
	ldrge	r0, [r5]
	bge	.L4
.L5:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	str	r0, [r4, #12]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	desc
	.word	R_DEBUG_REASON_UNKNOWN
	.size	r_debug_gdb_wait, .-r_debug_gdb_wait
	.comm	desc,4,4
	.comm	R_DEBUG_REASON_UNKNOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
