	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_write_server_finished
_tls_write_server_finished:             ## @tls_write_server_finished
	.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
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TLS_VERIFY_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$4, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_MD5_MAC_LEN@GOTPCREL(%rip), %r15
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	addl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_tlsv1_server_log
	movslq	(%r15), %rax
	movq	%rax, -56(%rbp)
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	leaq	-56(%rbp), %rdx
	movq	%r13, %rsi
	callq	_crypto_hash_finish
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	movq	$0, 24(%rbx)
	movslq	(%r14), %rax
	movq	%rax, -56(%rbp)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	movslq	(%r15), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	leaq	-56(%rbp), %rdx
	callq	_crypto_hash_finish
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	movq	$0, 16(%rbx)
	movslq	(%r15), %rax
	movslq	(%r14), %r9
	addq	%rax, %r9
	movq	%r9, -56(%rbp)
	movq	8(%rbx), %rdi
	movl	40(%rbx), %esi
	movq	_TLS_MASTER_SECRET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%r12), %rax
	movq	_TLS_VERIFY_DATA_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %r10d
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %r8
	pushq	%r10
	movq	%rax, %r15
	pushq	%rax
	callq	_tls_prf
	addq	$16, %rsp
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_6:
	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	_tlsv1_server_alert
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_hash_finish
	movq	$0, 16(%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	$0, 16(%rbx)
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	_tlsv1_server_alert
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	16(%rbx), %r13
	leaq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	movq	_TLS_HANDSHAKE_TYPE_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%r12), %rdi
	movl	%eax, (%r12)
	movl	(%r14), %esi
	callq	_WPA_PUT_BE24
	movl	(%r14), %eax
	leaq	(%r15,%rax,4), %r14
	subq	%r12, %r14
	shrq	$2, %r14
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_tls_verify_hash_add
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subq	%rdx, %rcx
	shrq	$2, %rcx
	subq	$8, %rsp
	leaq	-96(%rbp), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r12, %r8
	movl	%r14d, %r9d
	pushq	%rax
	callq	_tlsv1_record_send
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_14
## %bb.13:
	movq	-96(%rbp), %rax
	shlq	$2, %rax
	addq	%rax, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_VERIFY_DATA_LEN,4,2        ## @TLS_VERIFY_DATA_LEN
	.comm	_MD5_MAC_LEN,4,2                ## @MD5_MAC_LEN
	.comm	_SHA1_MAC_LEN,4,2               ## @SHA1_MAC_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Send Finished"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
	.comm	_TLS_MASTER_SECRET_LEN,4,2      ## @TLS_MASTER_SECRET_LEN
L_.str.1:                               ## @.str.1
	.asciz	"server finished"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Failed to generate verify_data"

L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: verify_data (server)"

	.comm	_TLS_HANDSHAKE_TYPE_FINISHED,4,2 ## @TLS_HANDSHAKE_TYPE_FINISHED
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @TLS_CONTENT_TYPE_HANDSHAKE
L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Failed to create a record"

	.comm	_SHA256_MAC_LEN,8,3             ## @SHA256_MAC_LEN
	.comm	_TLS_BREAK_VERIFY_DATA,4,2      ## @TLS_BREAK_VERIFY_DATA
	.comm	_TLS_VERSION_1_2,8,3            ## @TLS_VERSION_1_2
	.no_dead_strip	_tls_write_server_finished
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_write_server_finished
_tls_write_server_finished:             ; @tls_write_server_finished
	.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, #32
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _TLS_VERIFY_DATA_LEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _TLS_VERIFY_DATA_LEN@GOTPAGEOFF]
	ldr	w8, [x27]
	add	w8, w8, #4
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x25, _MD5_MAC_LEN@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MD5_MAC_LEN@GOTPAGEOFF]
Lloh9:
	adrp	x28, _SHA1_MAC_LEN@GOTPAGE
