	.file	"extr_ts.c_create_nonce.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"nonce buffer"
.LC1:
	.string	"could not create nonce\n"
	.text
	.p2align 4
	.type	create_nonce, @function
create_nonce:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	ebx, 6[rdi]
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	sub	edi, 1
	cmovns	ebx, edi
	sar	ebx, 3
	lea	ebp, 1[rbx]
	cmp	ebp, 20
	jg	.L2
	mov	r12, rsp
	mov	esi, ebp
	mov	rdi, r12
	call	RAND_bytes@PLT
	test	rax, rax
	jle	.L2
	test	ebp, ebp
	jle	.L8
	xor	eax, eax
.L4:
	cmp	BYTE PTR [r12+rax], 0
	mov	r13d, eax
	je	.L14
.L3:
	xor	eax, eax
	call	ASN1_INTEGER_new@PLT
	mov	r14, rax
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR 4[rax]
	sub	ebp, r13d
	call	OPENSSL_free@PLT
	mov	DWORD PTR [r14], ebp
	lea	edi, 1[rbp]
	lea	rsi, .LC0[rip]
	call	app_malloc@PLT
	movsx	rsi, r13d
	mov	edx, DWORD PTR [r14]
	mov	DWORD PTR 4[r14], eax
	mov	edi, eax
	add	rsi, r12
	call	memcpy@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r14
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR bio_err[rip]
	lea	rsi, .LC1[rip]
	xor	r14d, r14d
	call	BIO_printf@PLT
	xor	edi, edi
	call	ASN1_INTEGER_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	r13d, 1[rax]
	lea	rdx, 1[rax]
	cmp	rax, rbx
	je	.L3
	mov	rax, rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r13d, r13d
	jmp	.L3
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_nonce, .-create_nonce
	.comm	bio_err,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_ts.c_create_nonce.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"nonce buffer\000"
	.align	2
.LC1:
	.ascii	"could not create nonce\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_nonce, %function
create_nonce:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #1
	addmi	r4, r0, #6
	asr	r4, r4, #3
	ldr	r3, .L18
	add	r4, r4, #1
	sub	sp, sp, #24
	cmp	r4, #20
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bgt	.L2
	mov	r0, sp
	mov	r1, r4
	bl	RAND_bytes
	cmp	r0, #0
	ble	.L2
	cmp	r4, #0
	ble	.L8
	mov	r6, #0
	sub	r3, sp, #1
.L4:
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L16
.L3:
	bl	ASN1_INTEGER_new
	subs	r5, r0, #0
	beq	.L2
	ldr	r0, [r5, #4]
	bl	OPENSSL_free
	sub	r0, r4, r6
	ldr	r1, .L18+4
	str	r0, [r5]
	add	r0, r0, #1
	bl	app_malloc
	ldr	r2, [r5]
	add	r1, sp, r6
	str	r0, [r5, #4]
	bl	memcpy
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L18+8
	ldr	r1, .L18+12
	ldr	r0, [r3]
	bl	BIO_printf
	mov	r0, #0
	bl	ASN1_INTEGER_free
	mov	r5, #0
	b	.L1
.L16:
	add	r6, r6, #1
	cmp	r6, r4
	bne	.L4
	b	.L3
.L8:
	mov	r6, #0
	b	.L3
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC0
	.word	bio_err
	.word	.LC1
	.size	create_nonce, .-create_nonce
	.comm	bio_err,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
