	.file	"extr_regress.c_test_event_base_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"initial write"
.LC1:
	.string	"initial write shutdown"
.LC2:
	.string	"failed to create event base"
.LC3:
	.string	"initial event_add"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"unsuccessful exit from event loop"
	.text
	.p2align 4
	.type	test_event_base_new, @function
test_event_base_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR TEST1[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	strlen@PLT
	mov	esi, DWORD PTR TEST1[rip]
	lea	ebp, 1[rax]
	mov	rax, QWORD PTR [rbx]
	mov	edx, ebp
	mov	edi, DWORD PTR [rax]
	call	write@PLT
	test	eax, eax
	js	.L24
	cmp	ebp, eax
	jne	.L25
.L3:
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR SHUT_WR[rip]
	mov	edi, DWORD PTR [rax]
	call	shutdown@PLT
	test	rax, rax
	jne	.L26
	xor	eax, eax
	call	event_base_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L27
.L5:
	mov	rax, QWORD PTR [rbx]
	lea	r12, 12[rsp]
	mov	rsi, rbp
	lea	r9, 16[rsp]
	mov	r8d, DWORD PTR basic_read_cb[rip]
	mov	ecx, DWORD PTR EV_READ[rip]
	mov	rdi, r12
	mov	QWORD PTR 32[rsp], rbp
	mov	edx, DWORD PTR 4[rax]
	or	ecx, DWORD PTR EV_PERSIST[rip]
	mov	QWORD PTR 24[rsp], r12
	mov	QWORD PTR 16[rsp], 0
	call	event_assign@PLT
	xor	esi, esi
	mov	rdi, r12
	call	event_add@PLT
	test	rax, rax
	jne	.L28
.L6:
	xor	esi, esi
	mov	rdi, rbp
	call	event_base_loop@PLT
	test	rax, rax
	jne	.L29
.L7:
	test	rbp, rbp
	je	.L1
	mov	rdi, rbp
	call	event_base_free@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	movsx	rdi, ebp
	call	tt_abort_printf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC4[rip]
	call	tt_abort_msg@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC3[rip]
	call	tt_abort_perror@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC1[rip]
	call	tt_abort_perror@PLT
	xor	eax, eax
	call	event_base_new@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
.L27:
	lea	rdi, .LC2[rip]
	call	tt_abort_msg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC0[rip]
	call	tt_abort_perror@PLT
	jmp	.L3
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_event_base_new, .-test_event_base_new
	.comm	basic_read_cb,4,4
	.comm	TEST1,4,4
	.comm	SHUT_WR,4,4
	.comm	EV_READ,4,4
	.comm	EV_PERSIST,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_regress.c_test_event_base_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"initial write\000"
	.align	2
.LC1:
	.ascii	"initial write shutdown\000"
	.align	2
.LC2:
	.ascii	"failed to create event base\000"
	.align	2
.LC3:
	.ascii	"initial event_add\000"
	.align	2
.LC4:
	.ascii	"unsuccessful exit from event loop\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_event_base_new, %function
test_event_base_new:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L31
	ldr	r3, .L31+4
	sub	sp, sp, #32
	mov	r5, r0
	ldr	r0, [r6]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	strlen
	ldr	r3, [r5]
	add	r4, r0, #1
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, [r6]
	bl	write
	subs	r3, r0, #0
	blt	.L24
	cmp	r4, r3
	bne	.L25
.L3:
	ldr	r2, .L31+8
	ldr	r3, [r5]
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	shutdown
	cmp	r0, #0
	bne	.L26
	bl	event_base_new
	subs	r4, r0, #0
	beq	.L27
.L5:
	mov	r6, #0
	ldr	r0, .L31+12
	ldr	r1, .L31+16
	ldr	r3, .L31+20
	ldr	ip, [r0]
	ldr	r2, [r5]
	ldr	r0, [r1]
	ldr	r3, [r3]
	add	r5, sp, #12
	add	r1, sp, #16
	ldr	r2, [r2, #4]
	orr	r3, ip, r3
	str	r0, [sp]
	str	r1, [sp, #4]
	mov	r0, r5
	mov	r1, r4
	str	r4, [sp, #24]
	str	r6, [sp, #16]
	str	r5, [sp, #20]
	bl	event_assign
	mov	r1, r6
	mov	r0, r5
	bl	event_add
	cmp	r0, r6
	bne	.L28
.L6:
	mov	r1, #0
	mov	r0, r4
	bl	event_base_loop
	cmp	r0, #0
	bne	.L29
.L7:
	cmp	r4, #0
	beq	.L1
	mov	r0, r4
	bl	event_base_free
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L25:
	mov	r0, r4
	bl	tt_abort_printf
	b	.L3
.L29:
	ldr	r0, .L31+24
	bl	tt_abort_msg
	b	.L7
.L28:
	ldr	r0, .L31+28
	bl	tt_abort_perror
	b	.L6
.L26:
	ldr	r0, .L31+32
	bl	tt_abort_perror
	bl	event_base_new
	subs	r4, r0, #0
	bne	.L5
.L27:
	ldr	r0, .L31+36
	bl	tt_abort_msg
	b	.L5
.L24:
	ldr	r0, .L31+40
	bl	tt_abort_perror
	b	.L3
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	TEST1
	.word	.LC5
	.word	SHUT_WR
	.word	EV_READ
	.word	basic_read_cb
	.word	EV_PERSIST
	.word	.LC4
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	test_event_base_new, .-test_event_base_new
	.comm	basic_read_cb,4,4
	.comm	TEST1,4,4
	.comm	SHUT_WR,4,4
	.comm	EV_READ,4,4
	.comm	EV_PERSIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
