	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_srp
_test_srp:                              ## @test_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_SRP_VBASE_new
	movq	_vbase@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_24
## %bb.1:
	cmpl	$1, %r14d
	ja	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_create_new_vbase
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_24
LBB0_3:
	movl	%r14d, %eax
	andl	$-2, %eax
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.5:
	movq	_tmpfilename@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_create_new_vfile
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_24
LBB0_4:
	movq	_srpvfile@GOTPCREL(%rip), %rbx
LBB0_6:
	movq	(%rbx), %rsi
	movq	(%r12), %rdi
	callq	_SRP_VBASE_init
	movq	_SRP_NO_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_24
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_cert@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_privkey@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movl	%r13d, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.9:
	movq	-56(%rbp), %rdi
	movq	_ssl_srp_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_srp_username_callback
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_24
## %bb.10:
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.11:
	movq	-56(%rbp), %rdi
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.12:
	movq	-48(%rbp), %rdi
	movl	(%rbx), %esi
	callq	_SSL_CTX_set_max_proto_version
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.13:
	movq	-48(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_SSL_CTX_set_srp_username
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_24
## %bb.14:
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	andl	$-2, %eax
	subl	%eax, %r14d
	movq	-48(%rbp), %rdi
	cmpl	$1, %r14d
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
LBB0_17:
	callq	_SSL_CTX_set_srp_password
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testl	%eax, %eax
	je	LBB0_24
## %bb.18:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	movq	-64(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	xorl	%edi, %edi
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	testl	%r14d, %r14d
	jmp	LBB0_22
LBB0_21:
	cmpl	$1, %r14d
LBB0_22:
	sete	%dil
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	$1, %r15d
LBB0_24:
	movq	(%r12), %rdi
	callq	_SRP_VBASE_free
	movq	$0, (%r12)
	movq	-64(%rbp), %rdi
	callq	_SSL_free
	movq	-72(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-48(%rbp), %rdi
	callq	_SSL_CTX_free
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test"

L_.str.1:                               ## @.str.1
	.asciz	"password"

	.comm	_vbase,8,3                      ## @vbase
	.comm	_tmpfilename,8,3                ## @tmpfilename
	.comm	_srpvfile,8,3                   ## @srpvfile
	.comm	_SRP_NO_ERROR,4,2               ## @SRP_NO_ERROR
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_ssl_srp_cb,4,2                 ## @ssl_srp_cb
L_.str.2:                               ## @.str.2
	.asciz	"SRP-AES-128-CBC-SHA"

	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"badpass"

	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_test_srp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_srp
_test_srp:                              ; @test_srp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	mov	x0, #0
	bl	_SRP_VBASE_new
Lloh0:
	adrp	x21, _vbase@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vbase@GOTPAGEOFF]
	str	x0, [x21]
	bl	_TEST_ptr
	cbz	w0, LBB0_23
; %bb.1:
	cmp	w19, #1
	b.hi	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_create_new_vbase
	bl	_TEST_true
	cbnz	w0, LBB0_7
	b	LBB0_23
LBB0_3:
	and	w8, w19, #0xfffffffe
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x20, _tmpfilename@GOTPAGE
Lloh7:
	ldr	x20, [x20, _tmpfilename@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_create_new_vfile
	bl	_TEST_true
	cbnz	w0, LBB0_6
	b	LBB0_23
LBB0_5:
Lloh12:
	adrp	x20, _srpvfile@GOTPAGE
Lloh13:
	ldr	x20, [x20, _srpvfile@GOTPAGEOFF]
LBB0_6:
	ldr	x1, [x20]
	ldr	x0, [x21]
	bl	_SRP_VBASE_init
Lloh14:
	adrp	x8, _SRP_NO_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SRP_NO_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_23
LBB0_7:
	bl	_TLS_server_method
	mov	x20, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh17:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _cert@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
Lloh23:
	adrp	x8, _privkey@GOTPAGE
Lloh24:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh25:
	ldr	w7, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x20
	mov	w3, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.8:
	ldr	x0, [sp, #16]
Lloh26:
	adrp	x8, _ssl_srp_cb@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ssl_srp_cb@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_srp_username_callback
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_23
; %bb.9:
	ldr	x0, [sp, #24]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.10:
	ldr	x0, [sp, #16]
Lloh31:
	adrp	x20, _TLS1_2_VERSION@GOTPAGE
Lloh32:
	ldr	x20, [x20, _TLS1_2_VERSION@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.11:
	ldr	x0, [sp, #24]
	ldr	w1, [x20]
	bl	_SSL_CTX_set_max_proto_version
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.12:
	ldr	x0, [sp, #24]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SSL_CTX_set_srp_username
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_23
; %bb.13:
	and	w8, w19, #0x1
	cmp	w19, #0
	cneg	w19, w8, lt
	ldr	x0, [sp, #24]
	cmp	w19, #1
	b.ne	LBB0_15
; %bb.14:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	bl	_SSL_CTX_set_srp_password
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	w0, LBB0_23
; %bb.17:
	ldp	x0, x1, [sp, #16]
	mov	x2, sp
	add	x3, sp, #8
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.18:
	ldp	x0, x1, [sp]
Lloh39:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	cbz	w0, LBB0_20
; %bb.19:
	cmp	w19, #0
	b	LBB0_21
LBB0_20:
	cmp	w19, #1
LBB0_21:
	cset	w0, eq
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.22:
	mov	w19, #1
	b	LBB0_24
LBB0_23:
	mov	w19, #0
LBB0_24:
	ldr	x0, [x21]
	bl	_SRP_VBASE_free
	str	xzr, [x21]
	ldr	x0, [sp]
	bl	_SSL_free
	ldr	x0, [sp, #8]
	bl	_SSL_free
	ldr	x0, [sp, #16]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #24]
	bl	_SSL_CTX_free
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test"

l_.str.1:                               ; @.str.1
	.asciz	"password"

	.comm	_vbase,8,3                      ; @vbase
	.comm	_tmpfilename,8,3                ; @tmpfilename
	.comm	_srpvfile,8,3                   ; @srpvfile
	.comm	_SRP_NO_ERROR,4,2               ; @SRP_NO_ERROR
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_ssl_srp_cb,4,2                 ; @ssl_srp_cb
l_.str.2:                               ; @.str.2
	.asciz	"SRP-AES-128-CBC-SHA"

	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"badpass"

	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_test_srp
.subsections_via_symbols
