	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eventcb
_eventcb:                               ## @eventcb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movslq	%esi, %rdi
	callq	_TT_BLATHER
	movq	_BEV_EVENT_CONNECTED@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_n_connected@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r14, %rdi
	callq	_bufferevent_openssl_get_ssl
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tt_assert
	movq	%rbx, %rdi
	callq	_SSL_get_peer_certificate
	movq	_REGRESS_OPENSSL_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%dl
	sete	%sil
	testl	%ecx, %ecx
	cmovel	%edx, %esi
	movzbl	%sil, %edi
	callq	_tt_assert
	movq	_stop_when_connected@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_pending_connect_events@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_4
## %bb.3:
	movq	_exit_base@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_event_base_loopexit
LBB0_4:
	movq	_REGRESS_OPENSSL_CLIENT_WRITE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.5:
	movq	_REGRESS_OPENSSL_CLIENT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.6:
	movq	%r14, %rdi
	callq	_bufferevent_get_output
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evbuffer_add_printf            ## TAILCALL
LBB0_7:
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_14
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_TT_BLATHER
	movq	_got_close@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	callq	_TT_BLATHER
	movq	_got_error@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_16:
	movq	_BEV_EVENT_TIMEOUT@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	callq	_TT_BLATHER
	movq	_got_timeout@GOTPCREL(%rip), %rax
LBB0_9:
	incl	(%rax)
	movq	_REGRESS_OPENSSL_FD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_REGRESS_OPENSSL_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%r15d, %esi
	movq	%r14, %rdi
	callq	_bufferevent_openssl_check_fd
LBB0_11:
	movq	_REGRESS_OPENSSL_FREED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_bufferevent_openssl_check_freed
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_free               ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_CONNECTED,2,1        ## @BEV_EVENT_CONNECTED
	.comm	_n_connected,4,2                ## @n_connected
	.comm	_REGRESS_OPENSSL_SERVER,4,2     ## @REGRESS_OPENSSL_SERVER
	.comm	_stop_when_connected,8,3        ## @stop_when_connected
	.comm	_pending_connect_events,8,3     ## @pending_connect_events
	.comm	_exit_base,4,2                  ## @exit_base
	.comm	_REGRESS_OPENSSL_CLIENT_WRITE,4,2 ## @REGRESS_OPENSSL_CLIENT_WRITE
	.comm	_REGRESS_OPENSSL_CLIENT,4,2     ## @REGRESS_OPENSSL_CLIENT
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"1\n"

	.comm	_BEV_EVENT_EOF,2,1              ## @BEV_EVENT_EOF
L_.str.2:                               ## @.str.2
	.asciz	"Got a good EOF"

	.comm	_got_close,4,2                  ## @got_close
	.comm	_REGRESS_OPENSSL_FD,4,2         ## @REGRESS_OPENSSL_FD
	.comm	_REGRESS_OPENSSL_FILTER,4,2     ## @REGRESS_OPENSSL_FILTER
	.comm	_REGRESS_OPENSSL_FREED,4,2      ## @REGRESS_OPENSSL_FREED
	.comm	_BEV_EVENT_ERROR,2,1            ## @BEV_EVENT_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Got an error."

	.comm	_got_error,4,2                  ## @got_error
	.comm	_BEV_EVENT_TIMEOUT,2,1          ## @BEV_EVENT_TIMEOUT
L_.str.4:                               ## @.str.4
	.asciz	"Got timeout."

	.comm	_got_timeout,4,2                ## @got_timeout
	.no_dead_strip	_eventcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eventcb
_eventcb:                               ; @eventcb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	sxtw	x0, w21
	bl	_TT_BLATHER
Lloh0:
	adrp	x8, _BEV_EVENT_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_EVENT_CONNECTED@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w21
	tst	w8, #0xffff
	b.eq	LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _n_connected@GOTPAGE
