	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_shutdown                  ## -- Begin function ssl3_shutdown
	.p2align	4, 0x90
_ssl3_shutdown:                         ## @ssl3_shutdown
	.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
	cmpq	$0, 24(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_SSL_in_before
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_SSL_SENT_SHUTDOWN@GOTPCREL(%rip), %rax
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_3:
	movl	$1, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %eax
	movq	_SSL_SENT_SHUTDOWN@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.7:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpl	$-1, %eax
	jne	LBB0_12
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_4
LBB0_9:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_SSL3_AL_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_AD_CLOSE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ssl3_send_alert
	movl	$-1, %eax
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
	jmp	LBB0_12
LBB0_10:
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	jne	LBB0_12
## %bb.11:
	movq	16(%rbx), %rax
	leaq	-32(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*8(%rax)
	movl	(%r15), %eax
	andl	(%rbx), %eax
	je	LBB0_8
LBB0_12:
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r14), %eax
	cmpl	%eax, (%rbx)
	jne	LBB0_14
## %bb.13:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_SENT_SHUTDOWN,4,2          ## @SSL_SENT_SHUTDOWN
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ## @SSL_RECEIVED_SHUTDOWN
	.comm	_SSL3_AL_WARNING,4,2            ## @SSL3_AL_WARNING
	.comm	_SSL_AD_CLOSE_NOTIFY,4,2        ## @SSL_AD_CLOSE_NOTIFY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl3_shutdown                  ; -- Begin function ssl3_shutdown
	.p2align	2
_ssl3_shutdown:                         ; @ssl3_shutdown
	.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, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_SSL_in_before
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _SSL_SENT_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_SENT_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSL_RECEIVED_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	w0, #1
LBB0_4:
	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
LBB0_5:
	ldr	w8, [x19]
Lloh6:
	adrp	x20, _SSL_SENT_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SSL_SENT_SHUTDOWN@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_10
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cmn	w0, #1
	b.ne	LBB0_12
	b	LBB0_4
LBB0_8:
	orr	w8, w9, w8
	str	w8, [x19]
Lloh8:
	adrp	x8, _SSL3_AL_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL3_AL_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SSL_AD_CLOSE_NOTIFY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_AD_CLOSE_NOTIFY@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ssl3_send_alert
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
LBB0_9:
	mov	w0, #-1
	b	LBB0_4
LBB0_10:
Lloh14:
	adrp	x21, _SSL_RECEIVED_SHUTDOWN@GOTPAGE
Lloh15:
	ldr	x21, [x21, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	blr	x8
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_12:
	ldr	w8, [x19]
	ldr	w9, [x20]
Lloh16:
	adrp	x10, _SSL_RECEIVED_SHUTDOWN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_14:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_SENT_SHUTDOWN,4,2          ; @SSL_SENT_SHUTDOWN
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ; @SSL_RECEIVED_SHUTDOWN
	.comm	_SSL3_AL_WARNING,4,2            ; @SSL3_AL_WARNING
	.comm	_SSL_AD_CLOSE_NOTIFY,4,2        ; @SSL_AD_CLOSE_NOTIFY
.subsections_via_symbols
