	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_psk_tickets
_test_psk_tickets:                      ## @test_psk_tickets
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movl	$1, -76(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_create_ssl_ctx_pair
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	-56(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	movl	$4, %edx
	callq	_SSL_CTX_set_session_id_context
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	-48(%rbp), %rdi
	movq	_SSL_SESS_CACHE_CLIENT@GOTPCREL(%rip), %rax
	movq	_SSL_SESS_CACHE_NO_INTERNAL_STORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_SSL_CTX_set_session_cache_mode
	movq	-48(%rbp), %rdi
	movq	_use_session_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_psk_use_session_callback
	movq	-56(%rbp), %rdi
	movq	_find_session_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_psk_find_session_callback
	movq	-48(%rbp), %rdi
	movq	_new_session_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_sess_set_new_cb
	movq	_use_session_cb_cnt@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	_find_session_cb_cnt@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movq	_pskid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_srvid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_new_called@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	xorl	%r14d, %r14d
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	-64(%rbp), %rdi
	callq	_create_a_psk
	movq	_serverpsk@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_clientpsk@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movq	(%rbx), %rdi
	callq	_SSL_SESSION_up_ref
	movq	-72(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	(%r13), %rsi
	movl	$1, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	(%r12), %rsi
	movl	$1, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rsi
	movl	$1, %edi
	callq	_TEST_int_eq
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_8:
	movq	-72(%rbp), %rdi
	callq	_SSL_free
	movq	-64(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-48(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	_clientpsk@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_SSL_SESSION_free
	movq	_serverpsk@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_SSL_SESSION_free
	movq	$0, (%rbx)
	movq	$0, (%r15)
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_SSL_SESS_CACHE_CLIENT,4,2      ## @SSL_SESS_CACHE_CLIENT
	.comm	_SSL_SESS_CACHE_NO_INTERNAL_STORE,4,2 ## @SSL_SESS_CACHE_NO_INTERNAL_STORE
	.comm	_use_session_cb,4,2             ## @use_session_cb
	.comm	_find_session_cb,4,2            ## @find_session_cb
	.comm	_new_session_cb,4,2             ## @new_session_cb
	.comm	_use_session_cb_cnt,8,3         ## @use_session_cb_cnt
	.comm	_find_session_cb_cnt,8,3        ## @find_session_cb_cnt
	.comm	_pskid,4,2                      ## @pskid
	.comm	_srvid,4,2                      ## @srvid
	.comm	_new_called,8,3                 ## @new_called
	.comm	_serverpsk,8,3                  ## @serverpsk
	.comm	_clientpsk,8,3                  ## @clientpsk
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_test_psk_tickets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_psk_tickets
_test_psk_tickets:                      ; @test_psk_tickets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	mov	w8, #1
	str	w8, [sp, #12]
	bl	_TLS_server_method
	mov	x19, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh0:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #40
	add	x5, sp, #32
	mov	x0, x19
	mov	w3, #0
	mov	x6, #0
	mov	x7, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
Lloh3:
	adrp	x20, _clientpsk@GOTPAGE
Lloh4:
	ldr	x20, [x20, _clientpsk@GOTPAGEOFF]
Lloh5:
	adrp	x21, _serverpsk@GOTPAGE
Lloh6:
	ldr	x21, [x21, _serverpsk@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x0, [sp, #40]
	add	x1, sp, #12
	mov	w2, #4
	bl	_SSL_CTX_set_session_id_context
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.2:
Lloh7:
	adrp	x8, _SSL_SESS_CACHE_CLIENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSL_SESS_CACHE_CLIENT@GOTPAGEOFF]
	ldr	x0, [sp, #32]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SSL_SESS_CACHE_NO_INTERNAL_STORE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SSL_SESS_CACHE_NO_INTERNAL_STORE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_SSL_CTX_set_session_cache_mode
	ldr	x0, [sp, #32]
Lloh13:
	adrp	x8, _use_session_cb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _use_session_cb@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_psk_use_session_callback
	ldr	x0, [sp, #40]
Lloh16:
	adrp	x8, _find_session_cb@GOTPAGE
Lloh17:
	ldr	x8, [x8, _find_session_cb@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_psk_find_session_callback
	ldr	x0, [sp, #32]
Lloh19:
	adrp	x8, _new_session_cb@GOTPAGE
Lloh20:
	ldr	x8, [x8, _new_session_cb@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_SSL_CTX_sess_set_new_cb
Lloh22:
	adrp	x22, _use_session_cb_cnt@GOTPAGE
Lloh23:
	ldr	x22, [x22, _use_session_cb_cnt@GOTPAGEOFF]
	str	xzr, [x22]
Lloh24:
	adrp	x23, _find_session_cb_cnt@GOTPAGE
Lloh25:
	ldr	x23, [x23, _find_session_cb_cnt@GOTPAGEOFF]
	str	xzr, [x23]
Lloh26:
	adrp	x8, _pskid@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pskid@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _srvid@GOTPAGE
Lloh30:
	ldr	x9, [x9, _srvid@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
Lloh32:
	adrp	x19, _new_called@GOTPAGE
Lloh33:
	ldr	x19, [x19, _new_called@GOTPAGEOFF]
	str	xzr, [x19]
	ldp	x1, x0, [sp, #32]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x0, [sp, #16]
	bl	_create_a_psk
	str	x0, [x21]
	str	x0, [x20]
	bl	_TEST_ptr
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x0, [x20]
	bl	_SSL_SESSION_up_ref
	ldp	x1, x0, [sp, #16]
Lloh34:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x1, [x23]
	mov	w0, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x1, [x22]
	mov	w0, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x1, [x19]
	mov	w0, #1
	bl	_TEST_int_eq
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_9
LBB0_8:
	mov	w19, #0
LBB0_9:
	ldr	x0, [sp, #24]
	bl	_SSL_free
	ldr	x0, [sp, #16]
	bl	_SSL_free
	ldr	x0, [sp, #40]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #32]
	bl	_SSL_CTX_free
	ldr	x0, [x20]
	bl	_SSL_SESSION_free
	ldr	x0, [x21]
	bl	_SSL_SESSION_free
	str	xzr, [x21]
	str	xzr, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_SSL_SESS_CACHE_CLIENT,4,2      ; @SSL_SESS_CACHE_CLIENT
	.comm	_SSL_SESS_CACHE_NO_INTERNAL_STORE,4,2 ; @SSL_SESS_CACHE_NO_INTERNAL_STORE
	.comm	_use_session_cb,4,2             ; @use_session_cb
	.comm	_find_session_cb,4,2            ; @find_session_cb
	.comm	_new_session_cb,4,2             ; @new_session_cb
	.comm	_use_session_cb_cnt,8,3         ; @use_session_cb_cnt
	.comm	_find_session_cb_cnt,8,3        ; @find_session_cb_cnt
	.comm	_pskid,4,2                      ; @pskid
	.comm	_srvid,4,2                      ; @srvid
	.comm	_new_called,8,3                 ; @new_called
	.comm	_serverpsk,8,3                  ; @serverpsk
	.comm	_clientpsk,8,3                  ; @clientpsk
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_test_psk_tickets
.subsections_via_symbols
