	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setupearly_data_test
_setupearly_data_test:                  ## @setupearly_data_test
	.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	%r9d, %r12d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r15d
	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), %r11d
	movl	%r15d, %edi
	xorl	%r13d, %r13d
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movq	%rbx, %r15
	movq	%rbx, %r9
	pushq	%r11
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_26
## %bb.2:
	movq	(%r14), %rdi
	movq	%r15, %rbx
LBB0_3:
	movq	_SSL3_RT_MAX_PLAIN_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_max_early_data
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$1, %r12d
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_SSL_CTX_set_read_ahead
	movq	(%r14), %rdi
	movl	$1, %esi
	callq	_SSL_CTX_set_read_ahead
	jmp	LBB0_9
LBB0_6:
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_7:
	cmpl	$2, %r12d
	jne	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	movq	_use_session_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_psk_use_session_callback
	movq	(%r14), %rdi
	movq	_find_session_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_psk_find_session_callback
	movq	_use_session_cb_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_find_session_cb_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pskid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_srvid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	movq	(%r14), %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rsi
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_26
## %bb.10:
	cmpl	$1, %r12d
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_SSL_set_tlsext_host_name
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_26
LBB0_12:
	cmpl	$2, %r12d
	jne	LBB0_19
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_create_a_psk
	movq	_clientpsk@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_24
## %bb.14:
	movq	(%rbx), %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_SSL_SESSION_set_max_early_data
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.15:
	movq	(%rbx), %rdi
	callq	_SSL_SESSION_up_ref
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	movq	(%rbx), %rdi
	movq	_serverpsk@GOTPCREL(%rip), %r14
	movq	%rdi, (%r14)
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_23
## %bb.17:
	callq	_SSL_SESSION_up_ref
	movl	%eax, %edi
	callq	_TEST_true
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_28
## %bb.18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movl	$1, %r13d
	jmp	LBB0_26
LBB0_19:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_23
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %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_26
## %bb.21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_SSL_get1_session
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%rbx), %rdi
	callq	_SSL_shutdown
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	callq	_SSL_shutdown
	movq	(%r12), %rdi
	callq	_SSL_free
	movq	(%rbx), %rdi
	callq	_SSL_free
	movq	$0, (%rbx)
	movq	$0, (%r12)
	movq	(%r14), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	callq	_SSL_set_session
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	jmp	LBB0_26
LBB0_23:
	movl	$1, %r13d
	jmp	LBB0_26
LBB0_24:
	movq	(%rbx), %rdi
	callq	_SSL_SESSION_free
LBB0_25:
	movq	$0, (%rbx)
LBB0_26:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	_SSL_SESSION_free
	movq	(%r14), %rdi
	callq	_SSL_SESSION_free
	movq	$0, (%r14)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_SSL3_RT_MAX_PLAIN_LENGTH,4,2   ## @SSL3_RT_MAX_PLAIN_LENGTH
	.comm	_use_session_cb,4,2             ## @use_session_cb
	.comm	_find_session_cb,4,2            ## @find_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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"localhost"

	.comm	_clientpsk,8,3                  ## @clientpsk
	.comm	_serverpsk,8,3                  ## @serverpsk
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_setupearly_data_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setupearly_data_test
_setupearly_data_test:                  ; @setupearly_data_test
	.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	x24, x5
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x0, [x1]
	cbnz	x0, LBB0_3
; %bb.1:
	bl	_TLS_server_method
	mov	x25, 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]
Lloh3:
	adrp	x8, _cert@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x8, _privkey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	x0, x25
	mov	w3, #0
	mov	x4, x23
	mov	x5, x22
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.2:
	ldr	x0, [x23]
LBB0_3:
Lloh9:
	adrp	x8, _SSL3_RT_MAX_PLAIN_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL3_RT_MAX_PLAIN_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_max_early_data
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.4:
	cmp	w24, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x22]
	mov	w1, #1
	bl	_SSL_CTX_set_read_ahead
	ldr	x0, [x23]
	mov	w1, #1
	bl	_SSL_CTX_set_read_ahead
	b	LBB0_8
