	.file	"extr_interlck.c_test_InterlockedExchange.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Expected 0 and 1, got %ld and %ld"
	.align 8
.LC1:
	.string	"Expected 1 and 2, got %ld and %ld"
	.align 8
.LC2:
	.string	"Expected 1 and -1, got %ld and %ld"
	.text
	.p2align 4
	.type	test_InterlockedExchange, @function
test_InterlockedExchange:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 1
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbp, 4[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	rdi, rbp
	call	InterlockedExchange@PLT
	mov	ecx, DWORD PTR 4[rsp]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	cmp	ecx, 1
	sete	al
	xor	edi, edi
	test	edx, edx
	sete	dil
	and	edi, eax
	call	ok@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], 1
	call	InterlockedExchange@PLT
	mov	ecx, DWORD PTR 4[rsp]
	lea	rsi, .LC1[rip]
	cmp	eax, 1
	mov	edx, eax
	sete	al
	xor	edi, edi
	cmp	ecx, 2
	sete	dil
	and	edi, eax
	call	ok@PLT
	mov	esi, -1
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], 1
	call	InterlockedExchange@PLT
	mov	ecx, DWORD PTR 4[rsp]
	lea	rsi, .LC2[rip]
	mov	edx, eax
	cmp	ecx, -1
	sete	al
	xor	edi, edi
	cmp	edx, 1
	sete	dil
	and	edi, eax
	call	ok@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_InterlockedExchange, .-test_InterlockedExchange
	.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_interlck.c_test_InterlockedExchange.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected 0 and 1, got %ld and %ld\000"
	.align	2
.LC1:
	.ascii	"Expected 1 and 2, got %ld and %ld\000"
	.align	2
.LC2:
	.ascii	"Expected 1 and -1, got %ld and %ld\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_InterlockedExchange, %function
test_InterlockedExchange:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	str	lr, [sp, #-4]!
	ldr	r2, .L18
	sub	sp, sp, #12
	mov	r0, sp
	mov	r1, #1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	InterlockedExchange
	subs	r2, r0, #0
	ldr	r3, [sp]
	bne	.L3
	cmp	r3, #1
	moveq	r0, r3
	beq	.L4
.L3:
	mov	r0, #0
.L4:
	ldr	r1, .L18+4
	bl	ok
	mov	r3, #1
	mov	r1, #2
	mov	r0, sp
	str	r3, [sp]
	bl	InterlockedExchange
	cmp	r0, #1
	mov	r2, r0
	ldr	r3, [sp]
	beq	.L5
.L6:
	mov	r0, #0
.L7:
	ldr	r1, .L18+8
	bl	ok
	mov	r3, #1
	mov	r0, sp
	mvn	r1, #0
	str	r3, [sp]
	bl	InterlockedExchange
	cmp	r0, #1
	mov	r2, r0
	ldr	r3, [sp]
	beq	.L8
.L9:
	mov	r0, #0
.L10:
	ldr	r1, .L18+12
	bl	ok
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L5:
	cmp	r3, #2
	bne	.L6
	b	.L7
.L8:
	cmn	r3, #1
	bne	.L9
	b	.L10
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	test_InterlockedExchange, .-test_InterlockedExchange
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
