	.file	"extr_crypto.c_fscrypt_crypt_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"De"
.LC1:
	.string	"En"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%scryption failed for block %llu: %d"
	.text
	.p2align 4
	.globl	fscrypt_crypt_block
	.type	fscrypt_crypt_block, @function
fscrypt_crypt_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR wait[rip]
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR 16[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	DECLARE_CRYPTO_WAIT@PLT
	xor	edi, edi
	mov	r15, QWORD PTR 0[rbp]
	test	r12d, r12d
	sete	dil
	mov	rbx, QWORD PTR [r15]
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	je	.L2
.L15:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edx, edx
	mov	eax, r12d
	xor	edi, edi
	div	DWORD PTR FS_CRYPTO_BLOCK_SIZE[rip]
	test	edx, edx
	setne	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	jne	.L15
	lea	r8, 44[rsp]
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, r8
	mov	QWORD PTR 24[rsp], r8
	call	fscrypt_generate_iv@PLT
	mov	esi, DWORD PTR 136[rsp]
	mov	rdi, rbx
	call	skcipher_request_alloc@PLT
	mov	r8, QWORD PTR 24[rsp]
	test	rax, rax
	mov	r15, rax
	je	.L18
	mov	edx, DWORD PTR crypto_req_done[rip]
	lea	rcx, wait[rip]
	lea	rbx, 48[rsp]
	mov	esi, DWORD PTR CRYPTO_TFM_REQ_MAY_BACKLOG[rip]
	mov	rdi, rax
	or	esi, DWORD PTR CRYPTO_TFM_REQ_MAY_SLEEP[rip]
	mov	QWORD PTR 24[rsp], r8
	call	skcipher_request_set_callback@PLT
	mov	esi, 1
	mov	rdi, rbx
	call	sg_init_table@PLT
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	mov	ecx, DWORD PTR 128[rsp]
	lea	r14, 52[rsp]
	call	sg_set_page@PLT
	mov	esi, 1
	mov	rdi, r14
	call	sg_init_table@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, r12d
	mov	rdi, r14
	mov	ecx, DWORD PTR 128[rsp]
	call	sg_set_page@PLT
	mov	r8, QWORD PTR 24[rsp]
	mov	rdi, r15
	mov	ecx, r12d
	mov	rdx, rbx
	mov	rsi, r14
	call	skcipher_request_set_crypt@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r15
	cmp	QWORD PTR FS_DECRYPT[rip], rax
	je	.L19
	call	crypto_skcipher_encrypt@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	call	crypto_wait_req@PLT
	mov	r12d, eax
.L7:
	mov	rdi, r15
	call	skcipher_request_free@PLT
	test	r12d, r12d
	je	.L1
	mov	rax, QWORD PTR 8[rsp]
	mov	r8d, r12d
	mov	ecx, r13d
	mov	rdi, rbp
	cmp	QWORD PTR FS_DECRYPT[rip], rax
	lea	rdx, .LC0[rip]
	lea	rax, .LC1[rip]
	cmovne	rdx, rax
	lea	rsi, .LC2[rip]
	call	fscrypt_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	call	crypto_skcipher_decrypt@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	call	crypto_wait_req@PLT
	mov	r12d, eax
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fscrypt_crypt_block, .-fscrypt_crypt_block
	.comm	wait,4,4
	.comm	crypto_req_done,4,4
	.comm	FS_DECRYPT,8,8
	.comm	FS_CRYPTO_BLOCK_SIZE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_TFM_REQ_MAY_SLEEP,4,4
	.comm	CRYPTO_TFM_REQ_MAY_BACKLOG,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_crypto.c_fscrypt_crypt_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"De\000"
	.align	2
.LC1:
	.ascii	"En\000"
	.global	__aeabi_uidivmod
	.align	2
.LC2:
	.ascii	"%scryption failed for block %llu: %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fscrypt_crypt_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	fscrypt_crypt_block, %function
fscrypt_crypt_block:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L20
	sub	sp, sp, #36
	ldr	r7, [sp, #76]
	mov	r6, r3
	ldr	r3, .L20+4
	str	r1, [sp, #12]
	mov	r4, r0
	ldr	r0, [r8]
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	fp, [sp, #72]
	bl	DECLARE_CRYPTO_WAIT
	clz	r0, r7
	ldr	r9, [r4]
	lsr	r0, r0, #5
	ldr	r10, [r9]
	bl	WARN_ON_ONCE
	cmp	r0, #0
	beq	.L2
.L15:
	ldr	r3, .L20+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L20+12
	mov	r0, r7
	ldr	r1, [r3]
	bl	__aeabi_uidivmod
	subs	r0, r1, #0
	movne	r0, #1
	bl	WARN_ON_ONCE
	cmp	r0, #0
	bne	.L15
	mov	r2, r9
	mov	r1, r5
	add	r0, sp, #16
	bl	fscrypt_generate_iv
	mov	r0, r10
	ldr	r1, [sp, #84]
	bl	skcipher_request_alloc
	subs	r9, r0, #0
	beq	.L18
	ldr	r2, .L20+16
	ldr	r3, .L20+20
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L20+24
	orr	r1, r1, r2
	ldr	r2, [r3]
	mov	r3, r8
	bl	skcipher_request_set_callback
	mov	r1, #1
	add	r0, sp, #20
	bl	sg_init_table
	mov	r2, r7
	ldr	r3, [sp, #80]
	mov	r1, fp
	add	r0, sp, #20
	bl	sg_set_page
	mov	r1, #1
	add	r0, sp, #24
	bl	sg_init_table
	mov	r2, r7
	mov	r1, r6
	ldr	r3, [sp, #80]
	add	r0, sp, #24
	bl	sg_set_page
	ldr	r10, .L20+28
	add	r3, sp, #16
	add	r2, sp, #20
	str	r3, [sp]
	mov	r0, r9
	mov	r3, r7
	add	r1, sp, #24
	bl	skcipher_request_set_crypt
	ldr	r3, [r10]
	ldr	r2, [sp, #12]
	mov	r0, r9
	cmp	r3, r2
	beq	.L19
	bl	crypto_skcipher_encrypt
	mov	r1, r8
	bl	crypto_wait_req
	mov	r6, r0
.L7:
	mov	r0, r9
	bl	skcipher_request_free
	cmp	r6, #0
	beq	.L1
	ldr	ip, [r10]
	ldr	lr, [sp, #12]
	ldr	r1, .L20+32
	cmp	ip, lr
	ldr	r2, .L20+36
	mov	r3, r5
	movne	r2, r1
	mov	r0, r4
	ldr	r1, .L20+40
	str	r6, [sp]
	bl	fscrypt_err
	b	.L1
.L18:
	ldr	r3, .L20+44
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L19:
	bl	crypto_skcipher_decrypt
	mov	r1, r8
	bl	crypto_wait_req
	mov	r6, r0
	b	.L7
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	wait
	.word	.LC3
	.word	EINVAL
	.word	FS_CRYPTO_BLOCK_SIZE
	.word	CRYPTO_TFM_REQ_MAY_BACKLOG
	.word	CRYPTO_TFM_REQ_MAY_SLEEP
	.word	crypto_req_done
	.word	FS_DECRYPT
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	ENOMEM
	.size	fscrypt_crypt_block, .-fscrypt_crypt_block
	.comm	wait,4,4
	.comm	crypto_req_done,4,4
	.comm	FS_DECRYPT,4,4
	.comm	FS_CRYPTO_BLOCK_SIZE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_TFM_REQ_MAY_SLEEP,4,4
	.comm	CRYPTO_TFM_REQ_MAY_BACKLOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
