	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_do_write                  ## -- Begin function ssl3_do_write
	.p2align	4, 0x90
_ssl3_do_write:                         ## @ssl3_do_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	24(%rdi), %rax
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	leaq	-32(%rbp), %r8
	callq	_ssl3_write_bytes
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	_SSL3_RT_HANDSHAKE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_SSL_IS_TLS13
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	48(%rbx), %rax
	movq	_TLS_ST_SW_SESSION_TICKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_TLS_ST_CW_KEY_UPDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_TLS_ST_SW_KEY_UPDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_6:
	movq	(%rbx), %rsi
	movq	24(%rbx), %rax
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ssl3_finish_mac
	testl	%eax, %eax
	je	LBB0_12
LBB0_7:
	movq	-32(%rbp), %r8
	movq	8(%rbx), %rax
	subq	%r8, %rax
	jne	LBB0_11
## %bb.8:
	movq	40(%rbx), %r10
	testq	%r10, %r10
	je	LBB0_9
## %bb.10:
	movl	32(%rbx), %esi
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	addq	(%rbx), %r8
	movl	16(%rbx), %eax
	movl	%eax, (%rsp)
	movl	$1, %r15d
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%rbx, %r9
	callq	*%r10
	jmp	LBB0_12
LBB0_11:
	addq	%r8, (%rbx)
	movq	%rax, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_9:
	movl	$1, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_RT_HANDSHAKE,4,2          ## @SSL3_RT_HANDSHAKE
	.comm	_TLS_ST_SW_SESSION_TICKET,8,3   ## @TLS_ST_SW_SESSION_TICKET
	.comm	_TLS_ST_CW_KEY_UPDATE,8,3       ## @TLS_ST_CW_KEY_UPDATE
	.comm	_TLS_ST_SW_KEY_UPDATE,8,3       ## @TLS_ST_SW_KEY_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_do_write                  ; -- Begin function ssl3_do_write
	.p2align	2
_ssl3_do_write:                         ; @ssl3_do_write
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldp	x9, x3, [x0]
	add	x2, x8, x9, lsl #2
	add	x4, sp, #8
	bl	_ssl3_write_bytes
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _SSL3_RT_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL3_RT_HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #48]
Lloh3:
	adrp	x9, _TLS_ST_SW_SESSION_TICKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLS_ST_SW_SESSION_TICKET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _TLS_ST_CW_KEY_UPDATE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TLS_ST_CW_KEY_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _TLS_ST_SW_KEY_UPDATE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TLS_ST_SW_KEY_UPDATE@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_5
LBB0_4:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x1, x8, x9, lsl #2
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_ssl3_finish_mac
	cbz	w0, LBB0_8
LBB0_5:
	ldr	x9, [sp, #8]
	ldr	x8, [x19, #8]
	subs	x8, x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w1, [x19, #32]
	ldr	x10, [x19, #24]
	ldr	x3, [x10]
	ldr	x10, [x19]
	add	x4, x10, x9
	ldr	w6, [x19, #16]
	mov	w21, #1
	mov	w0, #1
	mov	x2, x20
	mov	x5, x19
	blr	x8
	b	LBB0_11
LBB0_8:
	mov	w21, #-1
	b	LBB0_11
LBB0_9:
	mov	w21, #0
	ldr	x10, [x19]
	add	x9, x10, x9
	stp	x9, x8, [x19]
	b	LBB0_11
LBB0_10:
	mov	w21, #1
LBB0_11:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_RT_HANDSHAKE,4,2          ; @SSL3_RT_HANDSHAKE
	.comm	_TLS_ST_SW_SESSION_TICKET,8,3   ; @TLS_ST_SW_SESSION_TICKET
	.comm	_TLS_ST_CW_KEY_UPDATE,8,3       ; @TLS_ST_CW_KEY_UPDATE
	.comm	_TLS_ST_SW_KEY_UPDATE,8,3       ; @TLS_ST_SW_KEY_UPDATE
.subsections_via_symbols
