	.file	"extr_procfs.c_procfs_detach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Detaching from program: %s %s\n"
	.text
	.p2align 4
	.type	procfs_detach, @function
procfs_detach:
.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
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	jne	.L12
.L2:
	xor	edi, edi
	test	rbp, rbp
	je	.L4
	mov	rdi, rbp
	call	atoi@PLT
	mov	edi, eax
.L4:
	call	do_detach@PLT
	mov	eax, DWORD PTR null_ptid[rip]
	lea	rdi, procfs_ops[rip]
	mov	DWORD PTR inferior_ptid[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	unpush_target@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	edi, edi
	call	get_exec_file@PLT
	mov	edi, DWORD PTR inferior_ptid[rip]
	test	rax, rax
	mov	r12, rax
	lea	rax, .LC0[rip]
	cmove	r12, rax
	call	target_pid_to_str@PLT
	lea	rdi, .LC1[rip]
	mov	edx, eax
	mov	rsi, r12
	call	printf_filtered@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	procfs_detach, .-procfs_detach
	.comm	stdout,4,4
	.comm	procfs_ops,4,4
	.comm	null_ptid,4,4
	.comm	inferior_ptid,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_procfs.c_procfs_detach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Detaching from program: %s %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	procfs_detach, %function
procfs_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bne	.L8
	ldr	r5, .L11
.L2:
	subs	r0, r4, #0
	beq	.L4
	bl	atoi
.L4:
	bl	do_detach
	ldr	r3, .L11+4
	ldr	r0, .L11+8
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, lr}
	b	unpush_target
.L8:
	mov	r0, #0
	bl	get_exec_file
	ldr	r5, .L11
	cmp	r0, #0
	ldr	r6, .L11+12
	movne	r6, r0
	ldr	r0, [r5]
	bl	target_pid_to_str
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L11+16
	bl	printf_filtered
	ldr	r3, .L11+20
	ldr	r0, [r3]
	bl	fflush
	b	.L2
.L12:
	.align	2
.L11:
	.word	inferior_ptid
	.word	null_ptid
	.word	procfs_ops
	.word	.LC0
	.word	.LC1
	.word	stdout
	.size	procfs_detach, .-procfs_detach
	.comm	stdout,4,4
	.comm	procfs_ops,4,4
	.comm	null_ptid,4,4
	.comm	inferior_ptid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
