	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_stoc_psk             ## -- Begin function tls_parse_stoc_psk
	.p2align	4, 0x90
_tls_parse_stoc_psk:                    ## @tls_parse_stoc_psk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_net_2
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%eax, %eax
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	-20(%rbp), %ecx
	movl	16(%r14), %eax
	cmpl	%eax, %ecx
	jae	LBB0_5
## %bb.6:
	movq	32(%r14), %rdi
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.10:
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.11:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PARSE_STOC_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_PSK_IDENTITY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	cmpl	$2, %eax
	je	LBB0_9
LBB0_12:
	movq	8(%r14), %rax
	movq	_SSL_EARLY_DATA_WRITE_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_SSL_EARLY_DATA_FINISHED_WRITING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_14:
	movq	40(%r14), %rax
	cmpq	$0, 8(%rax)
	jg	LBB0_16
## %bb.15:
	cmpq	$0, 8(%rdi)
	jne	LBB0_17
LBB0_16:
	movl	48(%r14), %eax
	movl	(%rdi), %esi
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_memcpy
	movq	40(%r14), %rax
LBB0_17:
	movq	%rax, %rdi
	callq	_SSL_SESSION_free
	movq	32(%r14), %rax
	movq	%rax, 40(%r14)
	movq	$0, 32(%r14)
	movl	$1, (%r14)
	movl	$1, %eax
	cmpl	$0, -20(%rbp)
	je	LBB0_19
## %bb.18:
	movq	$0, 24(%r14)
	jmp	LBB0_19
LBB0_9:
	movl	$1, (%r14)
	callq	_SSL_SESSION_free
	movq	$0, 32(%r14)
	movl	$1, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_STOC_PSK,4,2   ## @SSL_F_TLS_PARSE_STOC_PSK
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ## @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_BAD_PSK_IDENTITY,4,2     ## @SSL_R_BAD_PSK_IDENTITY
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_EARLY_DATA_WRITE_RETRY,8,3 ## @SSL_EARLY_DATA_WRITE_RETRY
	.comm	_SSL_EARLY_DATA_FINISHED_WRITING,8,3 ## @SSL_EARLY_DATA_FINISHED_WRITING
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_parse_stoc_psk             ; -- Begin function tls_parse_stoc_psk
	.p2align	2
_tls_parse_stoc_psk:                    ; @tls_parse_stoc_psk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_PACKET_get_net_2
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PACKET_remaining
	cbz	x0, LBB0_5
LBB0_2:
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_STOC_PSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_PSK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
LBB0_3:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w9, [sp, #12]
	ldr	w8, [x19, #16]
	cmp	w9, w8
	b.hs	LBB0_9
; %bb.6:
	ldr	x0, [x19, #32]
	cbz	w9, LBB0_10
; %bb.7:
	cbnz	x0, LBB0_12
; %bb.8:
Lloh8:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_PSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_PSK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
Lloh16:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SSL_F_TLS_PARSE_STOC_PSK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_F_TLS_PARSE_STOC_PSK@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _SSL_R_BAD_PSK_IDENTITY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_R_BAD_PSK_IDENTITY@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	cbz	x0, LBB0_18
; %bb.11:
	cmp	w8, #2
	b.eq	LBB0_18
LBB0_12:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _SSL_EARLY_DATA_WRITE_RETRY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SSL_EARLY_DATA_WRITE_RETRY@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _SSL_EARLY_DATA_FINISHED_WRITING@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SSL_EARLY_DATA_FINISHED_WRITING@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x19, #40]
	ldr	x9, [x8, #8]
	cmp	x9, #0
	b.gt	LBB0_15
; %bb.14:
	ldr	x9, [x0, #8]
	cbnz	x9, LBB0_16
LBB0_15:
	ldr	w8, [x19, #48]
	ldr	w1, [x0]
Lloh30:
	adrp	x9, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_memcpy
	ldr	x8, [x19, #40]
LBB0_16:
	mov	x0, x8
	bl	_SSL_SESSION_free
	ldr	x8, [x19, #32]
	stp	xzr, x8, [x19, #32]
	mov	w20, #1
	str	w20, [x19]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.17:
	str	xzr, [x19, #24]
	mov	w20, #1
	b	LBB0_4
LBB0_18:
	mov	w20, #1
	str	w20, [x19]
	bl	_SSL_SESSION_free
	str	xzr, [x19, #32]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PARSE_STOC_PSK,4,2   ; @SSL_F_TLS_PARSE_STOC_PSK
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ; @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_BAD_PSK_IDENTITY,4,2     ; @SSL_R_BAD_PSK_IDENTITY
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_EARLY_DATA_WRITE_RETRY,8,3 ; @SSL_EARLY_DATA_WRITE_RETRY
	.comm	_SSL_EARLY_DATA_FINISHED_WRITING,8,3 ; @SSL_EARLY_DATA_FINISHED_WRITING
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
.subsections_via_symbols
