	.file	"827202.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.type	do_child, @function
do_child:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	_exit@PLT
	.cfi_endproc
.LFE6:
	.size	do_child, .-do_child
	.type	pidfd_clone, @function
pidfd_clone:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	DWORD PTR -8228[rbp], edi
	mov	QWORD PTR -8240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8216[rbp], 1024
	lea	rdx, -8208[rbp]
	mov	eax, 0
	mov	ecx, 1024
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR -8228[rbp]
	or	eax, 17
	mov	edx, eax
	mov	rax, QWORD PTR -8216[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, -8208[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR -8240[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, do_child[rip]
	mov	eax, 0
	call	clone@PLT
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pidfd_clone, .-pidfd_clone
	.type	sys_pidfd_send_signal, @function
sys_pidfd_send_signal:
.LFB8:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	DWORD PTR -20[rbp], ecx
	mov	esi, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, esi
	mov	esi, eax
	mov	edi, 424
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sys_pidfd_send_signal, .-sys_pidfd_send_signal
	.section	.rodata
.LC1:
	.string	"/proc/%d"
.LC2:
	.string	"Failed to open %s\n"
.LC3:
	.string	"Failed to signal process\n"
	.text
	.type	pidfd_metadata_fd, @function
pidfd_metadata_fd:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	lea	rdx, .LC1[rip]
	mov	esi, 100
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -112[rbp]
	mov	esi, 589824
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	jns	.L8
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, -1
	jmp	.L12
.L8:
	mov	eax, DWORD PTR -136[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	sys_pidfd_send_signal
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L15
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -120[rbp], -1
	jmp	.L10
.L14:
	nop
	jmp	.L10
.L15:
	nop
.L10:
	mov	eax, DWORD PTR -120[rbp]
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	pidfd_metadata_fd, .-pidfd_metadata_fd
	.section	.rodata
.LC4:
	.string	"CLONE_PIDFD"
	.align 8
.LC5:
	.string	"CLONE_PIDFD is not supported by the kernel"
.LC6:
	.string	"status"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	DWORD PTR -4148[rbp], edi
	mov	QWORD PTR -4160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4140[rbp], -1
	mov	DWORD PTR -4136[rbp], 1
	mov	QWORD PTR -4112[rbp], 0
	mov	QWORD PTR -4104[rbp], 0
	lea	rdx, -4096[rbp]
	mov	eax, 0
	mov	ecx, 510
	mov	rdi, rdx
	rep stosq
	lea	rax, -4140[rbp]
	mov	rsi, rax
	mov	edi, 4096
	call	pidfd_clone
	mov	DWORD PTR -4132[rbp], eax
	cmp	DWORD PTR -4132[rbp], 0
	jns	.L17
	mov	eax, DWORD PTR -4136[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	mov	eax, 0
	call	err@PLT
.L17:
	mov	eax, DWORD PTR -4140[rbp]
	cmp	eax, -1
	jne	.L18
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	warnx@PLT
	jmp	.L19
.L18:
	mov	edx, DWORD PTR -4140[rbp]
	mov	eax, DWORD PTR -4132[rbp]
	mov	esi, edx
	mov	edi, eax
	call	pidfd_metadata_fd
	mov	DWORD PTR -4128[rbp], eax
	mov	eax, DWORD PTR -4140[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -4128[rbp], 0
	js	.L24
	mov	eax, DWORD PTR -4128[rbp]
	mov	edx, 524288
	lea	rsi, .LC6[rip]
	mov	edi, eax
	mov	eax, 0
	call	openat@PLT
	mov	DWORD PTR -4124[rbp], eax
	mov	eax, DWORD PTR -4128[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -4124[rbp], 0
	js	.L25
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4124[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jle	.L22
	mov	rdx, QWORD PTR -4120[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	QWORD PTR -4120[rbp], rax
.L22:
	mov	eax, DWORD PTR -4124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -4136[rbp], 0
	jmp	.L19
.L24:
	nop
	jmp	.L19
.L25:
	nop
.L19:
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -4136[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"827202.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_child, %function
do_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2
	bl	printf
	mov	r0, #0
	bl	_exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	do_child, .-do_child
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pidfd_clone, %function
pidfd_clone:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #24
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-16]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1024
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	lsl	r2, r3, #2
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	orr	r2, r3, #17
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, .L7+4
	bl	clone
	mov	r3, r0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	do_child
	.size	pidfd_clone, .-pidfd_clone
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_pidfd_send_signal, %function
sys_pidfd_send_signal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #424
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sys_pidfd_send_signal, .-sys_pidfd_send_signal
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/proc/%d\000"
	.align	2
.LC3:
	.ascii	"Failed to open %s\012\000"
	.align	2
.LC4:
	.ascii	"Failed to signal process\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pidfd_metadata_fd, %function
pidfd_metadata_fd:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #108
	ldr	r3, [fp, #-120]
	ldr	r2, .L20+4
	mov	r1, #100
	bl	snprintf
	sub	r3, fp, #108
	mov	r1, #540672
	mov	r0, r3
	bl	open
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L12
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L20+8
	bl	warn
	mvn	r3, #0
	b	.L16
.L12:
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	sys_pidfd_send_signal
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L19
	ldr	r0, .L20+12
	bl	warn
	ldr	r0, [fp, #-116]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-116]
	b	.L14
.L18:
	nop
	b	.L14
.L19:
	nop
.L14:
	ldr	r3, [fp, #-116]
.L16:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	pidfd_metadata_fd, .-pidfd_metadata_fd
	.section	.rodata
	.align	2
.LC6:
	.ascii	"CLONE_PIDFD\000"
	.align	2
.LC7:
	.ascii	"CLONE_PIDFD is not supported by the kernel\000"
	.align	2
.LC8:
	.ascii	"status\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L32+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r1, r3
	mov	r0, #4096
	bl	pidfd_clone
	str	r0, [r4, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bge	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L32+8
	ldr	r0, [r3, #-24]
	bl	err
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L32+12
	bl	warnx
	b	.L25
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-20]
	bl	pidfd_metadata_fd
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	mov	r0, r3
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	blt	.L30
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #524288
	ldr	r1, .L32+16
	ldr	r0, [r3, #-16]
	bl	openat
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	blt	.L31
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	ble	.L28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	str	r0, [r4, #-8]
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	b	.L25
.L30:
	nop
	b	.L25
.L31:
	nop
.L25:
	mov	r0, #0
	bl	wait
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	exit
.L33:
	.align	2
.L32:
	.word	.LC9
	.word	4092
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
