	.file	"extr_btt.c_log_set_indices.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Found an unknown padding scheme\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"log_index_0 = %d\n"
.LC2:
	.string	"log_index_1 = %d\n"
	.text
	.p2align 4
	.type	log_set_indices, @function
log_set_indices:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdi], 0
	mov	QWORD PTR 48[rsp], -1
	jle	.L2
	lea	rax, 40[rsp]
	mov	DWORD PTR 12[rsp], 1
	xor	ebp, ebp
	xor	ebx, ebx
	mov	DWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	call	btt_log_group_read@PLT
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR 16[rsp]
	test	ecx, ecx
	je	.L24
	xor	r12d, r12d
	xor	r14d, r14d
.L16:
	movsx	r15, DWORD PTR 48[rsp]
	lea	rax, 0[0+r15*4]
	mov	QWORD PTR 16[rsp], rax
.L5:
	cmp	r15, r14
	je	.L42
	movsx	rax, DWORD PTR 52[rsp]
	cmp	rax, r14
	je	.L15
	mov	rax, QWORD PTR 40[rsp]
	lea	rdi, [rax+r14*4]
	call	ent_is_padding@PLT
	test	rax, rax
	je	.L40
.L15:
	add	r14, 1
	cmp	r14, 4
	jne	.L5
.L39:
	mov	DWORD PTR 16[rsp], 1
.L8:
	cmp	r12, 2
	mov	eax, 0
	cmovg	eax, DWORD PTR 12[rsp]
	add	rbx, 1
	mov	DWORD PTR 12[rsp], eax
	cmp	QWORD PTR 0[r13], rbx
	jg	.L18
	mov	eax, DWORD PTR 16[rsp]
	or	eax, DWORD PTR 12[rsp]
	je	.L40
	mov	edx, DWORD PTR 12[rsp]
	mov	eax, DWORD PTR 48[rsp]
	test	edx, edx
	jne	.L43
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR 52[rsp]
	mov	DWORD PTR 12[rsp], eax
	sub	eax, 1
	cmp	eax, 1
	jbe	.L21
.L2:
	mov	rdi, r13
	call	to_dev@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L40:
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
.L1:
	mov	rdx, QWORD PTR 56[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L44
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L42:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsp]
	add	rdi, QWORD PTR 40[rsp]
	call	ent_is_padding@PLT
	test	rax, rax
	je	.L15
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L24:
	xor	r15d, r15d
	xor	r12d, r12d
.L4:
	mov	rax, QWORD PTR 40[rsp]
	lea	rdi, [rax+r15*4]
	call	ent_is_padding@PLT
	test	rax, rax
	jne	.L45
	cmp	rbp, 1
	je	.L46
	mov	DWORD PTR 48[rsp+rbp*4], r15d
	add	rbp, 1
	cmp	rbp, 2
	je	.L12
	jg	.L40
	cmp	r15, 3
	je	.L8
.L38:
	lea	rax, 1[r15]
.L7:
	mov	r15, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L45:
	add	r12, 1
	cmp	r15, 3
	jne	.L38
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L46:
	movsx	rsi, DWORD PTR 48[rsp]
	lea	rax, 1[r15]
	mov	r14, rax
	cmp	rsi, r15
	je	.L47
	mov	DWORD PTR 52[rsp], r15d
.L22:
	mov	ebp, 2
	cmp	r14, 4
	jne	.L16
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L47:
	cmp	rax, 4
	jne	.L7
	jmp	.L8
.L12:
	lea	r14, 1[r15]
	jmp	.L22
.L43:
	test	eax, eax
	jne	.L2
.L21:
	mov	rax, QWORD PTR 8[r13]
	mov	ebx, DWORD PTR 12[rsp]
	mov	rdi, r13
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR 4[rax], ebx
	call	to_dev@PLT
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	mov	rdi, r13
	call	to_dev@PLT
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	xor	eax, eax
	jmp	.L1
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	log_set_indices, .-log_set_indices
	.comm	ENXIO,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_btt.c_log_set_indices.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"Found an unknown padding scheme\012\000"
	.align	2
