	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_cke_srp
_tls_process_cke_srp:                   ## @tls_process_cke_srp
	.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:
	movl	-20(%rbp), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_bytes
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	-32(%rbp), %rdi
	movl	-20(%rbp), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_BN_bin2bn
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	24(%r14), %esi
	movq	%rax, %rdi
	callq	_BN_ucmp
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	16(%r14), %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_SRP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_SRP_PARAMETERS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_SRP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_SRP_A_LENGTH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_SRP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
	jmp	LBB0_12
LBB0_9:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_OPENSSL_free
	movl	8(%r14), %edi
	callq	_OPENSSL_strdup
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_srp_generate_server_master_secret
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_12
LBB0_10:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_CKE_SRP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CKE_SRP,4,2  ## @SSL_F_TLS_PROCESS_CKE_SRP
	.comm	_SSL_R_BAD_SRP_A_LENGTH,4,2     ## @SSL_R_BAD_SRP_A_LENGTH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_BN_LIB,4,2               ## @ERR_R_BN_LIB
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ## @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_BAD_SRP_PARAMETERS,4,2   ## @SSL_R_BAD_SRP_PARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_process_cke_srp
.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_srp
_tls_process_cke_srp:                   ; @tls_process_cke_srp
	.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_6
; %bb.1:
	ldr	w2, [sp, #12]
	mov	x1, sp
	mov	x0, x20
	bl	_PACKET_get_bytes
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x0, [sp]
	ldr	w1, [sp, #12]
	mov	x2, #0
	bl	_BN_bin2bn
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w1, [x19, #24]
	bl	_BN_ucmp
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_BN_is_zero
	cbz	x0, LBB0_10
LBB0_5:
Lloh0:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SSL_R_BAD_SRP_PARAMETERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_BAD_SRP_PARAMETERS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _SSL_R_BAD_SRP_A_LENGTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_R_BAD_SRP_A_LENGTH@GOTPAGEOFF]
LBB0_7:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh16:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_OPENSSL_free
	ldr	w0, [x19, #8]
	bl	_OPENSSL_strdup
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_srp_generate_server_master_secret
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_8
LBB0_12:
Lloh24:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_CKE_SRP@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_7
	.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 AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_F_TLS_PROCESS_CKE_SRP,4,2  ; @SSL_F_TLS_PROCESS_CKE_SRP
	.comm	_SSL_R_BAD_SRP_A_LENGTH,4,2     ; @SSL_R_BAD_SRP_A_LENGTH
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ; @SSL_AD_ILLEGAL_PARAMETER
	.comm	_SSL_R_BAD_SRP_PARAMETERS,4,2   ; @SSL_R_BAD_SRP_PARAMETERS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_tls_process_cke_srp
.subsections_via_symbols
