	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_dispatch_alert            ## -- Begin function ssl3_dispatch_alert
	.p2align	4, 0x90
_ssl3_dispatch_alert:                   ## @ssl3_dispatch_alert
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	$0, (%rax)
	movq	$2, -32(%rbp)
	movq	_SSL3_RT_ALERT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	8(%rax), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_do_ssl3_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	40(%rbx), %edi
	callq	_BIO_flush
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	28(%rbx), %esi
	movl	(%r15), %edx
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	24(%rbx), %edi
	movl	%edi, (%rsp)
	movl	$1, %edi
	movl	$2, %r8d
	movq	%rbx, %r9
	callq	*%rax
LBB0_4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx), %edx
	shll	$8, %edx
	orl	4(%rcx), %edx
	movq	_SSL_CB_WRITE_ALERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_7
LBB0_1:
	movq	8(%rbx), %rax
	movl	$1, (%rax)
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_RT_ALERT,4,2              ## @SSL3_RT_ALERT
	.comm	_SSL_CB_WRITE_ALERT,4,2         ## @SSL_CB_WRITE_ALERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_dispatch_alert            ; -- Begin function ssl3_dispatch_alert
	.p2align	2
_ssl3_dispatch_alert:                   ; @ssl3_dispatch_alert
	.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	x19, x0
	ldr	x8, [x0, #8]
	str	wzr, [x8]
	mov	w9, #2
	str	x9, [sp, #8]
Lloh0:
	adrp	x21, _SSL3_RT_ALERT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SSL3_RT_ALERT@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	x2, [x8, #8]
	mov	w22, #1
	add	x3, sp, #8
	mov	x6, sp
	mov	w4, #1
	mov	w5, #0
	bl	_do_ssl3_write
	mov	x20, x0
	cmp	w0, #0
	b.le	LBB0_6
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_BIO_flush
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w2, [x21]
	ldr	x9, [x19, #8]
	ldr	x3, [x9, #8]
	ldp	w6, w1, [x19, #24]
	mov	w0, #1
	mov	w4, #2
	mov	x5, x19
	blr	x8
LBB0_3:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #8]
	ldp	w10, w9, [x9]
	orr	w2, w9, w10, lsl #8
Lloh2:
	adrp	x9, _SSL_CB_WRITE_ALERT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSL_CB_WRITE_ALERT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #8]
	str	w22, [x8]
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_RT_ALERT,4,2              ; @SSL3_RT_ALERT
	.comm	_SSL_CB_WRITE_ALERT,4,2         ; @SSL_CB_WRITE_ALERT
.subsections_via_symbols
