	.file	"extr_picotls.c_commission_handshake_secret.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	commission_handshake_secret, @function
commission_handshake_secret:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	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
	call	ptls_is_server@PLT
	test	eax, eax
	mov	ebx, eax
	sete	r12b
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	setne	dil
	call	assert@PLT
	test	ebx, ebx
	lea	rdx, 12[rbp]
	lea	rax, 8[rbp]
	cmove	rax, rdx
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR PTLS_MAX_DIGEST_SIZE[rip]
	mov	edi, DWORD PTR [rax]
	call	memcpy@PLT
	mov	esi, DWORD PTR PTLS_MAX_DIGEST_SIZE[rip]
	mov	rdi, QWORD PTR 0[rbp]
	call	ptls_clear_memory@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	free@PLT
	mov	QWORD PTR 0[rbp], 0
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, 2
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	r8d, 1
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	setup_traffic_protection@PLT
	.cfi_endproc
.LFE0:
	.size	commission_handshake_secret, .-commission_handshake_secret
	.comm	PTLS_MAX_DIGEST_SIZE,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_picotls.c_commission_handshake_secret.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	commission_handshake_secret, %function
commission_handshake_secret:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	bl	ptls_is_server
	mov	r5, r0
	clz	r6, r0
	ldr	r0, [r4]
	lsr	r6, r6, #5
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	cmp	r5, #0
	ldr	r5, .L6
	addeq	r3, r4, #8
	addne	r3, r4, #4
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, [r4]
	bl	memcpy
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	ptls_clear_memory
	ldr	r0, [r4]
	bl	free
	mov	r2, #0
	mov	r3, #1
	str	r2, [r4]
	mov	r1, r6
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #2
	bl	setup_traffic_protection
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	PTLS_MAX_DIGEST_SIZE
	.size	commission_handshake_secret, .-commission_handshake_secret
	.comm	PTLS_MAX_DIGEST_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