Lloh10:
	ldr	x28, [x28, _SHA1_MAC_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x28]
	add	w8, w9, w8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x8
	mov	sp, x24
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_tlsv1_server_log
	ldrsw	x8, [x25]
	stur	x8, [x29, #-104]
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.1:
	sub	x2, x29, #104
	mov	x1, x24
	bl	_crypto_hash_finish
	tbnz	x0, #63, LBB0_6
; %bb.2:
	str	xzr, [x19, #24]
	ldrsw	x8, [x28]
	stur	x8, [x29, #-104]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.3:
	ldrsw	x8, [x25]
	add	x1, x24, x8, lsl #2
	sub	x2, x29, #104
	bl	_crypto_hash_finish
	tbnz	x0, #63, LBB0_7
; %bb.4:
	mov	x23, x19
	ldr	x0, [x23, #8]!
	str	xzr, [x23, #8]
	ldrsw	x8, [x25]
	ldrsw	x9, [x28]
	add	x5, x9, x8
	stur	x5, [x29, #-104]
	ldr	w1, [x23, #32]
Lloh15:
	adrp	x8, _TLS_MASTER_SECRET_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TLS_MASTER_SECRET_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x25, x22, #16
	ldr	w7, [x27]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x24
	mov	x6, x25
	bl	_tls_prf
	mov	x8, x0
Lloh20:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
	cbz	x8, LBB0_12
; %bb.5:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_8
LBB0_6:
Lloh24:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	str	xzr, [x19, #24]
	ldr	x0, [x19, #16]
	mov	x1, #0
	mov	x2, #0
	bl	_crypto_hash_finish
	str	xzr, [x19, #16]
	b	LBB0_9
LBB0_7:
	str	xzr, [x19, #16]
LBB0_8:
Lloh30:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
LBB0_9:
	mov	w0, #-1
LBB0_10:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.11:
	sub	sp, x29, #80
	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_12:
	add	x24, x19, #16
	ldr	w3, [x27]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_wpa_hexdump_key
Lloh41:
	adrp	x8, _TLS_HANDSHAKE_TYPE_FINISHED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TLS_HANDSHAKE_TYPE_FINISHED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	mov	x0, x22
	str	w8, [x0], #4
	ldr	w1, [x27]
	bl	_WPA_PUT_BE24
	ldr	w8, [x27]
	add	x8, x25, x8, lsl #2
	sub	x8, x8, x22
	lsr	x25, x8, #2
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	bl	_tls_verify_hash_add
Lloh44:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	x2, [x20]
	sub	x8, x21, x2
	lsr	x3, x8, #2
	sub	x6, x29, #96
	mov	x0, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
	mov	x5, x25
	bl	_tlsv1_record_send
	tbnz	x0, #63, LBB0_14
; %bb.13:
	mov	w0, #0
	ldur	x8, [x29, #-96]
	ldr	x9, [x20]
	add	x8, x9, x8, lsl #2
	str	x8, [x20]
	b	LBB0_10
LBB0_14:
	ldr	w0, [x28]
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_8
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_VERIFY_DATA_LEN,4,2        ; @TLS_VERIFY_DATA_LEN
	.comm	_MD5_MAC_LEN,4,2                ; @MD5_MAC_LEN
	.comm	_SHA1_MAC_LEN,4,2               ; @SHA1_MAC_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send Finished"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
	.comm	_TLS_MASTER_SECRET_LEN,4,2      ; @TLS_MASTER_SECRET_LEN
l_.str.1:                               ; @.str.1
	.asciz	"server finished"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Failed to generate verify_data"

l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: verify_data (server)"

	.comm	_TLS_HANDSHAKE_TYPE_FINISHED,4,2 ; @TLS_HANDSHAKE_TYPE_FINISHED
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @TLS_CONTENT_TYPE_HANDSHAKE
l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Failed to create a record"

	.comm	_SHA256_MAC_LEN,8,3             ; @SHA256_MAC_LEN
	.comm	_TLS_BREAK_VERIFY_DATA,4,2      ; @TLS_BREAK_VERIFY_DATA
	.comm	_TLS_VERSION_1_2,8,3            ; @TLS_VERSION_1_2
	.no_dead_strip	_tls_write_server_finished
.subsections_via_symbols
