	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_ssl_renegotiate    ## -- Begin function bufferevent_ssl_renegotiate
	.p2align	4, 0x90
_bufferevent_ssl_renegotiate:           ## @bufferevent_ssl_renegotiate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_upcast
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_SSL_renegotiate
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movq	_BUFFEREVENT_SSL_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$-1, %r14d
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_set_handshake_callbacks
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	je	LBB0_5
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_do_handshake                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ## @BUFFEREVENT_SSL_CONNECTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bufferevent_ssl_renegotiate    ; -- Begin function bufferevent_ssl_renegotiate
	.p2align	2
_bufferevent_ssl_renegotiate:           ; @bufferevent_ssl_renegotiate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_upcast
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_SSL_renegotiate
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _BUFFEREVENT_SSL_CONNECTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFEREVENT_SSL_CONNECTING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	w20, #-1
	mov	x0, x19
	mov	w1, #-1
	bl	_set_handshake_callbacks
	tbnz	x0, #63, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	w20, #-1
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_do_handshake
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFEREVENT_SSL_CONNECTING,4,2 ; @BUFFEREVENT_SSL_CONNECTING
.subsections_via_symbols
