	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_send_change_cipher_spec
_tls_send_change_cipher_spec:           ## @tls_send_change_cipher_spec
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, (%rsi)
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, -40(%rbp)
	leaq	4000(%rax), %r12
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_tls_write_server_change_cipher_spec
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_tls_write_server_finished
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rax
	subq	%rbx, %rax
	sarq	$2, %rax
	movq	%rax, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_tlsv1_server_log
	movq	_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handshake completed successfully"

	.comm	_ESTABLISHED,4,2                ## @ESTABLISHED
	.no_dead_strip	_tls_send_change_cipher_spec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_send_change_cipher_spec
_tls_send_change_cipher_spec:           ; @tls_send_change_cipher_spec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
	str	xzr, [x1]
	mov	w0, #1000
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	str	x19, [sp, #8]
	add	x22, x19, #4000
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_tls_write_server_change_cipher_spec
	tbnz	x0, #63, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_tls_write_server_finished
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	asr	x8, x8, #2
	str	x8, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_tlsv1_server_log
Lloh2:
	adrp	x8, _ESTABLISHED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESTABLISHED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handshake completed successfully"

	.comm	_ESTABLISHED,4,2                ; @ESTABLISHED
	.no_dead_strip	_tls_send_change_cipher_spec
.subsections_via_symbols
