	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_crypt_v2_wrap_unwrap_wrong_key
_tls_crypt_v2_wrap_unwrap_wrong_key:    ## @tls_crypt_v2_wrap_unwrap_wrong_key
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	leaq	12(%rbx), %rdi
	leaq	28(%rbx), %rsi
	leaq	24(%rbx), %rdx
	leaq	4(%rbx), %r14
	leaq	8(%rbx), %rcx
	leaq	20(%rbx), %r8
	callq	_tls_crypt_v2_wrap_client_key
	movl	%eax, %edi
	callq	_assert_true
	xorl	%eax, %eax
	callq	_tls_crypt_kt
	movl	%eax, -48(%rbp)
	movq	%r14, %rdi
	callq	_free_key_ctx_bi
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_KEY_DIRECTION_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %r8
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_init_key_ctx_bi
	movl	$0, -40(%rbp)
	movl	12(%rbx), %edx
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_tls_crypt_v2_unwrap_client_key
	movl	%eax, %edi
	callq	_assert_false
	movl	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert_true
	movq	%rbx, %rdi
	callq	_BLEN
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert_true
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_DIRECTION_BIDIRECTIONAL,4,2 ## @KEY_DIRECTION_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong tls-crypt-v2 server key"

	.no_dead_strip	_tls_crypt_v2_wrap_unwrap_wrong_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_crypt_v2_wrap_unwrap_wrong_key
_tls_crypt_v2_wrap_unwrap_wrong_key:    ; @tls_crypt_v2_wrap_unwrap_wrong_key
	.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
	ldr	x19, [x0]
	add	x0, x19, #12
	add	x1, x19, #28
	add	x2, x19, #24
	add	x20, x19, #4
	add	x3, x19, #8
	add	x4, x19, #20
	bl	_tls_crypt_v2_wrap_client_key
	bl	_assert_true
	bl	_tls_crypt_kt
	str	w0, [sp, #24]
	mov	x0, x20
	bl	_free_key_ctx_bi
	add	x21, x19, #16
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _KEY_DIRECTION_BIDIRECTIONAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_DIRECTION_BIDIRECTIONAL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x4, l_.str@PAGE
Lloh4:
	add	x4, x4, l_.str@PAGEOFF
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x21
	bl	_init_key_ctx_bi
	str	wzr, [sp, #16]
	ldr	w2, [x19, #12]
	add	x0, sp, #16
	mov	x1, x19
	mov	x3, x20
	bl	_tls_crypt_v2_unwrap_client_key
	bl	_assert_false
	str	wzr, [sp, #8]
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_assert_true
	mov	x0, x19
	bl	_BLEN
	cmp	x0, #0
	cset	w0, eq
	bl	_assert_true
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_DIRECTION_BIDIRECTIONAL,4,2 ; @KEY_DIRECTION_BIDIRECTIONAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong tls-crypt-v2 server key"

	.no_dead_strip	_tls_crypt_v2_wrap_unwrap_wrong_key
.subsections_via_symbols
