	.file	"extr_statem_dtls.c_dtls1_set_handshake_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dtls1_set_handshake_header
	.type	dtls1_set_handshake_header, @function
dtls1_set_handshake_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR SSL3_MT_CHANGE_CIPHER_SPEC[rip], edx
	je	.L10
	mov	esi, edx
	xor	r8d, r8d
	xor	edx, edx
	xor	ecx, ecx
	call	dtls1_set_message_header@PLT
	mov	esi, DWORD PTR DTLS1_HM_HEADER_LENGTH[rip]
	mov	rdx, rsp
	mov	rdi, rbp
	call	WPACKET_allocate_bytes@PLT
	test	eax, eax
	jne	.L11
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	WPACKET_start_sub_packet@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR SSL3_MT_CCS[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, DWORD PTR 4[rax]
	mov	DWORD PTR [rax], ecx
	call	dtls1_set_message_header_int@PLT
	mov	esi, DWORD PTR SSL3_MT_CCS[rip]
	mov	rdi, rbp
	call	WPACKET_put_bytes_u8@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dtls1_set_handshake_header, .-dtls1_set_handshake_header
	.comm	SSL3_MT_CHANGE_CIPHER_SPEC,4,4
	.comm	SSL3_MT_CCS,4,4
	.comm	DTLS1_HM_HEADER_LENGTH,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_statem_dtls.c_dtls1_set_handshake_header.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dtls1_set_handshake_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtls1_set_handshake_header, %function
dtls1_set_handshake_header:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L13
	mov	r4, r1
	ldr	r3, [r3]
	ldr	r1, .L13+4
	sub	sp, sp, #20
	cmp	r3, r2
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	beq	.L10
	mov	r3, #0
	mov	r1, r2
	str	r3, [sp]
	mov	r2, r3
	bl	dtls1_set_message_header
	ldr	r3, .L13+8
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #8
	bl	WPACKET_allocate_bytes
	cmp	r0, #0
	bne	.L11
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	mov	r0, r4
	bl	WPACKET_start_sub_packet
	subs	r0, r0, #0
	movne	r0, #1
	b	.L1
.L10:
	mov	r2, #0
	ldr	r1, [r0]
	ldr	r5, .L13+12
	ldr	r3, [r1, #4]
	str	r3, [r1]
	ldr	r1, [r5]
	str	r2, [sp, #4]
	str	r2, [sp]
	bl	dtls1_set_message_header_int
	mov	r0, r4
	ldr	r1, [r5]
	bl	WPACKET_put_bytes_u8
	subs	r0, r0, #0
	movne	r0, #1
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	SSL3_MT_CHANGE_CIPHER_SPEC
	.word	.LC0
	.word	DTLS1_HM_HEADER_LENGTH
	.word	SSL3_MT_CCS
	.size	dtls1_set_handshake_header, .-dtls1_set_handshake_header
	.comm	SSL3_MT_CHANGE_CIPHER_SPEC,4,4
	.comm	SSL3_MT_CCS,4,4
	.comm	DTLS1_HM_HEADER_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
