	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_handshake_complete
_on_handshake_complete:                 ## @on_handshake_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	8(%rax), %rcx
	movq	$0, 8(%rbx)
	movq	$0, 8(%rax)
	jmp	LBB0_7
LBB0_1:
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_ptls_get_record_overhead
	jmp	LBB0_6
LBB0_4:
	movl	16(%rax), %edi
	callq	_SSL_get_current_cipher
	movq	%rax, %rdi
	callq	_SSL_CIPHER_get_id
	movl	%eax, %ecx
	addl	$-128, %ecx
	movl	$32, %eax
	cmpl	$11, %ecx
	jae	LBB0_6
## %bb.5:
	movslq	%ecx, %rax
	leaq	l_switch.table.on_handshake_complete(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_6:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	8(%rcx), %r15
	movq	$0, 8(%rbx)
	movq	$0, 8(%rcx)
	movq	%rbx, %rdi
	callq	_decode_ssl_input
	movq	%r15, %rcx
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_on_handshake_complete
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.on_handshake_complete
l_switch.table.on_handshake_complete:
	.long	29                              ## 0x1d
	.long	29                              ## 0x1d
	.long	29                              ## 0x1d
	.long	29                              ## 0x1d
	.long	21                              ## 0x15
	.long	29                              ## 0x1d
	.long	29                              ## 0x1d
	.long	21                              ## 0x15
	.long	29                              ## 0x1d
	.long	29                              ## 0x1d
	.long	21                              ## 0x15

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_handshake_complete
_on_handshake_complete:                 ; @on_handshake_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x2, [x8, #8]
	str	xzr, [x20, #8]
	str	xzr, [x8, #8]
	b	LBB0_8
LBB0_2:
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ptls_get_record_overhead
	b	LBB0_7
LBB0_4:
	ldr	w0, [x8, #16]
	bl	_SSL_get_current_cipher
	bl	_SSL_CIPHER_get_id
	sub	w8, w0, #128
	cmp	w8, #11
	b.hs	LBB0_6
; %bb.5:
Lloh0:
	adrp	x9, l_switch.table.on_handshake_complete@PAGE
Lloh1:
	add	x9, x9, l_switch.table.on_handshake_complete@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_7
LBB0_6:
	mov	w0, #32
LBB0_7:
	ldr	x8, [x20]
	str	w0, [x8]
	ldr	x0, [x8, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	str	xzr, [x20, #8]
	str	xzr, [x8, #8]
	mov	x0, x20
	bl	_decode_ssl_input
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_on_handshake_complete
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.on_handshake_complete
l_switch.table.on_handshake_complete:
	.long	29                              ; 0x1d
	.long	29                              ; 0x1d
	.long	29                              ; 0x1d
	.long	29                              ; 0x1d
	.long	21                              ; 0x15
	.long	29                              ; 0x1d
	.long	29                              ; 0x1d
	.long	21                              ; 0x15
	.long	29                              ; 0x1d
	.long	29                              ; 0x1d
	.long	21                              ; 0x15

.subsections_via_symbols
