	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_ssl_bufevs
_open_ssl_bufevs:                       ## @open_ssl_bufevs
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	24(%rbp), %r13
	movq	16(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	movq	_BUFFEREVENT_SSL_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BUFFEREVENT_SSL_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmovnel	%r14d, %ecx
	movq	_BUFFEREVENT_SSL_ACCEPTING@GOTPCREL(%rip), %rax
	cmovel	(%rax), %r14d
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r9, %rdx
	movl	%r12d, %r8d
	callq	_bufferevent_openssl_socket_new
	movq	%rax, (%r15)
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_bufferevent_openssl_socket_new
	jmp	LBB0_3
LBB0_2:
	movq	32(%rbp), %r13
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movq	%r9, %rdx
	movl	%r12d, %r8d
	callq	_bufferevent_openssl_filter_new
	movq	%rax, (%r15)
	movq	8(%r13), %rsi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_bufferevent_openssl_filter_new
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	(%r15), %rdi
	movq	_respond_to_number@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_done_writing_cb@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_eventcb@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %r8
	callq	_bufferevent_setcb
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_setcb              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFEREVENT_SSL_OPEN,4,2       ## @BUFFEREVENT_SSL_OPEN
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ## @BUFFEREVENT_SSL_CONNECTING
	.comm	_BUFFEREVENT_SSL_ACCEPTING,4,2  ## @BUFFEREVENT_SSL_ACCEPTING
	.comm	_respond_to_number,4,2          ## @respond_to_number
	.comm	_done_writing_cb,4,2            ## @done_writing_cb
	.comm	_eventcb,4,2                    ## @eventcb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client"

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

	.no_dead_strip	_open_ssl_bufevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_ssl_bufevs
_open_ssl_bufevs:                       ; @open_ssl_bufevs
	.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
	mov	x22, x6
	mov	x21, x4
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BUFFEREVENT_SSL_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFEREVENT_SSL_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BUFFEREVENT_SSL_CONNECTING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUFFEREVENT_SSL_CONNECTING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w3, #0
	csel	w3, w9, w8, eq
Lloh6:
	adrp	x9, _BUFFEREVENT_SSL_ACCEPTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUFFEREVENT_SSL_ACCEPTING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	csel	w24, w9, w8, eq
	cbz	x7, LBB0_2
; %bb.1:
	mov	x25, x7
	ldr	w1, [x7]
	mov	x0, x23
	mov	x2, x5
	mov	x4, x21
	bl	_bufferevent_openssl_socket_new
	str	x0, [x20]
	ldr	w1, [x25, #4]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x21
	bl	_bufferevent_openssl_socket_new
	b	LBB0_3
LBB0_2:
	ldr	x25, [x29, #16]
	ldr	x1, [x25]
	mov	x0, x23
	mov	x2, x5
	mov	x4, x21
	bl	_bufferevent_openssl_filter_new
	str	x0, [x20]
	ldr	x1, [x25, #8]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x21
	bl	_bufferevent_openssl_filter_new
LBB0_3:
	str	x0, [x19]
	ldr	x0, [x20]
Lloh9:
	adrp	x20, _respond_to_number@GOTPAGE
Lloh10:
	ldr	x20, [x20, _respond_to_number@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh11:
	adrp	x21, _done_writing_cb@GOTPAGE
Lloh12:
	ldr	x21, [x21, _done_writing_cb@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh13:
	adrp	x22, _eventcb@GOTPAGE
Lloh14:
	ldr	x22, [x22, _eventcb@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh15:
	adrp	x4, l_.str@PAGE
Lloh16:
	add	x4, x4, l_.str@PAGEOFF
	bl	_bufferevent_setcb
	ldr	x0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh17:
	adrp	x4, l_.str.1@PAGE
Lloh18:
	add	x4, x4, l_.str.1@PAGEOFF
	ldr	w3, [x22]
	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_setcb
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFEREVENT_SSL_OPEN,4,2       ; @BUFFEREVENT_SSL_OPEN
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ; @BUFFEREVENT_SSL_CONNECTING
	.comm	_BUFFEREVENT_SSL_ACCEPTING,4,2  ; @BUFFEREVENT_SSL_ACCEPTING
	.comm	_respond_to_number,4,2          ; @respond_to_number
	.comm	_done_writing_cb,4,2            ; @done_writing_cb
	.comm	_eventcb,4,2                    ; @eventcb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client"

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

	.no_dead_strip	_open_ssl_bufevs
.subsections_via_symbols
