	.file	"extr_tlsv1_server_write.c_tls_write_server_change_cipher_spec.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Send ChangeCipherSpec"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"TLSv1: Failed to create a record"
	.align 8
.LC2:
	.string	"TLSv1: Failed to set write cipher for record layer"
	.text
	.p2align 4
	.type	tls_write_server_change_cipher_spec, @function
tls_write_server_change_cipher_spec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	tlsv1_server_log@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	rdx, QWORD PTR [r12]
	mov	rdi, rbp
	mov	eax, DWORD PTR TLS_CHANGE_CIPHER_SPEC[rip]
	mov	esi, DWORD PTR TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC[rip]
	mov	r9d, 4
	sub	rbx, rdx
	mov	DWORD PTR 28[rsp], eax
	lea	rax, 16[rsp]
	mov	rcx, rbx
	push	rax
	.cfi_def_cfa_offset 80
	sar	rcx, 2
	lea	r8, 36[rsp]
	call	tlsv1_record_send@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	js	.L9
	mov	rdi, rbp
	call	tlsv1_record_change_write_cipher@PLT
	test	rax, rax
	js	.L10
	mov	rax, QWORD PTR 8[rsp]
	sal	rax, 2
	add	QWORD PTR [r12], rax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
.L7:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_printf@PLT
	mov	edx, DWORD PTR TLS_ALERT_INTERNAL_ERROR[rip]
	mov	esi, DWORD PTR TLS_ALERT_LEVEL_FATAL[rip]
	mov	rdi, rbp
	call	tlsv1_server_alert@PLT
	mov	eax, -1
	jmp	.L1
.L10:
	lea	rsi, .LC2[rip]
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_write_server_change_cipher_spec, .-tls_write_server_change_cipher_spec
	.comm	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_ALERT_LEVEL_FATAL,4,4
	.comm	TLS_ALERT_INTERNAL_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tlsv1_server_write.c_tls_write_server_change_cipher_spec.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Send ChangeCipherSpec\000"
	.align	2
.LC1:
	.ascii	"TLSv1: Failed to create a record\000"
	.align	2
.LC2:
	.ascii	"TLSv1: Failed to set write cipher for record layer\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_write_server_change_cipher_spec, %function
tls_write_server_change_cipher_spec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #32
	mov	r5, r1
	ldr	r1, .L12+4
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r0
	bl	tlsv1_server_log
	mov	lr, #4
	ldr	r0, .L12+8
	ldr	r2, [r5]
	ldr	r1, .L12+12
	ldr	ip, [r0]
	str	lr, [sp, #4]
	add	lr, sp, #20
	ldr	r1, [r1]
	sub	r3, r4, r2
	str	lr, [sp, #8]
	add	lr, sp, #24
	mov	r0, r6
	asr	r3, r3, #2
	str	lr, [sp]
	str	ip, [sp, #24]
	bl	tlsv1_record_send
	cmp	r0, #0
	blt	.L9
	mov	r0, r6
	bl	tlsv1_record_change_write_cipher
	cmp	r0, #0
	blt	.L10
	mov	r0, #0
	ldr	r3, [r5]
	ldr	r2, [sp, #20]
	add	r3, r3, r2, lsl #2
	str	r3, [r5]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+16
	ldr	r1, .L12+20
.L7:
	ldr	r0, [r3]
	bl	wpa_printf
	ldr	r3, .L12+24
	ldr	r2, .L12+28
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	tlsv1_server_alert
	mvn	r0, #0
	b	.L1
.L10:
	ldr	r3, .L12+16
	ldr	r1, .L12+32
	b	.L7
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	TLS_CHANGE_CIPHER_SPEC
	.word	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.word	MSG_DEBUG
	.word	.LC1
	.word	TLS_ALERT_LEVEL_FATAL
	.word	TLS_ALERT_INTERNAL_ERROR
	.word	.LC2
	.size	tls_write_server_change_cipher_spec, .-tls_write_server_change_cipher_spec
	.comm	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_ALERT_LEVEL_FATAL,4,4
	.comm	TLS_ALERT_INTERNAL_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
