	.file	"extr_pidfd_test.c_test_pidfd_send_signal_syscall_support.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/proc/self"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"pidfd_send_signal check for support"
	.align 8
.LC2:
	.string	"%s test: Failed to open process file descriptor\n"
	.align 8
.LC3:
	.string	"%s test: pidfd_send_signal() syscall not supported\n"
	.align 8
.LC4:
	.string	"%s test: Failed to send signal\n"
	.align 8
.LC5:
	.string	"%s test: pidfd_send_signal() syscall is supported. Tests can be executed\n"
	.text
	.p2align 4
	.type	test_pidfd_send_signal_syscall_support, @function
test_pidfd_send_signal_syscall_support:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR O_DIRECTORY[rip]
	lea	rdi, .LC0[rip]
	or	esi, DWORD PTR O_CLOEXEC[rip]
	call	open@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L7
.L2:
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	edi, ebp
	call	sys_pidfd_send_signal@PLT
	test	eax, eax
	js	.L8
.L3:
	mov	edi, ebp
	call	close@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	ksft_test_result_pass@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR ENOSYS[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L9
.L4:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	ksft_exit_fail_msg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	ksft_exit_fail_msg@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	ksft_exit_skip@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	test_pidfd_send_signal_syscall_support, .-test_pidfd_send_signal_syscall_support
	.comm	errno,8,8
	.comm	O_DIRECTORY,4,4
	.comm	O_CLOEXEC,4,4
	.comm	ENOSYS,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_pidfd_test.c_test_pidfd_send_signal_syscall_support.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/proc/self\000"
	.align	2
.LC1:
	.ascii	"pidfd_send_signal check for support\000"
	.align	2
.LC2:
	.ascii	"%s test: Failed to open process file descriptor\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"%s test: pidfd_send_signal() syscall not supported\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"%s test: Failed to send signal\012\000"
	.align	2
.LC5:
	.ascii	"%s test: pidfd_send_signal() syscall is supported. "
	.ascii	"Tests can be executed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_pidfd_send_signal_syscall_support, %function
test_pidfd_send_signal_syscall_support:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	push	{r4, lr}
	ldr	r0, .L10+8
	orr	r1, r1, r3
	bl	open
	subs	r4, r0, #0
	blt	.L7
.L2:
	mov	r3, #0
	mov	r0, r4
	mov	r2, r3
	mov	r1, r3
	bl	sys_pidfd_send_signal
	cmp	r0, #0
	blt	.L8
.L3:
	mov	r0, r4
	bl	close
	ldr	r1, .L10+12
	ldr	r0, .L10+16
	bl	ksft_test_result_pass
	mov	r0, #0
	pop	{r4, pc}
.L8:
	ldr	r2, .L10+20
	ldr	r3, .L10+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
.L4:
	ldr	r1, .L10+12
	ldr	r0, .L10+28
	bl	ksft_exit_fail_msg
	b	.L3
.L7:
	ldr	r1, .L10+12
	ldr	r0, .L10+32
	bl	ksft_exit_fail_msg
	b	.L2
.L9:
	ldr	r1, .L10+12
	ldr	r0, .L10+36
	bl	ksft_exit_skip
	b	.L4
.L11:
	.align	2
.L10:
	.word	O_DIRECTORY
	.word	O_CLOEXEC
	.word	.LC0
	.word	.LC1
	.word	.LC5
	.word	errno
	.word	ENOSYS
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.size	test_pidfd_send_signal_syscall_support, .-test_pidfd_send_signal_syscall_support
	.comm	errno,4,4
	.comm	O_DIRECTORY,4,4
	.comm	O_CLOEXEC,4,4
	.comm	ENOSYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
