	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execute_test_ktls
_execute_test_ktls:                     ## @execute_test_ktls
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r13d
	movq	$0, -72(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	-60(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_create_test_sockets
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-60(%rbp), %edi
	callq	_ktls_chk_platform
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_cert@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_privkey@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	leaq	-80(%rbp), %r8
	leaq	-72(%rbp), %r9
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%ecx, %edx
	pushq	%rbx
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
## %bb.5:
	movq	-72(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
## %bb.6:
	movq	-80(%rbp), %rdi
	movq	-72(%rbp), %rsi
	movl	-64(%rbp), %r8d
	movl	-60(%rbp), %r9d
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_create_ssl_objects2
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
## %bb.7:
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rdi
	movq	_SSL_MODE_NO_KTLS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_set_mode
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
LBB0_9:
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi
	movq	_SSL_MODE_NO_KTLS_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_set_mode
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
LBB0_11:
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rdi
	movq	_SSL_MODE_NO_KTLS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_set_mode
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
LBB0_13:
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jne	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi
	movq	_SSL_MODE_NO_KTLS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_set_mode
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_33
LBB0_15:
	movq	-48(%rbp), %rdi
	movq	-56(%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_33
## %bb.16:
	movq	-56(%rbp), %rax
	movl	4(%rax), %edi
	callq	_BIO_get_ktls_send
	movl	%eax, %edi
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.18:
	callq	_TEST_true
	jmp	LBB0_19
LBB0_1:
	xorl	%r15d, %r15d
LBB0_33:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	callq	_SSL_shutdown
	movq	-56(%rbp), %rdi
	callq	_SSL_free
LBB0_35:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.36:
	callq	_SSL_shutdown
	movq	-48(%rbp), %rdi
	callq	_SSL_free
LBB0_37:
	movq	-80(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-72(%rbp), %rdi
	callq	_SSL_CTX_free
	jmp	LBB0_38
LBB0_3:
	movl	$1, %r15d
LBB0_38:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	_TEST_false
LBB0_19:
	testl	%eax, %eax
	je	LBB0_33
## %bb.20:
	movq	-48(%rbp), %rax
	movl	4(%rax), %edi
	callq	_BIO_get_ktls_send
	movl	%eax, %edi
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.22:
	callq	_TEST_true
	jmp	LBB0_23
LBB0_21:
	callq	_TEST_false
LBB0_23:
	testl	%eax, %eax
	je	LBB0_33
## %bb.24:
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	callq	_BIO_get_ktls_recv
	movl	%eax, %edi
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.26:
	callq	_TEST_true
	jmp	LBB0_27
LBB0_25:
	callq	_TEST_false
LBB0_27:
	testl	%eax, %eax
	je	LBB0_33
## %bb.28:
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_BIO_get_ktls_recv
	movl	%eax, %edi
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.30:
	callq	_TEST_true
	jmp	LBB0_31
LBB0_29:
	callq	_TEST_false
LBB0_31:
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	movl	-60(%rbp), %edx
	movl	-64(%rbp), %ecx
	callq	_ping_pong_query
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AES128-GCM-SHA256"

	.comm	_SSL_MODE_NO_KTLS_TX,4,2        ## @SSL_MODE_NO_KTLS_TX
	.comm	_SSL_MODE_NO_KTLS_RX,4,2        ## @SSL_MODE_NO_KTLS_RX
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_execute_test_ktls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execute_test_ktls
_execute_test_ktls:                     ; @execute_test_ktls
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	stp	xzr, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_create_test_sockets
	bl	_TEST_true
	cbz	w0, LBB0_28
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_ktls_chk_platform
	cbz	w0, LBB0_16
; %bb.2:
	bl	_TLS_server_method
	mov	x23, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh0:
	adrp	x8, _TLS1_2_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_2_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]
	add	x4, sp, #32
	add	x5, sp, #40
	mov	x0, x23
	mov	x3, x2
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_28
; %bb.3:
	ldr	x0, [sp, #40]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_28
; %bb.4:
	ldp	x0, x1, [sp, #32]
	ldp	w4, w5, [sp, #8]
	add	x2, sp, #16
	add	x3, sp, #24
	bl	_create_ssl_objects2
	bl	_TEST_true
	cbz	w0, LBB0_28
; %bb.5:
	cbnz	w22, LBB0_7
; %bb.6:
	ldr	x0, [sp, #24]
Lloh11:
	adrp	x8, _SSL_MODE_NO_KTLS_TX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_MODE_NO_KTLS_TX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_SSL_set_mode
	bl	_TEST_true
	cbz	w0, LBB0_28
LBB0_7:
	cbnz	w21, LBB0_9
; %bb.8:
	ldr	x0, [sp, #16]
Lloh14:
	adrp	x8, _SSL_MODE_NO_KTLS_TX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_MODE_NO_KTLS_TX@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_SSL_set_mode
	bl	_TEST_true
	cbz	w0, LBB0_28
LBB0_9:
	cbnz	w20, LBB0_11
; %bb.10:
	ldr	x0, [sp, #24]
Lloh17:
	adrp	x8, _SSL_MODE_NO_KTLS_RX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_MODE_NO_KTLS_RX@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_SSL_set_mode
	bl	_TEST_true
	cbz	w0, LBB0_28
LBB0_11:
	cbnz	w19, LBB0_13
; %bb.12:
	ldr	x0, [sp, #16]
Lloh20:
	adrp	x8, _SSL_MODE_NO_KTLS_RX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_MODE_NO_KTLS_RX@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_SSL_set_mode
	bl	_TEST_true
	cbz	w0, LBB0_28
LBB0_13:
	ldp	x0, x1, [sp, #16]
Lloh23:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_28
; %bb.14:
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #4]
	bl	_BIO_get_ktls_send
	cbz	w22, LBB0_17
; %bb.15:
	bl	_TEST_true
	cbnz	w0, LBB0_18
	b	LBB0_28
LBB0_16:
	mov	w19, #1
	b	LBB0_34
LBB0_17:
	bl	_TEST_false
	cbz	w0, LBB0_28
LBB0_18:
	ldr	x8, [sp, #16]
	ldr	w0, [x8, #4]
	bl	_BIO_get_ktls_send
	cbz	w21, LBB0_20
; %bb.19:
	bl	_TEST_true
	cbnz	w0, LBB0_21
	b	LBB0_28
LBB0_20:
	bl	_TEST_false
	cbz	w0, LBB0_28
LBB0_21:
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_BIO_get_ktls_recv
	cbz	w20, LBB0_23
; %bb.22:
	bl	_TEST_true
	cbnz	w0, LBB0_24
	b	LBB0_28
LBB0_23:
	bl	_TEST_false
	cbz	w0, LBB0_28
LBB0_24:
	ldr	x8, [sp, #16]
	ldr	w0, [x8]
	bl	_BIO_get_ktls_recv
	cbz	w19, LBB0_27
; %bb.25:
	bl	_TEST_true
	cbz	w0, LBB0_28
LBB0_26:
	ldp	x1, x0, [sp, #16]
	ldp	w3, w2, [sp, #8]
	bl	_ping_pong_query
	bl	_TEST_true
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_29
LBB0_27:
	bl	_TEST_false
	cbnz	w0, LBB0_26
LBB0_28:
	mov	w19, #0
LBB0_29:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_SSL_shutdown
	ldr	x0, [sp, #24]
	bl	_SSL_free
LBB0_31:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_33
; %bb.32:
	bl	_SSL_shutdown
	ldr	x0, [sp, #16]
	bl	_SSL_free
LBB0_33:
	ldr	x0, [sp, #32]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #40]
	bl	_SSL_CTX_free
LBB0_34:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AES128-GCM-SHA256"

	.comm	_SSL_MODE_NO_KTLS_TX,4,2        ; @SSL_MODE_NO_KTLS_TX
	.comm	_SSL_MODE_NO_KTLS_RX,4,2        ; @SSL_MODE_NO_KTLS_RX
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_execute_test_ktls
.subsections_via_symbols
