	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_write_client_certificate_verify
_tls_write_client_certificate_verify:   ## @tls_write_client_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$472, %rsp                      ## imm = 0x1D8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -488(%rbp)                ## 8-byte Spill
	movq	(%rsi), %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15,%r13,4)
	movq	_MD5_MAC_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -456(%rbp)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	leaq	-448(%rbp), %rsi
	leaq	-456(%rbp), %rdx
	callq	_crypto_hash_finish
	testq	%rax, %rax
	js	LBB0_8
## %bb.2:
	movq	(%r12), %rax
	movq	$0, 8(%rbx)
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -456(%rbp)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	leaq	-448(,%rax,4), %rsi
	addq	%rbp, %rsi
	leaq	-456(%rbp), %rdx
	callq	_crypto_hash_finish
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movq	$0, (%rbx)
	movq	-456(%rbp), %rcx
	addq	(%r12), %rcx
	leaq	(%r15,%r13,4), %r12
	addq	$16, %r12
	movq	%rcx, -456(%rbp)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-448(%rbp), %rdx
	callq	_wpa_hexdump
	leaq	8(%r12), %rcx
	movq	%r14, %rax
	movq	%rcx, -472(%rbp)                ## 8-byte Spill
	subq	%rcx, %rax
	sarq	$2, %rax
	movq	%rax, -464(%rbp)
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	(%rax), %edi
	movq	-456(%rbp), %rdx
	leaq	-448(%rbp), %rsi
	leaq	-464(%rbp), %r8
	movq	-472(%rbp), %rcx                ## 8-byte Reload
	callq	_crypto_private_key_sign_pkcs1
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	leaq	(%r15,%r13,4), %rax
	movq	%rax, -480(%rbp)                ## 8-byte Spill
	leaq	(%r15,%r13,4), %r12
	addq	$4, %r12
	movq	-464(%rbp), %rsi
	callq	_WPA_PUT_BE16
	movq	-464(%rbp), %rax
	movq	-472(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	movq	%r13, %rsi
	subq	%r12, %rsi
	shrq	$2, %rsi
	addl	$-3, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WPA_PUT_BE24
	leaq	24(%rbx), %rdi
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	%r15, %r14
	shrq	$2, %r14
	movq	-480(%rbp), %r8                 ## 8-byte Reload
	subq	%r8, %r13
	shrq	$2, %r13
	leaq	-496(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movq	%r8, %r14
	movl	%r13d, %r9d
	callq	_tlsv1_record_send
	testq	%rax, %rax
	js	LBB0_16
## %bb.7:
	movq	-496(%rbp), %rax
	leaq	(%r15,%rax,4), %r15
	movq	%r15, %rdx
	subq	%r14, %rdx
	shrq	$2, %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_tls_verify_hash_add
	movq	-488(%rbp), %rax                ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_8:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_tls_alert
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_hash_finish
	movq	$0, (%rbx)
	jmp	LBB0_13
LBB0_9:
	movq	$0, (%rbx)
	jmp	LBB0_12
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	callq	_wpa_printf
LBB0_12:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_tls_alert
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	addq	$472, %rsp                      ## imm = 0x1D8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Send CertificateVerify"

	.comm	_TLS_RECORD_HEADER_LEN,4,2      ## @TLS_RECORD_HEADER_LEN
	.comm	_TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY,4,2 ## @TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY
	.comm	_MD5_MAC_LEN,8,3                ## @MD5_MAC_LEN
	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
	.comm	_SHA1_MAC_LEN,8,3               ## @SHA1_MAC_LEN
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: CertificateVerify hash"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Failed to sign hash (PKCS #1)"

	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @TLS_CONTENT_TYPE_HANDSHAKE
L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Failed to generate a record"

	.comm	_SHA256_MAC_LEN,8,3             ## @SHA256_MAC_LEN
	.comm	_TLS_HASH_ALG_SHA256,4,2        ## @TLS_HASH_ALG_SHA256
	.comm	_TLS_SIGN_ALG_RSA,4,2           ## @TLS_SIGN_ALG_RSA
	.comm	_TLS_VERSION_1_2,8,3            ## @TLS_VERSION_1_2
	.no_dead_strip	_tls_write_client_certificate_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_write_client_certificate_verify
_tls_write_client_certificate_verify:   ; @tls_write_client_certificate_verify
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #432
	mov	x23, x2
	mov	x20, x1
	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, #-88]
	ldr	x21, [x1]
Lloh3:
	adrp	x27, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh7:
	adrp	x8, _TLS_RECORD_HEADER_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TLS_RECORD_HEADER_LEN@GOTPAGEOFF]
Lloh9:
	ldrsw	x8, [x8]
	add	x22, x21, x8, lsl #2
Lloh10:
	adrp	x8, _TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	x24, x22
	str	w8, [x24], #16
Lloh13:
	adrp	x25, _MD5_MAC_LEN@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MD5_MAC_LEN@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [sp, #8]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_crypto_hash_finish
	tbnz	x0, #63, LBB0_8
; %bb.2:
	ldr	x8, [x25]
	str	xzr, [x19, #8]
Lloh15:
	adrp	x9, _SHA1_MAC_LEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SHA1_MAC_LEN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.3:
	add	x9, sp, #24
	add	x1, x9, x8, lsl #2
	add	x2, sp, #8
	bl	_crypto_hash_finish
	tbnz	x0, #63, LBB0_9
; %bb.4:
	str	xzr, [x19]
	ldr	x8, [x25]
	ldr	x9, [sp, #8]
	add	x3, x9, x8
	str	x3, [sp, #8]
Lloh18:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	bl	_wpa_hexdump
	add	x25, x24, #8
	sub	x8, x23, x25
	asr	x8, x8, #2
	str	x8, [sp]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w0, [x8]
	ldr	x2, [sp, #8]
	add	x1, sp, #24
	mov	x4, sp
	mov	x3, x25
	bl	_crypto_private_key_sign_pkcs1
	tbnz	x0, #63, LBB0_10
; %bb.6:
	add	x26, x22, #4
	ldr	x1, [sp]
	mov	x0, x24
	bl	_WPA_PUT_BE16
	ldr	x8, [sp]
	add	x24, x25, x8, lsl #2
	sub	x8, x24, x26
	lsr	x8, x8, #2
	sub	w1, w8, #3
	mov	x0, x26
	bl	_WPA_PUT_BE24
Lloh23:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
	add	x0, x19, #24
Lloh25:
	ldr	w1, [x8]
	sub	x8, x23, x21
	lsr	x3, x8, #2
	sub	x8, x24, x22
	lsr	x5, x8, #2
	add	x6, sp, #16
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_tlsv1_record_send
	tbnz	x0, #63, LBB0_16
; %bb.7:
	ldr	x8, [sp, #16]
	add	x21, x21, x8, lsl #2
	sub	x8, x21, x22
	lsr	x2, x8, #2
	mov	x0, x19
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_tls_verify_hash_add
	mov	w0, #0
	str	x21, [x20]
	b	LBB0_14
LBB0_8:
Lloh26:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tls_alert
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	mov	x1, #0
	mov	x2, #0
	bl	_crypto_hash_finish
	str	xzr, [x19]
	b	LBB0_13
LBB0_9:
	str	xzr, [x19]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x27]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
Lloh34:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tls_alert
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	add	sp, sp, #432
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w0, [x27]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Send CertificateVerify"

	.comm	_TLS_RECORD_HEADER_LEN,4,2      ; @TLS_RECORD_HEADER_LEN
	.comm	_TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY,4,2 ; @TLS_HANDSHAKE_TYPE_CERTIFICATE_VERIFY
	.comm	_MD5_MAC_LEN,8,3                ; @MD5_MAC_LEN
	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
	.comm	_SHA1_MAC_LEN,8,3               ; @SHA1_MAC_LEN
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: CertificateVerify hash"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Failed to sign hash (PKCS #1)"

	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @TLS_CONTENT_TYPE_HANDSHAKE
l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Failed to generate a record"

	.comm	_SHA256_MAC_LEN,8,3             ; @SHA256_MAC_LEN
	.comm	_TLS_HASH_ALG_SHA256,4,2        ; @TLS_HASH_ALG_SHA256
	.comm	_TLS_SIGN_ALG_RSA,4,2           ; @TLS_SIGN_ALG_RSA
	.comm	_TLS_VERSION_1_2,8,3            ; @TLS_VERSION_1_2
	.no_dead_strip	_tls_write_client_certificate_verify
.subsections_via_symbols
