	.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
	xorl	%eax, %eax
	callq	_event_base_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, -40(%rbp)
	movq	_listener_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LEV_OPT_REUSEABLE@GOTPCREL(%rip), %rax
	movq	_LEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$8, (%rsp)
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	movl	$-1, %r8d
	movq	%r14, %r9
	callq	_evconnlistener_new_bind
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_signal_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rbx, %rcx
	callq	_evsignal_new
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r12
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_event_add
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_event_base_dispatch
	movq	%r15, %rdi
	callq	_evconnlistener_free
	movq	%r12, %rdi
	callq	_event_free
	movq	%rbx, %rdi
	callq	_event_base_free
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_9
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not initialize libevent!\n"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_PORT,4,2                       ## @PORT
	.comm	_listener_cb,4,2                ## @listener_cb
	.comm	_LEV_OPT_REUSEABLE,4,2          ## @LEV_OPT_REUSEABLE
	.comm	_LEV_OPT_CLOSE_ON_FREE,4,2      ## @LEV_OPT_CLOSE_ON_FREE
L_.str.1:                               ## @.str.1
	.asciz	"Could not create a listener!\n"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_signal_cb,4,2                  ## @signal_cb
L_.str.2:                               ## @.str.2
	.asciz	"Could not create/add a signal event!\n"

L_str:                                  ## @str
	.asciz	"done"

.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
	bl	_event_base_new
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [sp, #8]
Lloh6:
	adrp	x8, _listener_cb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _listener_cb@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LEV_OPT_REUSEABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LEV_OPT_REUSEABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _LEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x5, sp, #8
	mov	x0, x19
	mov	x2, x19
	mov	w4, #-1
	mov	w6, #8
	bl	_evconnlistener_new_bind
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh15:
	adrp	x8, _SIGINT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _signal_cb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _signal_cb@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x19
	bl	_evsignal_new
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	x1, #0
	bl	_event_add
	tbnz	x0, #63, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_event_base_dispatch
	mov	x0, x20
	bl	_evconnlistener_free
	mov	x0, x21
	bl	_event_free
	mov	x0, x19
	bl	_event_base_free
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh28:
	adrp	x8, _stderr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	bl	_fprintf
	mov	w0, #1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not initialize libevent!\n"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_PORT,4,2                       ; @PORT
	.comm	_listener_cb,4,2                ; @listener_cb
	.comm	_LEV_OPT_REUSEABLE,4,2          ; @LEV_OPT_REUSEABLE
	.comm	_LEV_OPT_CLOSE_ON_FREE,4,2      ; @LEV_OPT_CLOSE_ON_FREE
l_.str.1:                               ; @.str.1
	.asciz	"Could not create a listener!\n"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_signal_cb,4,2                  ; @signal_cb
l_.str.2:                               ; @.str.2
	.asciz	"Could not create/add a signal event!\n"

l_str:                                  ; @str
	.asciz	"done"

.subsections_via_symbols
