	.file	"extr_umem.c_check_all_batteries.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_all_batteries, @function
check_all_batteries:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR num_cards[rip]
	test	eax, eax
	jle	.L9
	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
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	ebx, 1
	add	rbp, 24
	cmp	DWORD PTR num_cards[rip], ebx
	jle	.L13
.L6:
	mov	r12, QWORD PTR cards[rip]
	add	r12, rbp
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR UM_FLAG_NO_BATT[rip], eax
	jne	.L3
	lea	r13, 20[r12]
	mov	rdi, r13
	call	spin_lock_bh@PLT
	cmp	QWORD PTR 8[r12], 0
	js	.L4
	mov	DWORD PTR 16[r12], 1
.L5:
	mov	rdi, r13
	add	ebx, 1
	add	rbp, 24
	call	spin_unlock_bh@PLT
	cmp	DWORD PTR num_cards[rip], ebx
	jg	.L6
.L13:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	init_battery_timer@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	check_batteries@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	xor	eax, eax
	jmp	init_battery_timer@PLT
	.cfi_endproc
.LFE0:
	.size	check_all_batteries, .-check_all_batteries
	.comm	num_cards,4,4
	.comm	cards,8,8
	.comm	UM_FLAG_NO_BATT,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_umem.c_check_all_batteries.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_all_batteries, %function
check_all_batteries:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L11
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	mov	r7, #1
	ldr	r9, .L11+4
	ldr	r8, .L11+8
	b	.L6
.L3:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L6:
	ldr	r0, [r9]
	ldr	r3, [r8]
	ldr	r2, [r0, r4, lsl #4]
	add	r5, r0, r4, lsl #4
	tst	r2, r3
	bne	.L3
	add	r10, r5, #12
	mov	r0, r10
	bl	spin_lock_bh
	ldr	r3, [r5, #4]
	cmp	r3, #0
	strge	r7, [r5, #8]
	blt	.L10
.L5:
	mov	r0, r10
	bl	spin_unlock_bh
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L2:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	init_battery_timer
.L10:
	mov	r0, r5
	bl	check_batteries
	b	.L5
.L12:
	.align	2
.L11:
	.word	num_cards
	.word	cards
	.word	UM_FLAG_NO_BATT
	.size	check_all_batteries, .-check_all_batteries
	.comm	num_cards,4,4
	.comm	cards,4,4
	.comm	UM_FLAG_NO_BATT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
