	.file	"extr_chainiv.c_async_chainiv_givencrypt_first.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	async_chainiv_givencrypt_first, @function
async_chainiv_givencrypt_first:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	skcipher_givcrypt_reqtfm@PLT
	mov	rdi, rax
	mov	r12, rax
	call	crypto_ablkcipher_ctx@PLT
	mov	edi, DWORD PTR CHAINIV_STATE_INUSE[rip]
	mov	rsi, rax
	mov	r13, rax
	call	test_and_set_bit@PLT
	test	rax, rax
	je	.L9
.L3:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	async_chainiv_givencrypt@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r12
	call	crypto_ablkcipher_crt@PLT
	lea	rdx, async_chainiv_givencrypt_first[rip]
	cmp	rdx, QWORD PTR [rax]
	je	.L4
	mov	edi, DWORD PTR CHAINIV_STATE_INUSE[rip]
	mov	rsi, r13
	call	clear_bit@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	async_chainiv_givencrypt@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	crypto_ablkcipher_crt@PLT
	mov	rdx, QWORD PTR async_chainiv_givencrypt@GOTPCREL[rip]
	mov	rdi, r12
	mov	QWORD PTR [rax], rdx
	call	crypto_ablkcipher_ivsize@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	edi, DWORD PTR crypto_default_rng[rip]
	mov	edx, eax
	call	crypto_rng_get_bytes@PLT
	mov	edi, DWORD PTR CHAINIV_STATE_INUSE[rip]
	mov	rsi, r13
	mov	r12d, eax
	call	clear_bit@PLT
	test	r12d, r12d
	je	.L3
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	async_chainiv_givencrypt_first, .-async_chainiv_givencrypt_first
	.comm	crypto_default_rng,4,4
	.comm	CHAINIV_STATE_INUSE,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_chainiv.c_async_chainiv_givencrypt_first.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	async_chainiv_givencrypt_first, %function
async_chainiv_givencrypt_first:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	skcipher_givcrypt_reqtfm
	mov	r6, r0
	bl	crypto_ablkcipher_ctx
	ldr	r5, .L10
	mov	r1, r0
	mov	r4, r0
	ldr	r0, [r5]
	bl	test_and_set_bit
	cmp	r0, #0
	beq	.L9
.L3:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	async_chainiv_givencrypt
.L9:
	mov	r0, r6
	bl	crypto_ablkcipher_crt
	ldr	r3, .L10+4
	ldr	r2, [r0]
	cmp	r2, r3
	beq	.L4
	mov	r1, r4
	ldr	r0, [r5]
	bl	clear_bit
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	async_chainiv_givencrypt
.L4:
	mov	r0, r6
	bl	crypto_ablkcipher_crt
	mov	r2, r0
	ldr	r1, .L10+8
	ldr	r3, .L10+12
	str	r1, [r2]
	mov	r0, r6
	ldr	r8, [r4, #4]
	ldr	r6, [r3]
	bl	crypto_ablkcipher_ivsize
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	crypto_rng_get_bytes
	mov	r6, r0
	mov	r1, r4
	ldr	r0, [r5]
	bl	clear_bit
	cmp	r6, #0
	beq	.L3
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	CHAINIV_STATE_INUSE
	.word	async_chainiv_givencrypt_first
	.word	async_chainiv_givencrypt
	.word	crypto_default_rng
	.size	async_chainiv_givencrypt_first, .-async_chainiv_givencrypt_first
	.comm	crypto_default_rng,4,4
	.comm	CHAINIV_STATE_INUSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
