	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_client_key_exchange ## -- Begin function tls_process_client_key_exchange
	.p2align	4, 0x90
_tls_process_client_key_exchange:       ## @tls_process_client_key_exchange
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	_SSL_PSK@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tls_process_cke_psk_preamble
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	_SSL_kPSK@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_9
## %bb.3:
	movq	%r14, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_SSL_R_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	movq	_SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	jmp	LBB0_6
LBB0_9:
	movq	_SSL_kRSA@GOTPCREL(%rip), %rax
	movq	_SSL_kRSAPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%rbx, %rcx
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tls_process_cke_rsa
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ssl_generate_master_secret
	jmp	LBB0_11
LBB0_13:
	movq	_SSL_kDHE@GOTPCREL(%rip), %rax
	movq	_SSL_kDHEPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%rbx, %rcx
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tls_process_cke_dhe
	jmp	LBB0_11
LBB0_15:
	movq	_SSL_kECDHE@GOTPCREL(%rip), %rax
	movq	_SSL_kECDHEPSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%rbx, %rcx
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tls_process_cke_ecdhe
	jmp	LBB0_11
LBB0_17:
	movq	_SSL_kSRP@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tls_process_cke_srp
	jmp	LBB0_11
LBB0_19:
	movq	_SSL_kGOST@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_20
## %bb.21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tls_process_cke_gost
LBB0_11:
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movq	_MSG_PROCESS_CONTINUE_PROCESSING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	(%r15), %rdi
	movl	8(%r15), %esi
	callq	_OPENSSL_clear_free
	movq	$0, (%r15)
	movq	_MSG_PROCESS_ERROR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_SSL_R_UNKNOWN_CIPHER_TYPE@GOTPCREL(%rip), %rax
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_PSK,8,3                    ## @SSL_PSK
	.comm	_SSL_kPSK,8,3                   ## @SSL_kPSK
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE,4,2 ## @SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ## @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_kRSA,8,3                   ## @SSL_kRSA
	.comm	_SSL_kRSAPSK,8,3                ## @SSL_kRSAPSK
	.comm	_SSL_kDHE,8,3                   ## @SSL_kDHE
	.comm	_SSL_kDHEPSK,8,3                ## @SSL_kDHEPSK
	.comm	_SSL_kECDHE,8,3                 ## @SSL_kECDHE
	.comm	_SSL_kECDHEPSK,8,3              ## @SSL_kECDHEPSK
	.comm	_SSL_kSRP,8,3                   ## @SSL_kSRP
	.comm	_SSL_kGOST,8,3                  ## @SSL_kGOST
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_R_UNKNOWN_CIPHER_TYPE,4,2  ## @SSL_R_UNKNOWN_CIPHER_TYPE
	.comm	_MSG_PROCESS_CONTINUE_PROCESSING,4,2 ## @MSG_PROCESS_CONTINUE_PROCESSING
	.comm	_MSG_PROCESS_ERROR,4,2          ## @MSG_PROCESS_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_client_key_exchange ; -- Begin function tls_process_client_key_exchange
	.p2align	2
_tls_process_client_key_exchange:       ; @tls_process_client_key_exchange
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _SSL_PSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_PSK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_cke_psk_preamble
	cbz	w0, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _SSL_kPSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_kPSK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_PACKET_remaining
	cbz	x0, LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _SSL_R_LENGTH_MISMATCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x9]
Lloh10:
	adrp	x9, _SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
LBB0_6:
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_OPENSSL_clear_free
	str	xzr, [x19]
Lloh13:
	adrp	x8, _MSG_PROCESS_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_PROCESS_ERROR@GOTPAGEOFF]
	b	LBB0_19
LBB0_7:
Lloh15:
	adrp	x8, _SSL_kRSA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_kRSA@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _SSL_kRSAPSK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SSL_kRSAPSK@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x21
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_cke_rsa
	cbnz	w0, LBB0_18
	b	LBB0_6
LBB0_9:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_ssl_generate_master_secret
	cbnz	w0, LBB0_18
	b	LBB0_6
LBB0_10:
Lloh21:
	adrp	x8, _SSL_kDHE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_kDHE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _SSL_kDHEPSK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SSL_kDHEPSK@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_cke_dhe
	cbnz	w0, LBB0_18
	b	LBB0_6
LBB0_12:
Lloh27:
	adrp	x8, _SSL_kECDHE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_kECDHE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _SSL_kECDHEPSK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SSL_kECDHEPSK@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x21
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_cke_ecdhe
	cbnz	w0, LBB0_18
	b	LBB0_6
LBB0_14:
Lloh33:
	adrp	x8, _SSL_kSRP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSL_kSRP@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_cke_srp
	cbnz	w0, LBB0_18
	b	LBB0_6
LBB0_16:
Lloh36:
	adrp	x8, _SSL_kGOST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_kGOST@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_20
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_tls_process_cke_gost
	cbz	w0, LBB0_6
LBB0_18:
Lloh39:
	adrp	x8, _MSG_PROCESS_CONTINUE_PROCESSING@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_PROCESS_CONTINUE_PROCESSING@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	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_20:
Lloh41:
	adrp	x8, _SSL_R_UNKNOWN_CIPHER_TYPE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SSL_R_UNKNOWN_CIPHER_TYPE@GOTPAGEOFF]
Lloh43:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_PSK,8,3                    ; @SSL_PSK
	.comm	_SSL_kPSK,8,3                   ; @SSL_kPSK
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE,4,2 ; @SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE
	.comm	_SSL_R_LENGTH_MISMATCH,4,2      ; @SSL_R_LENGTH_MISMATCH
	.comm	_SSL_kRSA,8,3                   ; @SSL_kRSA
	.comm	_SSL_kRSAPSK,8,3                ; @SSL_kRSAPSK
	.comm	_SSL_kDHE,8,3                   ; @SSL_kDHE
	.comm	_SSL_kDHEPSK,8,3                ; @SSL_kDHEPSK
	.comm	_SSL_kECDHE,8,3                 ; @SSL_kECDHE
	.comm	_SSL_kECDHEPSK,8,3              ; @SSL_kECDHEPSK
	.comm	_SSL_kSRP,8,3                   ; @SSL_kSRP
	.comm	_SSL_kGOST,8,3                  ; @SSL_kGOST
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_R_UNKNOWN_CIPHER_TYPE,4,2  ; @SSL_R_UNKNOWN_CIPHER_TYPE
	.comm	_MSG_PROCESS_CONTINUE_PROCESSING,4,2 ; @MSG_PROCESS_CONTINUE_PROCESSING
	.comm	_MSG_PROCESS_ERROR,4,2          ; @MSG_PROCESS_ERROR
.subsections_via_symbols
