	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function conn_closed
_conn_closed:                           ## @conn_closed
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movb	$1, %r12b
	leal	-128(%rdx), %eax
	cmpl	$7, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_2:
	movl	16(%rbx), %edi
	callq	_SSL_get_shutdown
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%r12b
	je	LBB0_8
## %bb.3:
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_event_warnx
	jmp	LBB0_8
LBB0_4:
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_ERR_peek_error
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_put_error
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ERR_get_error
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	testb	%r12b, %r12b
	jne	LBB0_12
## %bb.10:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_12:
	movq	%rbx, %rdi
	callq	_stop_reading
	movq	%rbx, %rdi
	callq	_stop_writing
	orl	%r14d, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_run_eventcb_       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_BEV_EVENT_ERROR,4,2            ## @BEV_EVENT_ERROR
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ## @SSL_RECEIVED_SHUTDOWN
	.comm	_BEV_EVENT_EOF,4,2              ## @BEV_EVENT_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG: Unexpected OpenSSL error code %d"

	.no_dead_strip	_conn_closed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function conn_closed
_conn_closed:                           ; @conn_closed
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BEV_EVENT_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_EVENT_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	sub	w8, w2, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.1:
	mov	w22, #1
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_SSL_get_shutdown
Lloh5:
	adrp	x8, _SSL_RECEIVED_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w22, ne
Lloh8:
	adrp	x8, _BEV_EVENT_EOF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BEV_EVENT_EOF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	csel	w21, w21, w8, eq
	bl	_ERR_get_error
	cbnz	x0, LBB0_7
	b	LBB0_9
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_event_warnx
	b	LBB0_5
LBB0_4:
	cbz	w3, LBB0_12
LBB0_5:
	mov	w22, #1
LBB0_6:
	bl	_ERR_get_error
	cbz	x0, LBB0_9
LBB0_7:
	mov	x1, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_put_error
	bl	_ERR_get_error
	mov	x1, x0
	cbnz	x0, LBB0_8
LBB0_9:
	tbnz	w22, #0, LBB0_11
; %bb.10:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _BEV_EVENT_EOF@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BEV_EVENT_EOF@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w21, w21, w9, eq
LBB0_11:
	mov	x0, x19
	bl	_stop_reading
	mov	x0, x19
	bl	_stop_writing
	orr	w1, w21, w20
	mov	x0, x19
	mov	w2, #0
	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_run_eventcb_
LBB0_12:
	bl	_ERR_peek_error
	cmp	w0, #0
	cset	w22, ne
	bl	_ERR_get_error
	cbnz	x0, LBB0_7
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_BEV_EVENT_ERROR,4,2            ; @BEV_EVENT_ERROR
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ; @SSL_RECEIVED_SHUTDOWN
	.comm	_BEV_EVENT_EOF,4,2              ; @BEV_EVENT_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: Unexpected OpenSSL error code %d"

	.no_dead_strip	_conn_closed
.subsections_via_symbols
