	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_write_certificate_verify
_ssl_write_certificate_verify:          ## @ssl_write_certificate_verify
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	48(%rdi), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	%r14, %rdi
	callq	_mbedtls_ssl_derive_keys
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	jmp	LBB0_14
LBB0_2:
	movq	(%r15), %rax
	movq	_MBEDTLS_KEY_EXCHANGE_PSK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movq	_MBEDTLS_KEY_EXCHANGE_RSA_PSK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	movq	_MBEDTLS_KEY_EXCHANGE_DHE_PSK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_MBEDTLS_KEY_EXCHANGE_ECJPAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.9:
	movq	%r14, %rdi
	callq	_mbedtls_ssl_own_cert
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	%r14, %rdi
	callq	_mbedtls_ssl_own_key
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	56(%r14), %rax
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	incl	28(%r14)
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE,4,2 ## @MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_MD_NONE,8,3            ## @MBEDTLS_MD_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> write certificate verify"

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

	.comm	_MBEDTLS_KEY_EXCHANGE_PSK,8,3   ## @MBEDTLS_KEY_EXCHANGE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_RSA_PSK,8,3 ## @MBEDTLS_KEY_EXCHANGE_RSA_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECDHE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_DHE_PSK,8,3 ## @MBEDTLS_KEY_EXCHANGE_DHE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECJPAKE
L_.str.2:                               ## @.str.2
	.asciz	"<= skip write certificate verify"

L_.str.3:                               ## @.str.3
	.asciz	"got no private key for certificate"

	.comm	_MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED,4,2 ## @MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED
L_.str.4:                               ## @.str.4
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.comm	_MBEDTLS_MD_SHA1,8,3            ## @MBEDTLS_MD_SHA1
	.comm	_MBEDTLS_MD_SHA256,8,3          ## @MBEDTLS_MD_SHA256
	.comm	_MBEDTLS_MD_SHA384,8,3          ## @MBEDTLS_MD_SHA384
	.comm	_MBEDTLS_PK_ECDSA,4,2           ## @MBEDTLS_PK_ECDSA
	.comm	_MBEDTLS_SSL_HASH_SHA256,1,0    ## @MBEDTLS_SSL_HASH_SHA256
	.comm	_MBEDTLS_SSL_HASH_SHA384,1,0    ## @MBEDTLS_SSL_HASH_SHA384
	.comm	_MBEDTLS_SSL_HS_CERTIFICATE_VERIFY,1,0 ## @MBEDTLS_SSL_HS_CERTIFICATE_VERIFY
	.comm	_MBEDTLS_SSL_MINOR_VERSION_3,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_3
	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,4,2  ## @MBEDTLS_SSL_MSG_HANDSHAKE
	.no_dead_strip	_ssl_write_certificate_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_write_certificate_verify
_ssl_write_certificate_verify:          ; @ssl_write_certificate_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #48]
	ldr	x21, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	x0, x19
	bl	_mbedtls_ssl_derive_keys
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_MBEDTLS_SSL_DEBUG_RET
	b	LBB0_8
LBB0_2:
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _MBEDTLS_KEY_EXCHANGE_PSK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MBEDTLS_KEY_EXCHANGE_PSK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _MBEDTLS_KEY_EXCHANGE_RSA_PSK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MBEDTLS_KEY_EXCHANGE_RSA_PSK@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _MBEDTLS_KEY_EXCHANGE_ECDHE_PSK@GOTPAGE
Lloh14:
	ldr	x11, [x11, _MBEDTLS_KEY_EXCHANGE_ECDHE_PSK@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
Lloh16:
	adrp	x12, _MBEDTLS_KEY_EXCHANGE_DHE_PSK@GOTPAGE
Lloh17:
	ldr	x12, [x12, _MBEDTLS_KEY_EXCHANGE_DHE_PSK@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x12]
Lloh19:
	adrp	x13, _MBEDTLS_KEY_EXCHANGE_ECJPAKE@GOTPAGE
Lloh20:
	ldr	x13, [x13, _MBEDTLS_KEY_EXCHANGE_ECJPAKE@GOTPAGEOFF]
Lloh21:
	ldr	x13, [x13]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_mbedtls_ssl_own_cert
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_mbedtls_ssl_own_key
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh24:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w20, #0
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_10:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh33:
	adrp	x8, _MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
	b	LBB0_8
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.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 AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE,4,2 ; @MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE
	.comm	_MBEDTLS_MD_NONE,8,3            ; @MBEDTLS_MD_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> write certificate verify"

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

	.comm	_MBEDTLS_KEY_EXCHANGE_PSK,8,3   ; @MBEDTLS_KEY_EXCHANGE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_RSA_PSK,8,3 ; @MBEDTLS_KEY_EXCHANGE_RSA_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,8,3 ; @MBEDTLS_KEY_EXCHANGE_ECDHE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_DHE_PSK,8,3 ; @MBEDTLS_KEY_EXCHANGE_DHE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,3 ; @MBEDTLS_KEY_EXCHANGE_ECJPAKE
l_.str.2:                               ; @.str.2
	.asciz	"<= skip write certificate verify"

l_.str.3:                               ; @.str.3
	.asciz	"got no private key for certificate"

	.comm	_MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED,4,2 ; @MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED
l_.str.4:                               ; @.str.4
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.comm	_MBEDTLS_MD_SHA1,8,3            ; @MBEDTLS_MD_SHA1
	.comm	_MBEDTLS_MD_SHA256,8,3          ; @MBEDTLS_MD_SHA256
	.comm	_MBEDTLS_MD_SHA384,8,3          ; @MBEDTLS_MD_SHA384
	.comm	_MBEDTLS_PK_ECDSA,4,2           ; @MBEDTLS_PK_ECDSA
	.comm	_MBEDTLS_SSL_HASH_SHA256,1,0    ; @MBEDTLS_SSL_HASH_SHA256
	.comm	_MBEDTLS_SSL_HASH_SHA384,1,0    ; @MBEDTLS_SSL_HASH_SHA384
	.comm	_MBEDTLS_SSL_HS_CERTIFICATE_VERIFY,1,0 ; @MBEDTLS_SSL_HS_CERTIFICATE_VERIFY
	.comm	_MBEDTLS_SSL_MINOR_VERSION_3,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_3
	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,4,2  ; @MBEDTLS_SSL_MSG_HANDSHAKE
	.no_dead_strip	_ssl_write_certificate_verify
.subsections_via_symbols
