	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_openssl_ctrl
_be_openssl_ctrl:                       ## @be_openssl_ctrl
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_upcast
	movq	%rax, %r15
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.2:
	movl	$-1, %r12d
	cmpl	$128, %ebx
	jne	LBB0_13
## %bb.3:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:
	xorl	%esi, %esi
	callq	_BIO_new_bufferevent
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_13
LBB0_5:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
LBB0_11:
	callq	_event_get_fd
	jmp	LBB0_12
LBB0_7:
	movq	(%r15), %rax
LBB0_12:
	movq	%rax, (%r14)
	xorl	%r12d, %r12d
LBB0_13:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_BIO_new_socket
LBB0_9:
	movl	12(%r15), %edi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	_SSL_set_bio
	movl	8(%r15), %esi
	movq	(%r14), %rdx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_be_openssl_set_fd              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_be_openssl_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_openssl_ctrl
_be_openssl_ctrl:                       ; @be_openssl_ctrl
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_upcast
	mov	x20, x0
	cmp	w22, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x20]
	cbz	x0, LBB0_12
; %bb.4:
	mov	w1, #0
	bl	_BIO_new_bufferevent
	cbnz	x0, LBB0_13
LBB0_5:
	mov	w0, #-1
	b	LBB0_11
LBB0_6:
	ldr	x0, [x20]
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
LBB0_8:
	bl	_event_get_fd
	mov	x8, x0
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #0
	ldr	x8, [x20]
LBB0_10:
	str	x8, [x19]
LBB0_11:
	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
LBB0_12:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_BIO_new_socket
LBB0_13:
	mov	x1, x0
	ldr	w0, [x20, #12]
	mov	x2, x1
	bl	_SSL_set_bio
	ldr	w1, [x20, #8]
	ldr	x2, [x19]
	mov	x0, x20
	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	_be_openssl_set_fd
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_be_openssl_ctrl
.subsections_via_symbols