Lloh3:
	ldr	x8, [x8, _n_connected@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_bufferevent_openssl_get_ssl
	mov	x21, x0
	bl	_tt_assert
	mov	x0, x21
	bl	_SSL_get_peer_certificate
Lloh4:
	adrp	x8, _REGRESS_OPENSSL_SERVER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REGRESS_OPENSSL_SERVER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x0, #0
	cset	w9, ne
	cset	w10, eq
	tst	w8, w20
	csel	w0, w9, w10, eq
	bl	_tt_assert
Lloh7:
	adrp	x8, _stop_when_connected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stop_when_connected@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _pending_connect_events@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pending_connect_events@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _exit_base@GOTPAGE
Lloh13:
	ldr	x8, [x8, _exit_base@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_event_base_loopexit
LBB0_4:
Lloh15:
	adrp	x8, _REGRESS_OPENSSL_CLIENT_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REGRESS_OPENSSL_CLIENT_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.5:
Lloh18:
	adrp	x8, _REGRESS_OPENSSL_CLIENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REGRESS_OPENSSL_CLIENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.6:
	mov	x0, x19
	bl	_bufferevent_get_output
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_evbuffer_add_printf
LBB0_7:
Lloh23:
	adrp	x8, _BEV_EVENT_EOF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BEV_EVENT_EOF@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_9
; %bb.8:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TT_BLATHER
Lloh27:
	adrp	x8, _got_close@GOTPAGE
Lloh28:
	ldr	x8, [x8, _got_close@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh29:
	adrp	x8, _BEV_EVENT_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BEV_EVENT_ERROR@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_11
; %bb.10:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TT_BLATHER
Lloh33:
	adrp	x8, _got_error@GOTPAGE
Lloh34:
	ldr	x8, [x8, _got_error@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh35:
	adrp	x8, _BEV_EVENT_TIMEOUT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BEV_EVENT_TIMEOUT@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_18
; %bb.12:
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TT_BLATHER
Lloh39:
	adrp	x8, _got_timeout@GOTPAGE
Lloh40:
	ldr	x8, [x8, _got_timeout@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh41:
	adrp	x8, _REGRESS_OPENSSL_FD@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REGRESS_OPENSSL_FD@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
Lloh44:
	adrp	x8, _REGRESS_OPENSSL_FILTER@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REGRESS_OPENSSL_FILTER@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	and	w1, w8, w20
	mov	x0, x19
	bl	_bufferevent_openssl_check_fd
LBB0_15:
Lloh47:
	adrp	x8, _REGRESS_OPENSSL_FREED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _REGRESS_OPENSSL_FREED@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_bufferevent_openssl_check_freed
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bufferevent_free
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_CONNECTED,2,1        ; @BEV_EVENT_CONNECTED
	.comm	_n_connected,4,2                ; @n_connected
	.comm	_REGRESS_OPENSSL_SERVER,4,2     ; @REGRESS_OPENSSL_SERVER
	.comm	_stop_when_connected,8,3        ; @stop_when_connected
	.comm	_pending_connect_events,8,3     ; @pending_connect_events
	.comm	_exit_base,4,2                  ; @exit_base
	.comm	_REGRESS_OPENSSL_CLIENT_WRITE,4,2 ; @REGRESS_OPENSSL_CLIENT_WRITE
	.comm	_REGRESS_OPENSSL_CLIENT,4,2     ; @REGRESS_OPENSSL_CLIENT
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"1\n"

	.comm	_BEV_EVENT_EOF,2,1              ; @BEV_EVENT_EOF
l_.str.2:                               ; @.str.2
	.asciz	"Got a good EOF"

	.comm	_got_close,4,2                  ; @got_close
	.comm	_REGRESS_OPENSSL_FD,4,2         ; @REGRESS_OPENSSL_FD
	.comm	_REGRESS_OPENSSL_FILTER,4,2     ; @REGRESS_OPENSSL_FILTER
	.comm	_REGRESS_OPENSSL_FREED,4,2      ; @REGRESS_OPENSSL_FREED
	.comm	_BEV_EVENT_ERROR,2,1            ; @BEV_EVENT_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Got an error."

	.comm	_got_error,4,2                  ; @got_error
	.comm	_BEV_EVENT_TIMEOUT,2,1          ; @BEV_EVENT_TIMEOUT
l_.str.4:                               ; @.str.4
	.asciz	"Got timeout."

	.comm	_got_timeout,4,2                ; @got_timeout
	.no_dead_strip	_eventcb
.subsections_via_symbols