.LC2:
	.ascii	"log_index_0 = %d\012\000"
	.align	2
.LC3:
	.ascii	"log_index_1 = %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_set_indices, %function
log_set_indices:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mvn	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r0]
	ldr	r1, .L51
	sub	sp, sp, #20
	cmp	r2, #0
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	mov	r10, r0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	ble	.L2
	mov	r7, #0
	mov	fp, #1
	mov	r6, r7
	mov	r9, r7
.L18:
	mov	r2, sp
	mov	r1, r6
	mov	r0, r10
	bl	btt_log_group_read
	cmp	r0, #0
	blt	.L1
	cmp	r9, #0
	movne	r8, #0
	movne	r4, r8
	beq	.L44
.L5:
	ldr	r3, [sp, #4]
	cmp	r3, r4
	beq	.L45
	ldr	r3, [sp, #8]
	cmp	r3, r4
	beq	.L15
	ldr	r0, [sp]
	add	r0, r0, r4, lsl #2
	bl	ent_is_padding
	cmp	r0, #0
	beq	.L42
.L15:
	add	r4, r4, #1
	cmp	r4, #4
	bne	.L5
.L40:
	mov	r9, #1
.L8:
	ldr	r3, [r10]
	cmp	r8, #2
	add	r6, r6, #1
	movle	fp, #0
	cmp	r3, r6
	bgt	.L18
	orrs	r3, fp, r9
	beq	.L42
	cmp	fp, #0
	ldr	r3, [sp, #4]
	bne	.L46
	cmp	r3, #0
	bne	.L2
	ldr	fp, [sp, #8]
	sub	r3, fp, #1
	cmp	r3, #1
	bls	.L21
.L2:
	mov	r0, r10
	bl	to_dev
	ldr	r1, .L51+4
	bl	dev_err
.L42:
	ldr	r3, .L51+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r0, [sp]
	add	r0, r0, r4, lsl #2
	bl	ent_is_padding
	cmp	r0, #0
	beq	.L15
	b	.L42
.L44:
	mov	r8, r9
	mov	r5, r9
.L4:
	ldr	r0, [sp]
	add	r0, r0, r5, lsl #2
	bl	ent_is_padding
	cmp	r0, #0
	bne	.L48
	cmp	r7, #1
	beq	.L49
	add	r3, sp, #16
	add	r3, r3, r7, lsl #2
	add	r7, r7, #1
	cmp	r7, #2
	str	r5, [r3, #-12]
	beq	.L12
	bgt	.L42
	cmp	r5, #3
	beq	.L41
.L39:
	add	r3, r5, #1
.L7:
	mov	r5, r3
	b	.L4
.L48:
	cmp	r5, #3
	add	r8, r8, #1
	bne	.L39
	b	.L8
.L49:
	ldr	r3, [sp, #4]
	add	r4, r5, #1
	cmp	r3, r5
	mov	r3, r4
	beq	.L50
	str	r5, [sp, #8]
.L22:
	cmp	r4, #4
	mov	r7, #2
	bne	.L5
	b	.L40
.L50:
	cmp	r4, #4
	bne	.L7
.L41:
	mov	r9, r0
	b	.L8
.L12:
	add	r4, r5, #1
	b	.L22
.L46:
	cmp	r3, #0
	bne	.L2
.L21:
	mov	r4, #0
	ldr	r3, [r10, #4]
	mov	r0, r10
	stm	r3, {r4, fp}
	bl	to_dev
	mov	r2, r4
	ldr	r1, .L51+12
	bl	dev_dbg
	mov	r0, r10
	bl	to_dev
	mov	r2, fp
	ldr	r1, .L51+16
	bl	dev_dbg
	mov	r0, r4
	b	.L1
.L47:
	bl	__stack_chk_fail
.L52:
	.align	2
.L51:
	.word	.LC4
	.word	.LC1
	.word	ENXIO
	.word	.LC2
	.word	.LC3
	.size	log_set_indices, .-log_set_indices
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
