	.file	"extr_kqueue.c_test_evfilt_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EVFILT_WRITE, EV_ADD"
.LC1:
	.string	"kevent"
.LC2:
	.string	"EVFILE_WRITE, EV_ADD"
.LC3:
	.string	"EVFILT_WRITE"
.LC4:
	.string	"EVFILE_WRITE"
.LC5:
	.string	"empty socket unwritable"
.LC6:
	.string	"write"
.LC7:
	.string	"write length"
.LC8:
	.string	"full socket writable"
.LC9:
	.string	"EVFILT_WRITE, EV_DELETE"
	.text
	.p2align 4
	.type	test_evfilt_write, @function
test_evfilt_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r9d, r9d
	xor	r8d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR EV_ADD[rip]
	mov	edx, DWORD PTR EVFILT_WRITE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 12[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	esi, DWORD PTR [rsi]
	push	0
	.cfi_def_cfa_offset 128
	mov	rdi, r13
	call	EV_SET@PLT
	mov	rsi, r13
	mov	edi, r12d
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, 1
	call	kevent@PLT
	pop	rsi
	.cfi_def_cfa_offset 120
	pop	rdi
	.cfi_def_cfa_offset 112
	cmp	eax, -1
	je	.L26
.L2:
	lea	rdi, .LC2[rip]
	lea	r15, 16[rsp]
	call	OK@PLT
	mov	r9, r15
	mov	r8d, 1
	xor	edx, edx
	mov	rcx, r13
	xor	esi, esi
	mov	edi, r12d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	kevent@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L27
	lea	rdi, .LC4[rip]
	call	OK@PLT
	cmp	ebp, 1
	jne	.L4
.L5:
	lea	rdi, .LC5[rip]
	lea	rbp, 11[rsp]
	call	OK@PLT
	mov	BYTE PTR 11[rsp], 97
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [rbx]
	mov	edx, 1
	mov	rsi, rbp
	call	write@PLT
	cmp	eax, 1
	je	.L6
	cmp	eax, -1
	je	.L28
	lea	rdi, .LC6[rip]
	call	OK@PLT
	lea	rcx, .LC7[rip]
	xor	edx, edx
	mov	rsi, r14
	lea	rdi, .LC6[rip]
	call	fail_assertion@PLT
.L13:
	lea	rdi, .LC7[rip]
	call	OK@PLT
	mov	r9, r15
	mov	r8d, 1
	xor	edx, edx
	mov	rcx, r13
	xor	esi, esi
	mov	edi, r12d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	kevent@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L29
	lea	rdi, .LC3[rip]
	call	OK@PLT
	test	ebp, ebp
	jne	.L10
.L11:
	lea	rdi, .LC8[rip]
	call	OK@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	esi, DWORD PTR [rbx]
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR EV_DELETE[rip]
	xor	r8d, r8d
	mov	rdi, r13
	mov	edx, DWORD PTR EVFILT_WRITE[rip]
	call	EV_SET@PLT
	xor	ecx, ecx
	mov	edx, 1
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rsi, r13
	mov	edi, r12d
	call	kevent@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	cmp	eax, -1
	je	.L30
.L12:
	lea	rdi, .LC9[rip]
	call	OK@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	rdi, QWORD PTR errno[rip]
	lea	rcx, .LC3[rip]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	fail@PLT
	lea	rdi, .LC4[rip]
	call	OK@PLT
.L4:
	lea	rcx, .LC5[rip]
	lea	rdx, .LC3[rip]
	mov	rsi, r14
	lea	rdi, .LC1[rip]
	call	fail_assertion@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR errno[rip]
	cmp	rdi, QWORD PTR EAGAIN[rip]
	je	.L8
	cmp	rdi, QWORD PTR ENOBUFS[rip]
	jne	.L32
.L8:
	lea	rdi, .LC6[rip]
	call	OK@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, QWORD PTR errno[rip]
	lea	rcx, .LC3[rip]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	fail@PLT
	lea	rdi, .LC3[rip]
	call	OK@PLT
.L10:
	lea	rcx, .LC8[rip]
	lea	rdx, .LC3[rip]
	mov	rsi, r14
	lea	rdi, .LC1[rip]
	call	fail_assertion@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR errno[rip]
	lea	rcx, .LC9[rip]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	fail@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR errno[rip]
	lea	rcx, .LC0[rip]
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	fail@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	xor	ecx, ecx
	mov	rdx, r14
	lea	rsi, .LC6[rip]
	call	fail@PLT
	lea	rdi, .LC6[rip]
	call	OK@PLT
	jmp	.L13
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_evfilt_write, .-test_evfilt_write
	.comm	errno,8,8
	.comm	EV_DELETE,4,4
	.comm	EV_ADD,4,4
	.comm	EVFILT_WRITE,4,4
	.comm	ENOBUFS,8,8
	.comm	EAGAIN,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_kqueue.c_test_evfilt_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EVFILT_WRITE, EV_ADD\000"
	.align	2
.LC1:
	.ascii	"kevent\000"
	.align	2
.LC2:
	.ascii	"EVFILE_WRITE, EV_ADD\000"
	.align	2
.LC3:
	.ascii	"EVFILT_WRITE\000"
	.align	2
.LC4:
	.ascii	"EVFILE_WRITE\000"
	.align	2
.LC5:
	.ascii	"empty socket unwritable\000"
	.align	2
.LC6:
	.ascii	"write\000"
	.align	2
.LC7:
	.ascii	"write length\000"
	.align	2
.LC8:
	.ascii	"full socket writable\000"
	.align	2
.LC9:
	.ascii	"EVFILT_WRITE, EV_DELETE\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_evfilt_write, %function
test_evfilt_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, #0
	mov	r5, r0
	sub	sp, sp, #44
	ldr	r3, .L33
	ldr	r8, .L33+4
	ldr	ip, .L33+8
	mov	r4, r1
	ldr	r1, [r1]
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	str	r6, [sp]
	ldr	r3, [r3]
	mov	r7, r2
	add	r0, sp, #24
	ldr	r2, [r8]
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	bl	EV_SET
	mov	r3, r6
	mov	r0, r5
	mov	r2, #1
	str	r6, [sp, #4]
	str	r6, [sp]
	add	r1, sp, #24
	bl	kevent
	cmn	r0, #1
	beq	.L26
.L2:
	ldr	r0, .L33+12
	bl	OK
	mov	r2, #0
	mov	r3, #1
	add	r9, sp, #28
	stm	sp, {r3, r9}
	mov	r1, r2
	mov	r0, r5
	add	r3, sp, #24
	str	r2, [sp, #32]
	str	r2, [sp, #28]
	bl	kevent
	cmn	r0, #1
	mov	r6, r0
	beq	.L27
	ldr	r0, .L33+16
	bl	OK
	cmp	r6, #1
	bne	.L4
.L5:
	ldr	r0, .L33+20
	bl	OK
	mov	r3, #97
	strb	r3, [sp, #23]
.L6:
	mov	r2, #1
	ldr	r0, [r4]
	add	r1, sp, #23
	bl	write
	cmp	r0, #1
	beq	.L6
	cmn	r0, #1
	beq	.L28
	ldr	r0, .L33+24
	bl	OK
	mov	r2, #0
	mov	r1, r7
	ldr	r3, .L33+28
	ldr	r0, .L33+24
	bl	fail_assertion
.L13:
	ldr	r0, .L33+28
	bl	OK
	mov	r2, #0
	mov	r3, #1
	mov	r1, r2
	str	r3, [sp]
	mov	r0, r5
	str	r9, [sp, #4]
	add	r3, sp, #24
	str	r2, [sp, #32]
	str	r2, [sp, #28]
	bl	kevent
	cmn	r0, #1
	mov	r6, r0
	beq	.L29
	ldr	r0, .L33+32
	bl	OK
	cmp	r6, #0
	bne	.L10
.L11:
	mov	r6, #0
	ldr	r0, .L33+36
	bl	OK
	ldr	r3, .L33+40
	ldr	r1, [r4]
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	str	r6, [sp]
	ldr	r2, [r8]
	ldr	r3, [r3]
	add	r0, sp, #24
	bl	EV_SET
	mov	r3, r6
	mov	r0, r5
	mov	r2, #1
	str	r6, [sp, #4]
	str	r6, [sp]
	add	r1, sp, #24
	bl	kevent
	cmn	r0, #1
	beq	.L30
.L12:
	ldr	r0, .L33+44
	bl	OK
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L27:
	ldr	r2, .L33+48
	ldr	r3, .L33+32
	ldr	r0, [r2]
	ldr	r1, .L33+52
	mov	r2, r7
	bl	fail
	ldr	r0, .L33+16
	bl	OK
.L4:
	mov	r1, r7
	ldr	r3, .L33+20
	ldr	r2, .L33+32
	ldr	r0, .L33+52
	bl	fail_assertion
	b	.L5
.L28:
	ldr	r2, .L33+48
	ldr	r3, .L33+56
	ldr	r0, [r2]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	ldr	r3, .L33+60
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L32
.L8:
	ldr	r0, .L33+24
	bl	OK
	b	.L13
.L29:
	ldr	r2, .L33+48
	ldr	r3, .L33+32
	ldr	r0, [r2]
	ldr	r1, .L33+52
	mov	r2, r7
	bl	fail
	ldr	r0, .L33+32
	bl	OK
.L10:
	mov	r1, r7
	ldr	r3, .L33+36
	ldr	r2, .L33+32
	ldr	r0, .L33+52
	bl	fail_assertion
	b	.L11
.L30:
	ldr	r3, .L33+48
	mov	r2, r7
	ldr	r0, [r3]
	ldr	r1, .L33+52
	ldr	r3, .L33+44
	bl	fail
	b	.L12
.L26:
	ldr	r2, .L33+48
	ldr	r3, .L33+64
	ldr	r0, [r2]
	ldr	r1, .L33+52
	mov	r2, r7
	bl	fail
	b	.L2
.L32:
	mov	r3, #0
	mov	r2, r7
	ldr	r1, .L33+24
	bl	fail
	ldr	r0, .L33+24
	bl	OK
	b	.L13
.L31:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	EV_ADD
	.word	EVFILT_WRITE
	.word	.LC10
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC3
	.word	.LC8
	.word	EV_DELETE
	.word	.LC9
	.word	errno
	.word	.LC1
	.word	EAGAIN
	.word	ENOBUFS
	.word	.LC0
	.size	test_evfilt_write, .-test_evfilt_write
	.comm	errno,4,4
	.comm	EV_DELETE,4,4
	.comm	EV_ADD,4,4
	.comm	EVFILT_WRITE,4,4
	.comm	ENOBUFS,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
