	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	callq	_evutil_socketpair
	movl	$1, %ebx
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	-24(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_send
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	-24(%rbp), %edi
	movq	_EVUTIL_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	xorl	%eax, %eax
	callq	_event_init
	movl	-20(%rbp), %esi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_read_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %r8
	callq	_event_set
	movq	_timeout@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_event_add
	xorl	%eax, %eax
	callq	_event_dispatch
	movq	_test_okay@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test string"

	.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_READ,4,2                    ## @EV_READ
	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.comm	_read_cb,4,2                    ## @read_cb
	.comm	_timeout,4,2                    ## @timeout
	.comm	_test_okay,4,2                  ## @test_okay
.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, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #0
	bl	_evutil_socketpair
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [sp, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #12
	mov	w3, #0
	bl	_send
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [sp, #16]
Lloh11:
	adrp	x8, _EVUTIL_SHUT_WR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVUTIL_SHUT_WR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_shutdown
	bl	_event_init
	ldr	w1, [sp, #20]
Lloh14:
	adrp	x8, _EV_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh16:
	adrp	x9, _EV_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EV_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh20:
	adrp	x8, _read_cb@GOTPAGE
Lloh21:
	ldr	x8, [x8, _read_cb@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	add	x0, sp, #8
	add	x4, sp, #8
	bl	_event_set
Lloh23:
	adrp	x1, _timeout@GOTPAGE
Lloh24:
	ldr	x1, [x1, _timeout@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_event_add
	bl	_event_dispatch
Lloh25:
	adrp	x8, _test_okay@GOTPAGE
Lloh26:
	ldr	x8, [x8, _test_okay@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldur	x8, [x29, #-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_6
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test string"

	.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_READ,4,2                    ; @EV_READ
	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.comm	_read_cb,4,2                    ; @read_cb
	.comm	_timeout,4,2                    ; @timeout
	.comm	_test_okay,4,2                  ; @test_okay
.subsections_via_symbols
