	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_event_config_new
	movq	%rax, %rbx
	movq	_EV_FEATURE_EARLY_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_event_config_require_features
	movq	%rbx, %rdi
	callq	_event_base_new_with_config
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_event_config_free
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_evutil_socketpair
	movl	$1, %r15d
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movl	-48(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_send
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movl	-48(%rbp), %edi
	movq	_EVUTIL_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	movl	-44(%rbp), %r15d
	movq	_EV_CLOSED@GOTPCREL(%rip), %rax
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_closed_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_event_self_cbarg
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_event_new
	movq	_timeout@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_event_add
	movq	%r14, %rdi
	callq	_event_base_dispatch
	movq	%r14, %rdi
	callq	_event_base_free
	xorl	%r15d, %r15d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test string"

	.comm	_EV_FEATURE_EARLY_CLOSE,4,2     ## @EV_FEATURE_EARLY_CLOSE
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_EVUTIL_SHUT_WR,4,2             ## @EVUTIL_SHUT_WR
	.comm	_EV_CLOSED,4,2                  ## @EV_CLOSED
	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.comm	_closed_cb,4,2                  ## @closed_cb
	.comm	_timeout,4,2                    ## @timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_event_config_new
	mov	x20, x0
Lloh3:
	adrp	x8, _EV_FEATURE_EARLY_CLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_FEATURE_EARLY_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_event_config_require_features
	mov	x0, x20
	bl	_event_base_new_with_config
	mov	x19, x0
	mov	x0, x20
	bl	_event_config_free
	cbz	x19, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x3, sp
	mov	w2, #0
	bl	_evutil_socketpair
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	w0, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #12
	mov	w3, #0
	bl	_send
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	w0, [sp]
Lloh14:
	adrp	x8, _EVUTIL_SHUT_WR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVUTIL_SHUT_WR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_shutdown
	ldr	w20, [sp, #4]
Lloh17:
	adrp	x8, _EV_CLOSED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_CLOSED@GOTPAGEOFF]
Lloh19:
	adrp	x9, _EV_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EV_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh23:
	adrp	x8, _closed_cb@GOTPAGE
Lloh24:
	ldr	x8, [x8, _closed_cb@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	bl	_event_self_cbarg
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_event_new
Lloh26:
	adrp	x1, _timeout@GOTPAGE
Lloh27:
	ldr	x1, [x1, _timeout@GOTPAGEOFF]
	bl	_event_add
	mov	x0, x19
	bl	_event_base_dispatch
	mov	x0, x19
	bl	_event_base_free
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldr	x8, [sp, #8]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test string"

	.comm	_EV_FEATURE_EARLY_CLOSE,4,2     ; @EV_FEATURE_EARLY_CLOSE
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_EVUTIL_SHUT_WR,4,2             ; @EVUTIL_SHUT_WR
	.comm	_EV_CLOSED,4,2                  ; @EV_CLOSED
	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.comm	_closed_cb,4,2                  ; @closed_cb
	.comm	_timeout,4,2                    ; @timeout
.subsections_via_symbols
