	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_stoc_cryptopro_bug ## -- Begin function tls_construct_stoc_cryptopro_bug
	.p2align	4, 0x90
_tls_construct_stoc_cryptopro_bug:      ## @tls_construct_stoc_cryptopro_bug
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movaps	l___const.tls_construct_stoc_cryptopro_bug.cryptopro_ext+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.tls_construct_stoc_cryptopro_bug.cryptopro_ext(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	$386007555, -48(%rbp)           ## imm = 0x17020203
	movq	(%rdi), %rax
	movl	$65534, %ecx                    ## imm = 0xFFFE
	andl	(%rax), %ecx
	movq	_EXT_RETURN_NOT_SENT@GOTPCREL(%rip), %rbx
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_SSL_get_options
	movq	_SSL_OP_CRYPTOPRO_TLSEXT_BUG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$36, %edx
	callq	_WPACKET_memcpy
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_EXT_RETURN_SENT@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_4:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	movq	_EXT_RETURN_FAIL@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.tls_construct_stoc_cryptopro_bug.cryptopro_ext
l___const.tls_construct_stoc_cryptopro_bug.cryptopro_ext:
	.ascii	"\375\350\000 0\0360\b\006\006*\205\003\002\002\t0\b\006\006*\205\003\002\002\0260\b\006\006*\205\003\002\002\027"

	.comm	_SSL_OP_CRYPTOPRO_TLSEXT_BUG,4,2 ## @SSL_OP_CRYPTOPRO_TLSEXT_BUG
	.comm	_EXT_RETURN_NOT_SENT,4,2        ## @EXT_RETURN_NOT_SENT
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG,4,2 ## @SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ## @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_SENT,4,2            ## @EXT_RETURN_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_construct_stoc_cryptopro_bug ; -- Begin function tls_construct_stoc_cryptopro_bug
	.p2align	2
_tls_construct_stoc_cryptopro_bug:      ; @tls_construct_stoc_cryptopro_bug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, l___const.tls_construct_stoc_cryptopro_bug.cryptopro_ext@PAGE
Lloh4:
	add	x8, x8, l___const.tls_construct_stoc_cryptopro_bug.cryptopro_ext@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	mov	w8, #515
	movk	w8, #5890, lsl #16
	str	w8, [sp, #32]
	ldr	x8, [x0]
	ldr	w8, [x8]
	and	w8, w8, #0xfffe
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_SSL_get_options
Lloh5:
	adrp	x8, _SSL_OP_CRYPTOPRO_TLSEXT_BUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_OP_CRYPTOPRO_TLSEXT_BUG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	mov	x1, sp
	mov	x0, x20
	mov	w2, #36
	bl	_WPACKET_memcpy
	cbz	w0, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _EXT_RETURN_SENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXT_RETURN_SENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _EXT_RETURN_NOT_SENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXT_RETURN_NOT_SENT@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh15:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh24:
	adrp	x8, _EXT_RETURN_FAIL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXT_RETURN_FAIL@GOTPAGEOFF]
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.tls_construct_stoc_cryptopro_bug.cryptopro_ext: ; @__const.tls_construct_stoc_cryptopro_bug.cryptopro_ext
	.ascii	"\375\350\000 0\0360\b\006\006*\205\003\002\002\t0\b\006\006*\205\003\002\002\0260\b\006\006*\205\003\002\002\027"

	.comm	_SSL_OP_CRYPTOPRO_TLSEXT_BUG,4,2 ; @SSL_OP_CRYPTOPRO_TLSEXT_BUG
	.comm	_EXT_RETURN_NOT_SENT,4,2        ; @EXT_RETURN_NOT_SENT
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG,4,2 ; @SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_EXT_RETURN_FAIL,4,2            ; @EXT_RETURN_FAIL
	.comm	_EXT_RETURN_SENT,4,2            ; @EXT_RETURN_SENT
.subsections_via_symbols
