	.file	"extr_core.c_gdbr_kill_pid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%x"
.LC1:
	.string	"OK"
	.text
	.p2align 4
	.globl	gdbr_kill_pid
	.type	gdbr_kill_pid, @function
gdbr_kill_pid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	test	rdi, rdi
	je	.L9
	mov	edx, DWORD PTR 16[rdi]
	mov	rbp, rdi
	test	edx, edx
	je	.L9
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	je	.L9
	call	gdbr_lock_enter@PLT
	test	eax, eax
	jne	.L21
.L3:
	mov	r12d, -1
.L6:
	mov	rdi, rbp
	call	gdbr_lock_leave@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	DWORD PTR 8[rbp], 0
	mov	rdi, QWORD PTR CMD_KILL_MP[rip]
	mov	DWORD PTR reg_cache[rip], 0
	call	strlen@PLT
	mov	esi, 1
	movsx	r12, eax
	add	r12, 9
	mov	rdi, r12
	call	calloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	r8d, DWORD PTR 4[rbp]
	mov	rcx, QWORD PTR CMD_KILL_MP[rip]
	mov	rsi, r12
	mov	rdi, rax
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	test	rax, rax
	js	.L4
	mov	rsi, r13
	mov	rdi, rbp
	call	send_msg@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	xor	esi, esi
	mov	rdi, rbp
	call	read_packet@PLT
	mov	rdi, rbp
	call	send_ack@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 2
	lea	rsi, .LC1[rip]
	call	strncmp@PLT
	test	rax, rax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, -1
.L5:
	mov	rdi, r13
	call	free@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	gdbr_kill_pid, .-gdbr_kill_pid
	.comm	reg_cache,4,4
	.comm	CMD_KILL_MP,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_core.c_gdbr_kill_pid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s%x\000"
	.align	2
.LC1:
	.ascii	"OK\000"
	.text
	.align	2
	.global	gdbr_kill_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	gdbr_kill_pid, %function
gdbr_kill_pid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	sub	sp, sp, #8
	beq	.L9
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L9
	bl	gdbr_lock_enter
	cmp	r0, #0
	bne	.L21
.L3:
	mvn	r5, #0
.L6:
	mov	r0, r4
	bl	gdbr_lock_leave
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r7, #0
	ldr	r2, .L22
	ldr	r3, .L22+4
	ldr	r6, [r2]
	str	r7, [r4, #8]
	mov	r0, r6
	str	r7, [r3]
	bl	strlen
	add	r5, r0, #9
	mov	r0, r5
	mov	r1, #1
	bl	calloc
	subs	r8, r0, #0
	beq	.L3
	ldr	r2, [r4, #4]
	mov	r3, r6
	str	r2, [sp]
	mov	r1, r5
	ldr	r2, .L22+8
	bl	snprintf
	cmp	r0, r7
	blt	.L4
	mov	r1, r8
	mov	r0, r4
	bl	send_msg
	subs	r5, r0, #0
	blt	.L5
	mov	r1, r7
	mov	r0, r4
	bl	read_packet
	mov	r0, r4
	bl	send_ack
	subs	r5, r0, #0
	blt	.L5
	mov	r2, #2
	ldr	r1, .L22+12
	ldr	r0, [r4]
	bl	strncmp
	cmp	r0, r7
	bne	.L4
.L5:
	mov	r0, r8
	bl	free
	b	.L6
.L4:
	mov	r0, r8
	mvn	r5, #0
	bl	free
	b	.L6
.L9:
	mvn	r5, #0
	b	.L1
.L23:
	.align	2
.L22:
	.word	CMD_KILL_MP
	.word	reg_cache
	.word	.LC0
	.word	.LC1
	.size	gdbr_kill_pid, .-gdbr_kill_pid
	.comm	reg_cache,4,4
	.comm	CMD_KILL_MP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
