	.file	"extr_windows_debug.c___build_debug_pid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__build_debug_pid, @function
__build_debug_pid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	jne	.L2
	mov	esi, DWORD PTR FALSE[rip]
	mov	edi, DWORD PTR PROCESS_QUERY_INFORMATION[rip]
	mov	edx, r12d
	xor	r13d, r13d
	or	edi, DWORD PTR PROCESS_VM_READ[rip]
	call	w32_OpenProcess@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, rax
	mov	r13d, -1
	call	__resolve_path@PLT
	mov	edi, r12d
	lea	rsi, 4[rsp]
	mov	rbp, rax
	call	ProcessIdToSessionId@PLT
	mov	rdi, r15
	test	rax, rax
	cmovne	r13d, DWORD PTR 4[rsp]
	call	CloseHandle@PLT
	test	rbp, rbp
	jne	.L7
.L15:
	mov	rdi, r14
	call	r_sys_conv_win_to_utf8@PLT
	mov	rbp, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rsi
	xor	esi, esi
	mov	r13d, -1
	call	__resolve_path@PLT
	lea	rsi, 4[rsp]
	mov	edi, r12d
	mov	rbp, rax
	call	ProcessIdToSessionId@PLT
	test	rax, rax
	cmovne	r13d, DWORD PTR 4[rsp]
	test	rbp, rbp
	je	.L15
.L7:
	mov	edx, r13d
	mov	rdi, rbp
	xor	r8d, r8d
	mov	ecx, 115
	mov	esi, r12d
	call	r_debug_pid_new@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__build_debug_pid, .-__build_debug_pid
	.comm	PROCESS_VM_READ,4,4
	.comm	PROCESS_QUERY_INFORMATION,4,4
	.comm	FALSE,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_windows_debug.c___build_debug_pid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__build_debug_pid, %function
__build_debug_pid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	subs	r5, r1, #0
	mov	r6, r0
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L2
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, .L16+12
	orr	r0, r0, r2
	ldr	r1, [r3]
	mov	r2, r6
	bl	w32_OpenProcess
	subs	r4, r0, #0
	beq	.L1
	mov	r1, r5
	bl	__resolve_path
	add	r1, sp, #8
	mov	r5, r0
	mov	r0, r6
	bl	ProcessIdToSessionId
	cmp	r0, #0
	mov	r0, r4
	mvneq	r7, #0
	ldrne	r7, [sp, #8]
	bl	CloseHandle
	cmp	r5, #0
	bne	.L7
.L14:
	mov	r0, r8
	bl	r_sys_conv_win_to_utf8
	mov	r5, r0
	b	.L7
.L2:
	mov	r0, r5
	mov	r1, #0
	bl	__resolve_path
	add	r1, sp, #8
	mov	r5, r0
	mov	r0, r6
	bl	ProcessIdToSessionId
	cmp	r0, #0
	mvneq	r7, #0
	ldrne	r7, [sp, #8]
	cmp	r5, #0
	beq	.L14
.L7:
	mov	r3, #0
	mov	r2, r7
	str	r3, [sp]
	mov	r1, r6
	mov	r3, #115
	mov	r0, r5
	bl	r_debug_pid_new
	mov	r4, r0
	mov	r0, r5
	bl	free
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	PROCESS_QUERY_INFORMATION
	.word	PROCESS_VM_READ
	.word	FALSE
	.size	__build_debug_pid, .-__build_debug_pid
	.comm	PROCESS_VM_READ,4,4
	.comm	PROCESS_QUERY_INFORMATION,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
