	.file	"extr_om.c_test_type_mismatch.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"can't create event: %x\n"
.LC1:
	.string	"expected 0xc0000024, got %x\n"
	.text
	.p2align 4
	.type	test_type_mismatch, @function
test_type_mismatch:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 88
	.cfi_def_cfa_offset 96
	xor	r8d, r8d
	xor	ecx, ecx
	xor	esi, esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	lea	rdi, 12[rsp]
	mov	DWORD PTR 16[rsp], 48
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	call	pNtCreateEvent@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	rax, rax
	mov	rdx, rax
	sete	dil
	call	ok@PLT
	mov	edi, DWORD PTR 12[rsp]
	xor	edx, edx
	mov	esi, 30
	call	pNtReleaseSemaphore@PLT
	xor	edi, edi
	cmp	QWORD PTR STATUS_OBJECT_TYPE_MISMATCH[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	edi, DWORD PTR 12[rsp]
	call	pNtClose@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_type_mismatch, .-test_type_mismatch
	.comm	STATUS_OBJECT_TYPE_MISMATCH,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_om.c_test_type_mismatch.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't create event: %x\012\000"
	.align	2
.LC1:
	.ascii	"expected 0xc0000024, got %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_type_mismatch, %function
test_type_mismatch:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, #0
	mov	ip, #24
	sub	sp, sp, #44
	ldr	lr, .L6
	mov	r3, r4
	mov	r1, r4
	str	r4, [sp]
	add	r2, sp, #12
	add	r0, sp, #8
	ldr	lr, [lr]
	str	lr, [sp, #36]
	mov	lr,#0
	str	ip, [sp, #12]
	str	r4, [sp, #32]
	str	r4, [sp, #28]
	str	r4, [sp, #24]
	str	r4, [sp, #20]
	str	r4, [sp, #16]
	bl	pNtCreateEvent
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L6+4
	lsr	r0, r0, #5
	bl	ok
	mov	r2, r4
	mov	r1, #30
	ldr	r0, [sp, #8]
	bl	pNtReleaseSemaphore
	mov	r2, r0
	ldr	r3, .L6+8
	ldr	r1, .L6+12
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #8]
	bl	pNtClose
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC2
	.word	.LC0
	.word	STATUS_OBJECT_TYPE_MISMATCH
	.word	.LC1
	.size	test_type_mismatch, .-test_type_mismatch
	.comm	STATUS_OBJECT_TYPE_MISMATCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
