	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_ctos_ems             ## -- Begin function tls_parse_ctos_ems
	.p2align	4, 0x90
_tls_parse_ctos_ems:                    ## @tls_parse_ctos_ems
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_CTOS_EMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_SSL_OP_NO_EXTENDED_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_TLS1_FLAGS_RECEIVED_EXTMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_CTOS_EMS,4,2   ## @SSL_F_TLS_PARSE_CTOS_EMS
	.comm	_SSL_R_BAD_EXTENSION,4,2        ## @SSL_R_BAD_EXTENSION
	.comm	_SSL_OP_NO_EXTENDED_MASTER_SECRET,4,2 ## @SSL_OP_NO_EXTENDED_MASTER_SECRET
	.comm	_TLS1_FLAGS_RECEIVED_EXTMS,4,2  ## @TLS1_FLAGS_RECEIVED_EXTMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_ctos_ems             ; -- Begin function tls_parse_ctos_ems
	.p2align	2
_tls_parse_ctos_ems:                    ; @tls_parse_ctos_ems
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_PACKET_remaining
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_TLS_PARSE_CTOS_EMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_CTOS_EMS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SSL_R_BAD_EXTENSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_BAD_EXTENSION@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _SSL_OP_NO_EXTENDED_MASTER_SECRET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SSL_OP_NO_EXTENDED_MASTER_SECRET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _TLS1_FLAGS_RECEIVED_EXTMS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TLS1_FLAGS_RECEIVED_EXTMS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_CTOS_EMS,4,2   ; @SSL_F_TLS_PARSE_CTOS_EMS
	.comm	_SSL_R_BAD_EXTENSION,4,2        ; @SSL_R_BAD_EXTENSION
	.comm	_SSL_OP_NO_EXTENDED_MASTER_SECRET,4,2 ; @SSL_OP_NO_EXTENDED_MASTER_SECRET
	.comm	_TLS1_FLAGS_RECEIVED_EXTMS,4,2  ; @TLS1_FLAGS_RECEIVED_EXTMS
.subsections_via_symbols
