	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_cke_psk_preamble
_tls_process_cke_psk_preamble:          ## @tls_process_cke_psk_preamble
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PSK_MAX_PSK_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_length_prefixed_2
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	-52(%rbp), %rdi
	callq	_PACKET_remaining
	movq	_PSK_MAX_IDENTITY_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_DATA_LENGTH_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.7:
	movq	24(%r15), %rsi
	leaq	-52(%rbp), %rdi
	callq	_PACKET_strndup
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	24(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	*(%r15)
	movq	%rax, %rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jbe	LBB0_10
LBB0_8:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_PSK_NO_SERVER_CB@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movq	16(%r15), %rdi
	callq	_OPENSSL_free
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_OPENSSL_memdup
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_OPENSSL_cleanse
	cmpq	$0, 16(%r15)
	je	LBB0_13
## %bb.14:
	movq	%rbx, 8(%r15)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_11:
	movq	_SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PSK_MAX_PSK_LEN,4,2            ## @PSK_MAX_PSK_LEN
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE,4,2 ## @SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_PSK_MAX_IDENTITY_LEN,8,3       ## @PSK_MAX_IDENTITY_LEN
	.comm	_SSL_R_DATA_LENGTH_TOO_LONG,4,2 ## @SSL_R_DATA_LENGTH_TOO_LONG
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_R_PSK_NO_SERVER_CB,4,2     ## @SSL_R_PSK_NO_SERVER_CB
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_AD_UNKNOWN_PSK_IDENTITY,4,2 ## @SSL_AD_UNKNOWN_PSK_IDENTITY
	.comm	_SSL_R_PSK_IDENTITY_NOT_FOUND,4,2 ## @SSL_R_PSK_IDENTITY_NOT_FOUND
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_tls_process_cke_psk_preamble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_cke_psk_preamble
_tls_process_cke_psk_preamble:          ; @tls_process_cke_psk_preamble
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh3:
	adrp	x22, _PSK_MAX_PSK_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PSK_MAX_PSK_LEN@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x9, x21
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x21, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	sub	x1, x29, #44
	mov	x0, x8
	bl	_PACKET_get_length_prefixed_2
	cbz	w0, LBB0_3
; %bb.1:
	sub	x0, x29, #44
	bl	_PACKET_remaining
Lloh7:
	adrp	x8, _PSK_MAX_IDENTITY_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSK_MAX_IDENTITY_LEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _SSL_R_DATA_LENGTH_TOO_LONG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_R_DATA_LENGTH_TOO_LONG@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh18:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x1, [x19, #24]
	sub	x0, x29, #44
	bl	_PACKET_strndup
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	blr	x8
	ldrsw	x8, [x22]
	cmp	x0, x8
	b.ls	LBB0_12
LBB0_7:
Lloh26:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh34:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _SSL_R_PSK_NO_SERVER_CB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SSL_R_PSK_NO_SERVER_CB@GOTPAGEOFF]
LBB0_9:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.11:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x0, [x19, #16]
	bl	_OPENSSL_free
	mov	x0, x20
	mov	x1, x21
	bl	_OPENSSL_memdup
	str	x0, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_OPENSSL_cleanse
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.14:
	str	x21, [x19, #8]
	mov	w0, #1
	b	LBB0_10
LBB0_15:
Lloh45:
	adrp	x8, _SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
Lloh51:
	adrp	x8, _SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
Lloh53:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
Lloh59:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_9
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_PSK_MAX_PSK_LEN,4,2            ; @PSK_MAX_PSK_LEN
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE,4,2 ; @SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_PSK_MAX_IDENTITY_LEN,8,3       ; @PSK_MAX_IDENTITY_LEN
	.comm	_SSL_R_DATA_LENGTH_TOO_LONG,4,2 ; @SSL_R_DATA_LENGTH_TOO_LONG
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_R_PSK_NO_SERVER_CB,4,2     ; @SSL_R_PSK_NO_SERVER_CB
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_AD_UNKNOWN_PSK_IDENTITY,4,2 ; @SSL_AD_UNKNOWN_PSK_IDENTITY
	.comm	_SSL_R_PSK_IDENTITY_NOT_FOUND,4,2 ; @SSL_R_PSK_IDENTITY_NOT_FOUND
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_tls_process_cke_psk_preamble
.subsections_via_symbols
