	.file	"extr_syscall_nt.c_do_it.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[OK]\tThe syscall worked and flags are still set"
	.align 8
.LC1:
	.string	"[FAIL]\tThe syscall worked but flags were cleared (flags = 0x%lx but expected 0x%lx set)\n"
	.text
	.p2align 4
	.type	do_it, @function
do_it:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rdi
	call	get_eflags@PLT
	or	rax, r12
	mov	rdi, rax
	call	set_eflags@PLT
	mov	edi, DWORD PTR SYS_getpid[rip]
	call	syscall@PLT
	xor	eax, eax
	call	get_eflags@PLT
	mov	rsi, rax
	mov	rax, r12
	and	rax, rsi
	cmp	rax, r12
	je	.L5
	mov	rdx, r12
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	add	DWORD PTR nerrs[rip], 1
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	puts@PLT
	.cfi_endproc
.LFE0:
	.size	do_it, .-do_it
	.comm	nerrs,4,4
	.comm	SYS_getpid,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_syscall_nt.c_do_it.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[OK]\011The syscall worked and flags are still set\000"
	.align	2
.LC1:
	.ascii	"[FAIL]\011The syscall worked but flags were cleared"
	.ascii	" (flags = 0x%lx but expected 0x%lx set)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_it, %function
do_it:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	get_eflags
	orr	r0, r0, r4
	bl	set_eflags
	ldr	r3, .L6
	ldr	r0, [r3]
	bl	syscall
	bl	get_eflags
	bics	r3, r4, r0
	beq	.L5
	mov	r1, r0
	mov	r2, r4
	ldr	r0, .L6+4
	bl	printf
	ldr	r2, .L6+8
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	pop	{r4, pc}
.L5:
	ldr	r0, .L6+12
	pop	{r4, lr}
	b	puts
.L7:
	.align	2
.L6:
	.word	SYS_getpid
	.word	.LC1
	.word	nerrs
	.word	.LC0
	.size	do_it, .-do_it
	.comm	nerrs,4,4
	.comm	SYS_getpid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
