	.file	"extr_tlsv1_client_read.c_tls_process_server_change_cipher_spec.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TLSv1: Expected ChangeCipherSpec; received content type 0x%x"
	.align 8
.LC1:
	.string	"TLSv1: Server may have rejected SessionTicket"
	.align 8
.LC2:
	.string	"TLSv1: SessionTicket callback indicated failure"
	.align 8
.LC3:
	.string	"[Debug] set the state to server certificate \n"
	.align 8
.LC4:
	.string	"TLSv1: Too short ChangeCipherSpec"
	.align 8
.LC5:
	.string	"TLSv1: Expected ChangeCipherSpec; received data 0x%x"
	.align 8
.LC6:
	.string	"TLSv1: Received ChangeCipherSpec"
	.align 8
.LC7:
	.string	"TLSv1: Failed to change read cipher for record layer"
	.text
	.p2align 4
	.type	tls_process_server_change_cipher_spec, @function
tls_process_server_change_cipher_spec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC[rip], rsi
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	jne	.L12
	cmp	QWORD PTR [rcx], 0
	je	.L13
	mov	rdx, QWORD PTR [rdx]
	cmp	rdx, QWORD PTR TLS_CHANGE_CIPHER_SPEC[rip]
	jne	.L14
	xor	eax, eax
	lea	rsi, .LC6[rip]
	call	wpa_printf@PLT
	lea	rdi, 12[rbp]
	call	tlsv1_record_change_read_cipher@PLT
	test	rax, rax
	js	.L15
	mov	eax, DWORD PTR SERVER_FINISHED[rip]
	mov	QWORD PTR 0[r13], 1
	mov	DWORD PTR 8[rbp], eax
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdx, rsi
	xor	eax, eax
	mov	r12, rsi
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L10
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	QWORD PTR 24[rbp], 0
	mov	edi, DWORD PTR 16[rbp]
	call	[QWORD PTR 0[rbp]]
	test	eax, eax
	js	.L16
	lea	rdi, .LC3[rip]
	call	printf@PLT
	mov	rcx, r13
	mov	rdx, r14
	mov	rsi, r12
	mov	eax, DWORD PTR SERVER_CERTIFICATE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	tls_process_certificate@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	wpa_printf@PLT
.L10:
	mov	edx, DWORD PTR TLS_ALERT_UNEXPECTED_MESSAGE[rip]
	mov	esi, DWORD PTR TLS_ALERT_LEVEL_FATAL[rip]
	mov	rdi, rbp
	call	tls_alert@PLT
	mov	eax, -1
	jmp	.L1
.L16:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	edx, DWORD PTR TLS_ALERT_HANDSHAKE_FAILURE[rip]
	mov	esi, DWORD PTR TLS_ALERT_LEVEL_FATAL[rip]
	mov	rdi, rbp
	call	tls_alert@PLT
	mov	eax, -1
	jmp	.L1
.L13:
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	edx, DWORD PTR TLS_ALERT_DECODE_ERROR[rip]
	mov	esi, DWORD PTR TLS_ALERT_LEVEL_FATAL[rip]
	mov	rdi, rbp
	call	tls_alert@PLT
	mov	eax, -1
	jmp	.L1
.L15:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	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	tls_alert@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tls_process_server_change_cipher_spec, .-tls_process_server_change_cipher_spec
	.comm	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,8,8
	.comm	TLS_CHANGE_CIPHER_SPEC,8,8
	.comm	TLS_ALERT_UNEXPECTED_MESSAGE,4,4
	.comm	TLS_ALERT_LEVEL_FATAL,4,4
	.comm	TLS_ALERT_INTERNAL_ERROR,4,4
	.comm	TLS_ALERT_HANDSHAKE_FAILURE,4,4
	.comm	TLS_ALERT_DECODE_ERROR,4,4
	.comm	SERVER_FINISHED,4,4
	.comm	SERVER_CERTIFICATE,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_client_read.c_tls_process_server_change_cipher_spec.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TLSv1: Expected ChangeCipherSpec; received content "
	.ascii	"type 0x%x\000"
	.align	2
.LC1:
	.ascii	"TLSv1: Server may have rejected SessionTicket\000"
	.align	2
