	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srp_generate_client_master_secret ## -- Begin function srp_generate_client_master_secret
	.p2align	4, 0x90
_srp_generate_client_master_secret:     ## @srp_generate_client_master_secret
	.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	%rdi, %rbx
	movl	16(%rdi), %edi
	movl	20(%rbx), %esi
	callq	_SRP_Verify_B_mod_N
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	36(%rbx), %edi
	movl	16(%rbx), %esi
	movl	20(%rbx), %edx
	callq	_SRP_Calc_u
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r14
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movq	%rax, %r15
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	%rax, %rdx
	callq	_SRP_Calc_x
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movl	20(%rbx), %edi
	movl	16(%rbx), %esi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %edx
	movq	%r12, %rcx
	movq	%r14, %r9
	callq	_SRP_Calc_client_key
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_BN_num_bytes
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_BN_bn2bin
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_ssl_generate_master_secret
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movl	$-1, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r13, %rdi
	callq	_BN_clear_free
	movq	%r12, %rdi
	callq	_BN_clear_free
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OPENSSL_clear_free
LBB0_14:
	movq	%r14, %rdi
	callq	_BN_clear_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movl	$-1, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_16:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_CALLBACK_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_17:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movl	$-1, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET,4,2 ## @SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_R_CALLBACK_FAILED,4,2      ## @SSL_R_CALLBACK_FAILED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srp_generate_client_master_secret ; -- Begin function srp_generate_client_master_secret
	.p2align	2
_srp_generate_client_master_secret:     ; @srp_generate_client_master_secret
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x21, #20]
	bl	_SRP_Verify_B_mod_N
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w0, [x21, #36]
	ldp	w1, w2, [x21, #16]
	bl	_SRP_Calc_u
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	w1, [x21, #32]
	mov	x0, x21
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.4:
	ldp	w1, w0, [x21, #24]
	mov	x2, x20
	bl	_SRP_Calc_x
	mov	x22, x0
	cbz	x0, LBB0_14
; %bb.5:
	ldp	w1, w0, [x21, #16]
	ldp	w4, w2, [x21, #8]
	mov	x3, x22
	mov	x5, x19
	bl	_SRP_Calc_client_key
	cbz	x0, LBB0_14
; %bb.6:
	mov	x23, x0
	bl	_BN_num_bytes
	mov	x24, x0
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_17
; %bb.7:
	mov	x25, x0
	mov	x0, x23
	mov	x1, x25
	bl	_BN_bn2bin
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	mov	w3, #1
	bl	_ssl_generate_master_secret
	mov	x21, x0
	b	LBB0_11
LBB0_8:
	mov	x19, #0
LBB0_9:
Lloh0:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
	mov	x22, #0
	mov	x23, #0
	mov	x20, #0
LBB0_10:
	mov	w21, #-1
LBB0_11:
	mov	x0, x23
	bl	_BN_clear_free
	mov	x0, x22
	bl	_BN_clear_free
	cbz	x20, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_OPENSSL_clear_free
LBB0_13:
	mov	x0, x19
	bl	_BN_clear_free
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh9:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _SSL_R_CALLBACK_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSL_R_CALLBACK_FAILED@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
	mov	x22, #0
LBB0_16:
	mov	x23, #0
	b	LBB0_10
LBB0_17:
Lloh27:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET,4,2 ; @SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_R_CALLBACK_FAILED,4,2      ; @SSL_R_CALLBACK_FAILED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
