	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accept_cb
_accept_cb:                             ## @accept_cb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_base@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %r15
	movq	_BEV_OPT_DEFER_CALLBACKS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%r15), %edx
	callq	_bufferevent_socket_new
	movq	%rax, %r14
	movq	_ssl_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_use_wrapper@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	callq	_SSL_new
	movl	(%rbx), %edi
	movq	_BUFFEREVENT_SSL_CONNECTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rbx
	movl	(%r13), %r8d
	movq	%r15, %r13
	orl	(%r15), %r8d
	movl	$-1, %esi
	movq	%rax, %rdx
	callq	_bufferevent_openssl_socket_new
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %edi
	movq	%r13, %rbx
	movl	(%r13), %edx
	movq	%r15, %r13
	orl	(%r15), %edx
	movl	$-1, %esi
	callq	_bufferevent_socket_new
LBB0_4:
	movq	%rax, %r15
	testq	%r14, %r14
	setne	%al
	testq	%r15, %r15
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_connect_to_addrlen@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_connect_to_addr@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_bufferevent_socket_connect
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:
	movq	_ssl_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.7:
	callq	_SSL_new
	movq	_base@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_BUFFEREVENT_SSL_CONNECTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rbx), %r8d
	orl	(%r13), %r8d
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_bufferevent_openssl_filter_new
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movq	%r15, %rdi
	callq	_bufferevent_free
	movq	%r14, %rdi
	callq	_bufferevent_free
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rbx
LBB0_11:
	movq	_readcb@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_eventcb@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_bufferevent_setcb
	movl	(%r15), %esi
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_bufferevent_setcb
	movq	_EV_READ@GOTPCREL(%rip), %r15
	movq	_EV_WRITE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	%r14, %rdi
	callq	_bufferevent_enable
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_enable             ## TAILCALL
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	%r15, %rdi
	callq	_bufferevent_free
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_free               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_base,4,2                       ## @base
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
	.comm	_BEV_OPT_DEFER_CALLBACKS,4,2    ## @BEV_OPT_DEFER_CALLBACKS
	.comm	_ssl_ctx,8,3                    ## @ssl_ctx
	.comm	_use_wrapper,8,3                ## @use_wrapper
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ## @BUFFEREVENT_SSL_CONNECTING
	.comm	_connect_to_addr,4,2            ## @connect_to_addr
	.comm	_connect_to_addrlen,4,2         ## @connect_to_addrlen
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bufferevent_socket_connect"

L_.str.1:                               ## @.str.1
	.asciz	"Bufferevent_openssl_new"

	.comm	_readcb,4,2                     ## @readcb
	.comm	_eventcb,4,2                    ## @eventcb
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.no_dead_strip	_accept_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accept_cb
_accept_cb:                             ; @accept_cb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _base@GOTPAGE
Lloh1:
	ldr	x22, [x22, _base@GOTPAGEOFF]
Lloh2:
	adrp	x21, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w8, [x21]
Lloh4:
	adrp	x23, _BEV_OPT_DEFER_CALLBACKS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _BEV_OPT_DEFER_CALLBACKS@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	bl	_bufferevent_socket_new
	mov	x19, x0
Lloh6:
	adrp	x25, _ssl_ctx@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ssl_ctx@GOTPAGEOFF]
	ldr	x0, [x25]
Lloh8:
	adrp	x24, _use_wrapper@GOTPAGE
Lloh9:
	ldr	x24, [x24, _use_wrapper@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, #0
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	ldr	w8, [x21]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	w1, #-1
	bl	_bufferevent_socket_new
	b	LBB0_3
LBB0_2:
	bl	_SSL_new
	mov	x2, x0
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _BUFFEREVENT_SSL_CONNECTING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BUFFEREVENT_SSL_CONNECTING@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	ldr	w8, [x21]
	ldr	w9, [x23]
	orr	w4, w9, w8
	mov	w1, #-1
	bl	_bufferevent_openssl_socket_new
LBB0_3:
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	cset	w0, ne
	bl	_assert
Lloh13:
	adrp	x8, _connect_to_addrlen@GOTPAGE
Lloh14:
	ldr	x8, [x8, _connect_to_addrlen@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, _connect_to_addr@GOTPAGE
Lloh17:
	ldr	x1, [x1, _connect_to_addr@GOTPAGEOFF]
	mov	x0, x20
	bl	_bufferevent_socket_connect
	tbnz	x0, #63, LBB0_10
; %bb.4:
	ldr	x0, [x25]
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x24]
	cbz	x8, LBB0_8
; %bb.6:
	bl	_SSL_new
	mov	x2, x0
	ldr	w0, [x22]
Lloh18:
	adrp	x8, _BUFFEREVENT_SSL_CONNECTING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BUFFEREVENT_SSL_CONNECTING@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldr	w8, [x21]
	ldr	w9, [x23]
	orr	w4, w9, w8
	mov	x1, x20
	bl	_bufferevent_openssl_filter_new
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.7:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	x0, x20
	bl	_bufferevent_free
	mov	x0, x19
	bl	_bufferevent_free
	b	LBB0_9
LBB0_8:
	mov	x21, x20
LBB0_9:
Lloh23:
	adrp	x20, _readcb@GOTPAGE
Lloh24:
	ldr	x20, [x20, _readcb@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh25:
	adrp	x22, _eventcb@GOTPAGE
Lloh26:
	ldr	x22, [x22, _eventcb@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x2, #0
	mov	x4, x21
	bl	_bufferevent_setcb
	ldr	w1, [x20]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x2, #0
	mov	x4, x19
	bl	_bufferevent_setcb
Lloh27:
	adrp	x20, _EV_READ@GOTPAGE
Lloh28:
	ldr	x20, [x20, _EV_READ@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh29:
	adrp	x22, _EV_WRITE@GOTPAGE
Lloh30:
	ldr	x22, [x22, _EV_WRITE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_bufferevent_enable
	ldr	w8, [x20]
	ldr	w9, [x22]
	orr	w1, w9, w8
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bufferevent_enable
LBB0_10:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	x0, x20
	bl	_bufferevent_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bufferevent_free
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_base,4,2                       ; @base
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.comm	_BEV_OPT_DEFER_CALLBACKS,4,2    ; @BEV_OPT_DEFER_CALLBACKS
	.comm	_ssl_ctx,8,3                    ; @ssl_ctx
	.comm	_use_wrapper,8,3                ; @use_wrapper
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ; @BUFFEREVENT_SSL_CONNECTING
	.comm	_connect_to_addr,4,2            ; @connect_to_addr
	.comm	_connect_to_addrlen,4,2         ; @connect_to_addrlen
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bufferevent_socket_connect"

l_.str.1:                               ; @.str.1
	.asciz	"Bufferevent_openssl_new"

	.comm	_readcb,4,2                     ; @readcb
	.comm	_eventcb,4,2                    ; @eventcb
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.no_dead_strip	_accept_cb
.subsections_via_symbols
