	.file	"extr_light.c_gb_lights_create_all.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Fail to configure lights device\n"
	.text
	.p2align 4
	.type	gb_lights_create_all, @function
gb_lights_create_all:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	lea	rbp, 4[rdi]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r13, QWORD PTR 16[rdi]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rdi, rbx
	call	gb_lights_get_count@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, 4
	call	kcalloc@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR [rbx]
	xor	r14d, r14d
	test	eax, eax
	jg	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	add	r14d, 1
	cmp	DWORD PTR [rbx], r14d
	jle	.L2
.L4:
	mov	esi, r14d
	mov	rdi, rbx
	call	gb_lights_light_config@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L5
	mov	rdi, QWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	gb_lights_create_all, .-gb_lights_create_all
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_light.c_gb_lights_create_all.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Fail to configure lights device\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gb_lights_create_all, %function
gb_lights_create_all:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	add	r7, r0, #4
	mov	r0, r7
	ldr	r8, [r6, #12]
	bl	mutex_lock
	mov	r0, r6
	bl	gb_lights_get_count
	subs	r5, r0, #0
	blt	.L2
	ldr	r3, .L10
	mov	r1, #4
	ldr	r2, [r3]
	ldr	r0, [r6]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r6, #8]
	beq	.L3
	ldr	r3, [r6]
	cmp	r3, #0
	movgt	r4, #0
	bgt	.L4
	b	.L2
.L5:
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L2
.L4:
	mov	r1, r4
	mov	r0, r6
	bl	gb_lights_light_config
	subs	r5, r0, #0
	add	r4, r4, #1
	bge	.L5
	ldr	r0, [r8]
	ldr	r1, .L10+4
	bl	dev_err
.L2:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L2
.L11:
	.align	2
.L10:
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.size	gb_lights_create_all, .-gb_lights_create_all
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