.LC2:
	.ascii	"TLSv1: SessionTicket callback indicated failure\000"
	.align	2
.LC3:
	.ascii	"[Debug] set the state to server certificate \012\000"
	.align	2
.LC4:
	.ascii	"TLSv1: Too short ChangeCipherSpec\000"
	.align	2
.LC5:
	.ascii	"TLSv1: Expected ChangeCipherSpec; received data 0x%"
	.ascii	"x\000"
	.align	2
.LC6:
	.ascii	"TLSv1: Received ChangeCipherSpec\000"
	.align	2
.LC7:
	.ascii	"TLSv1: Failed to change read cipher for record laye"
	.ascii	"r\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_process_server_change_cipher_spec, %function
tls_process_server_change_cipher_spec:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r1
	ldr	r1, .L18
	ldr	r8, .L18+4
	ldr	r1, [r1]
	mov	r4, r0
	cmp	r1, r5
	mov	r7, r2
	mov	r6, r3
	ldr	r0, [r8]
	sub	sp, sp, #12
	bne	.L13
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L18+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
	ldr	r1, .L18+12
	bl	wpa_printf
	add	r0, r4, #8
	bl	tlsv1_record_change_read_cipher
	cmp	r0, #0
	blt	.L16
	mov	r2, #1
	mov	r0, #0
	ldr	r3, .L18+16
	str	r2, [r6]
	ldr	r3, [r3]
	str	r3, [r4, #4]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	mov	r2, r5
	ldr	r1, .L18+20
	bl	wpa_printf
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L11
	ldr	r1, .L18+24
	ldr	r0, [r8]
	bl	wpa_printf
	mov	r3, #0
	ldr	r9, [r4]
	str	r3, [r4, #16]
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r2, r3
	mov	r1, r3
	ldr	r0, [r4, #12]
	blx	r9
	cmp	r0, #0
	blt	.L17
	ldr	r0, .L18+28
	bl	printf
	ldr	r2, .L18+32
	mov	r3, r6
	ldr	r0, [r2]
	mov	r1, r5
	str	r0, [r4, #4]
	mov	r2, r7
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	tls_process_certificate
.L15:
	ldr	r1, .L18+36
	bl	wpa_printf
.L11:
	ldr	r2, .L18+40
.L10:
	ldr	r3, .L18+44
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	tls_alert
	mvn	r0, #0
	b	.L1
.L17:
	ldr	r0, [r8]
	ldr	r1, .L18+48
	bl	wpa_printf
	ldr	r2, .L18+52
	b	.L10
.L14:
	ldr	r1, .L18+56
	bl	wpa_printf
	ldr	r2, .L18+60
	b	.L10
.L16:
	ldr	r0, [r8]
	ldr	r1, .L18+64
	bl	wpa_printf
	ldr	r2, .L18+68
	b	.L10
.L19:
	.align	2
.L18:
	.word	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC
	.word	MSG_DEBUG
	.word	TLS_CHANGE_CIPHER_SPEC
	.word	.LC6
	.word	SERVER_FINISHED
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	SERVER_CERTIFICATE
	.word	.LC5
	.word	TLS_ALERT_UNEXPECTED_MESSAGE
	.word	TLS_ALERT_LEVEL_FATAL
	.word	.LC2
	.word	TLS_ALERT_HANDSHAKE_FAILURE
	.word	.LC4
	.word	TLS_ALERT_DECODE_ERROR
	.word	.LC7
	.word	TLS_ALERT_INTERNAL_ERROR
	.size	tls_process_server_change_cipher_spec, .-tls_process_server_change_cipher_spec
	.comm	TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_CHANGE_CIPHER_SPEC,4,4
	.comm	TLS_ALERT_UNEXPECTED_MESSAGE,4,4
	.comm	TLS_ALERT_LEVEL_FATAL,4,4
	.comm	TLS_ALERT_INTERNAL_ERROR,4,4
	.comm	TLS_ALERT_HANDSHAKE_FAILURE,4,4
	.comm	TLS_ALERT_DECODE_ERROR,4,4
	.comm	SERVER_FINISHED,4,4
	.comm	SERVER_CERTIFICATE,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
