	.file	"extr_light.c_gb_lights_light_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gb_lights_light_config, @function
gb_lights_light_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, [rsi+rsi*4]
	mov	r9d, 8
	mov	ecx, 8
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	r8, 16[rsp]
	lea	rbx, [rax+rdx*8]
	lea	rdx, 8[rsp]
	mov	QWORD PTR [rbx], rsi
	mov	QWORD PTR 32[rbx], rdi
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	esi, DWORD PTR GB_LIGHTS_TYPE_GET_LIGHT_CONFIG[rip]
	call	gb_operation_sync@PLT
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR 16[rsp]
	test	ecx, ecx
	jne	.L3
.L12:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR 20[rsp]
	call	strlen@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR 16[rsp]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR NAMES_MAX[rip]
	mov	edi, DWORD PTR 20[rsp]
	mov	DWORD PTR 8[rbx], eax
	call	kstrndup@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 4
	mov	DWORD PTR 24[rbx], eax
	call	kcalloc@PLT
	mov	QWORD PTR 16[rbx], rax
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR 8[rbx]
	xor	ebp, ebp
	test	edx, edx
	jg	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 16[rbx]
.L6:
	lea	rsi, [rax+rbp*4]
	mov	rdi, rbx
	mov	DWORD PTR [rsi], ebp
	call	gb_lights_channel_config@PLT
	test	eax, eax
	js	.L1
	add	rbp, 1
	cmp	DWORD PTR 8[rbx], ebp
	jg	.L15
.L7:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gb_lights_light_config, .-gb_lights_light_config
	.comm	NAMES_MAX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GB_LIGHTS_TYPE_GET_LIGHT_CONFIG,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_light_config.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gb_lights_light_config, %function
gb_lights_light_config:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	ip, r1
	mov	lr, #8
	ldr	r3, [r0, #4]
	add	r2, r1, r1, lsl #2
	ldr	r4, .L15
	sub	sp, sp, #24
	add	r5, r3, r2, lsl #2
	ldr	r1, .L15+4
	ldr	r4, [r4]
	str	r4, [sp, #20]
	mov	r4,#0
	str	r0, [r5, #16]
	ldr	r0, [r0]
	str	ip, [r3, r2, lsl #2]
	add	r3, sp, #12
	str	lr, [sp, #4]
	ldr	r1, [r1]
	add	r2, sp, lr
	str	r3, [sp]
	mov	r3, #4
	str	ip, [sp, #8]
	bl	gb_operation_sync
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bne	.L3
.L11:
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r0, [sp, #16]
	bl	strlen
	cmp	r0, #0
	beq	.L11
	ldr	r2, [sp, #12]
	ldr	r3, .L15+12
	ldr	r4, .L15+16
	ldr	r1, [r3]
	str	r2, [r5, #4]
	ldr	r0, [sp, #16]
	ldr	r2, [r4]
	bl	kstrndup
	mov	r1, #4
	str	r0, [r5, #12]
	ldr	r2, [r4]
	ldr	r0, [r5, #4]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L5
	ldr	r3, [r5, #4]
	cmp	r3, #0
	movgt	r4, #0
	bgt	.L6
	b	.L7
.L14:
	ldr	r0, [r5, #8]
.L6:
	str	r4, [r0, r4, lsl #2]
	add	r1, r0, r4, lsl #2
	mov	r0, r5
	bl	gb_lights_channel_config
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L14
.L7:
	mov	r0, #0
	b	.L1
.L5:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	GB_LIGHTS_TYPE_GET_LIGHT_CONFIG
	.word	EINVAL
	.word	NAMES_MAX
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	gb_lights_light_config, .-gb_lights_light_config
	.comm	NAMES_MAX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	GB_LIGHTS_TYPE_GET_LIGHT_CONFIG,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