LBB0_6:
	cmp	w24, #2
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [x22]
Lloh12:
	adrp	x8, _use_session_cb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _use_session_cb@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_psk_use_session_callback
	ldr	x0, [x23]
Lloh15:
	adrp	x8, _find_session_cb@GOTPAGE
Lloh16:
	ldr	x8, [x8, _find_session_cb@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_psk_find_session_callback
Lloh18:
	adrp	x8, _use_session_cb_cnt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _use_session_cb_cnt@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x8, _find_session_cb_cnt@GOTPAGE
Lloh22:
	ldr	x8, [x8, _find_session_cb_cnt@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
Lloh24:
	adrp	x8, _pskid@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pskid@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _srvid@GOTPAGE
Lloh28:
	ldr	x9, [x9, _srvid@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
LBB0_8:
	ldr	x0, [x23]
	ldr	x1, [x22]
	mov	x2, x21
	mov	x3, x20
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.9:
	cmp	w24, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x20]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SSL_set_tlsext_host_name
	bl	_TEST_true
	cbnz	w0, LBB0_18
	b	LBB0_25
LBB0_11:
	cmp	w24, #2
	b.ne	LBB0_18
; %bb.12:
	ldr	x0, [x20]
	bl	_create_a_psk
Lloh32:
	adrp	x20, _clientpsk@GOTPAGE
Lloh33:
	ldr	x20, [x20, _clientpsk@GOTPAGEOFF]
	str	x0, [x20]
	bl	_TEST_ptr
	cbz	w0, LBB0_23
; %bb.13:
	ldr	x0, [x20]
	mov	w1, #256
	bl	_SSL_SESSION_set_max_early_data
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.14:
	ldr	x0, [x20]
	bl	_SSL_SESSION_up_ref
	bl	_TEST_true
	cbz	w0, LBB0_23
; %bb.15:
	ldr	x0, [x20]
Lloh34:
	adrp	x21, _serverpsk@GOTPAGE
Lloh35:
	ldr	x21, [x21, _serverpsk@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x19, LBB0_22
; %bb.16:
	bl	_SSL_SESSION_up_ref
	bl	_TEST_true
	mov	x8, x0
	ldr	x0, [x20]
	cbz	w8, LBB0_26
; %bb.17:
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_25
LBB0_18:
	cbz	x19, LBB0_22
; %bb.19:
	ldr	x0, [x21]
	ldr	x1, [x20]
Lloh36:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.20:
	ldr	x0, [x20]
	bl	_SSL_get1_session
	str	x0, [x19]
	ldr	x0, [x20]
	bl	_SSL_shutdown
	ldr	x0, [x21]
	bl	_SSL_shutdown
	ldr	x0, [x21]
	bl	_SSL_free
	ldr	x0, [x20]
	bl	_SSL_free
	str	xzr, [x20]
	str	xzr, [x21]
	ldr	x0, [x23]
	ldr	x1, [x22]
	mov	x2, x21
	mov	x3, x20
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_25
; %bb.21:
	ldr	x0, [x20]
	ldr	x1, [x19]
	bl	_SSL_set_session
	bl	_TEST_true
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_25
LBB0_22:
	mov	w0, #1
	b	LBB0_25
LBB0_23:
	ldr	x0, [x20]
	bl	_SSL_SESSION_free
	mov	w0, #0
LBB0_24:
	str	xzr, [x20]
LBB0_25:
	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_26:
	bl	_SSL_SESSION_free
	ldr	x0, [x21]
	bl	_SSL_SESSION_free
	mov	w0, #0
	str	xzr, [x21]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_SSL3_RT_MAX_PLAIN_LENGTH,4,2   ; @SSL3_RT_MAX_PLAIN_LENGTH
	.comm	_use_session_cb,4,2             ; @use_session_cb
	.comm	_find_session_cb,4,2            ; @find_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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"localhost"

	.comm	_clientpsk,8,3                  ; @clientpsk
	.comm	_serverpsk,8,3                  ; @serverpsk
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_setupearly_data_test
.subsections_via_symbols
