	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srp_generate_server_master_secret ## -- Begin function srp_generate_server_master_secret
	.p2align	4, 0x90
_srp_generate_server_master_secret:     ## @srp_generate_server_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	12(%rdi), %edi
	callq	_SRP_Verify_A_mod_N
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movl	12(%rbx), %edi
	movl	16(%rbx), %esi
	callq	_SRP_Calc_u
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	%rax, %rdx
	callq	_SRP_Calc_server_key
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	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_6
## %bb.7:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_BN_bn2bin
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_ssl_generate_master_secret
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r12, %rdi
	callq	_BN_clear_free
	movq	%r15, %rdi
	callq	_BN_clear_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_6:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET,4,2 ## @SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET
	.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_server_master_secret ; -- Begin function srp_generate_server_master_secret
	.p2align	2
_srp_generate_server_master_secret:     ; @srp_generate_server_master_secret
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x21]
	bl	_SRP_Verify_A_mod_N
	cbz	w0, LBB0_5
; %bb.1:
	ldp	w0, w1, [x21, #12]
	ldr	w2, [x21]
	bl	_SRP_Calc_u
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldp	w1, w0, [x21, #8]
	ldp	w4, w3, [x21]
	mov	x2, x19
	bl	_SRP_Calc_server_key
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_BN_num_bytes
	mov	x22, x0
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_BN_bn2bin
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	w3, #1
	bl	_ssl_generate_master_secret
	mov	x21, x0
	b	LBB0_9
LBB0_5:
	mov	x20, #0
	mov	x19, #0
	b	LBB0_8
LBB0_6:
	mov	x20, #0
	b	LBB0_8
LBB0_7:
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_SERVER_MASTER_SECRET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_SSLfatal
LBB0_8:
	mov	w21, #-1
LBB0_9:
	mov	x0, x20
	bl	_BN_clear_free
	mov	x0, x19
	bl	_BN_clear_free
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET,4,2 ; @SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
