	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_openssl_enable
_be_openssl_enable:                     ## @be_openssl_enable
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_upcast
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_BUFFEREVENT_SSL_OPEN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.1:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	movl	$0, %ebx
	testw	%r14w, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_start_reading
	movl	%eax, %ebx
LBB0_3:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_start_writing
	movl	%eax, %r12d
LBB0_5:
	cmpq	$0, 8(%r15)
	je	LBB0_14
## %bb.6:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_BEV_RESET_GENERIC_READ_TIMEOUT
LBB0_8:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_BEV_RESET_GENERIC_WRITE_TIMEOUT
LBB0_10:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_consider_reading
LBB0_12:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_consider_writing
LBB0_14:
	orl	%r12d, %ebx
	sarl	$31, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFEREVENT_SSL_OPEN,8,3       ## @BUFFEREVENT_SSL_OPEN
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.no_dead_strip	_be_openssl_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_openssl_enable
_be_openssl_enable:                     ; @be_openssl_enable
	.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	x21, x1
	mov	x20, x0
	bl	_upcast
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BUFFEREVENT_SSL_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUFFEREVENT_SSL_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	and	w23, w21, #0xffff
Lloh3:
	adrp	x24, _EV_READ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EV_READ@GOTPAGEOFF]
	ldrh	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_start_reading
	mov	x21, x0
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_17
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh5:
	adrp	x25, _EV_WRITE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _EV_WRITE@GOTPAGEOFF]
	ldrh	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_start_writing
	mov	x22, x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
	b	LBB0_16
LBB0_7:
	mov	w22, #0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
LBB0_8:
	ldrh	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_BEV_RESET_GENERIC_READ_TIMEOUT
LBB0_10:
	ldrh	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_BEV_RESET_GENERIC_WRITE_TIMEOUT
LBB0_12:
	ldrh	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_consider_reading
LBB0_14:
	ldrh	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_consider_writing
LBB0_16:
	orr	w8, w21, w22
	asr	w0, w8, #31
LBB0_17:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFEREVENT_SSL_OPEN,8,3       ; @BUFFEREVENT_SSL_OPEN
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.no_dead_strip	_be_openssl_enable
.subsections_via_symbols
