	.file	"extr_auth.c_ubifs_bad_hash.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"..."
.LC1:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"hash mismatch on node at LEB %d:%d"
	.section	.rodata.str1.1
.LC3:
	.string	"hash expected:   %*ph%s"
.LC4:
	.string	"hash calculated: %*ph%s"
	.text
	.p2align 4
	.globl	ubifs_bad_hash
	.type	ubifs_bad_hash, @function
ubifs_bad_hash:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rsi
	mov	esi, 20
	push	r14
	.cfi_offset 14, -32
	mov	r14d, r8d
	push	r13
	.cfi_offset 13, -40
	mov	r13d, ecx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	min@PLT
	lea	r8, .LC1[rip]
	cmp	DWORD PTR [r12], eax
	mov	rcx, rsp
	mov	r9d, eax
	lea	rax, .LC0[rip]
	cmovne	r8, rax
	movsx	rax, DWORD PTR UBIFS_HASH_ARR_SZ[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L4
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L4:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L5:
	mov	r10, rsp
	mov	rsi, r15
	mov	rdi, r12
	mov	DWORD PTR -92[rbp], r9d
	mov	rdx, r10
	mov	QWORD PTR -88[rbp], r10
	mov	QWORD PTR -72[rbp], r8
	call	__ubifs_node_calc_hash@PLT
	mov	ecx, r14d
	mov	edx, r13d
	mov	rdi, r12
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ubifs_err@PLT
	mov	r9d, DWORD PTR -92[rbp]
	mov	r8, QWORD PTR -72[rbp]
	mov	ecx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	mov	edx, r9d
	mov	QWORD PTR -80[rbp], r8
	mov	DWORD PTR -72[rbp], r9d
	call	ubifs_err@PLT
	mov	r10, QWORD PTR -88[rbp]
	mov	r9d, DWORD PTR -72[rbp]
	xor	eax, eax
	mov	r8, QWORD PTR -80[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	mov	ecx, r10d
	mov	edx, r9d
	call	ubifs_err@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ubifs_bad_hash, .-ubifs_bad_hash
	.comm	UBIFS_HASH_ARR_SZ,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_auth.c_ubifs_bad_hash.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"...\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"hash mismatch on node at LEB %d:%d\000"
	.align	2
.LC3:
	.ascii	"hash expected:   %*ph%s\000"
	.align	2
.LC4:
	.ascii	"hash calculated: %*ph%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ubifs_bad_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_bad_hash, %function
ubifs_bad_hash:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	mov	r4, r0
	mov	r8, r3
	ldr	r3, .L8
	mov	r9, r1
	ldr	r0, [r0]
	mov	r1, #20
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	min
	ldr	r1, [r4]
	ldr	r2, .L8+4
	cmp	r1, r0
	mov	r5, r0
	ldr	r6, .L8+8
	moveq	r6, r2
	ldr	r3, .L8+12
	mov	r1, r9
	ldr	ip, [r3]
	mov	r0, r4
	lsl	ip, ip, #2
	add	ip, ip, #7
	bic	ip, ip, #7
	sub	sp, sp, ip
	add	r9, sp, #8
	mov	r2, r9
	bl	__ubifs_node_calc_hash
	mov	r2, r8
	ldr	r3, [fp, #4]
	ldr	r1, .L8+16
	mov	r0, r4
	bl	ubifs_err
	mov	r3, r7
	mov	r2, r5
	ldr	r1, .L8+20
	mov	r0, r4
	str	r6, [sp]
	bl	ubifs_err
	mov	r3, r9
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L8+24
	str	r6, [sp]
	bl	ubifs_err
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC1
	.word	.LC0
	.word	UBIFS_HASH_ARR_SZ
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	ubifs_bad_hash, .-ubifs_bad_hash
	.comm	UBIFS_HASH_ARR_SZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
