	.file	"extr_light.c___gb_lights_led_brightness_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__gb_lights_led_brightness_set, @function
__gb_lights_led_brightness_set:
.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
	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
	mov	rbx, rdi
	lea	r15, 4[rbx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	get_conn_from_channel@PLT
	mov	rdi, r15
	mov	r13, QWORD PTR [rax]
	mov	rbp, rax
	call	mutex_lock@PLT
	mov	rdi, r13
	call	gb_pm_runtime_get_sync@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR GB_LIGHTS_TYPE_SET_BRIGHTNESS[rip]
	mov	rdx, rsp
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, 16
	mov	rdi, rbp
	mov	r14d, DWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rsp], rax
	call	gb_operation_sync@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	mov	rax, QWORD PTR 8[rbx]
	xor	edx, edx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	setne	dl
	mov	DWORD PTR [rbx], edx
	test	r14d, r14d
	je	.L10
	test	rax, rax
	je	.L11
.L4:
	mov	rdi, r13
	call	gb_pm_runtime_put_autosuspend@PLT
.L2:
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	test	rax, rax
	je	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	call	gb_pm_runtime_put_autosuspend@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__gb_lights_led_brightness_set, .-__gb_lights_led_brightness_set
	.comm	GB_LIGHTS_TYPE_SET_BRIGHTNESS,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_led_brightness_set.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_led_brightness_set, %function
__gb_lights_led_brightness_set:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L13
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	get_conn_from_channel
	mov	r6, r0
	add	r7, r5, #4
	ldr	r8, [r6]
	mov	r0, r7
	bl	mutex_lock
	mov	r0, r8
	bl	gb_pm_runtime_get_sync
	subs	r4, r0, #0
	blt	.L2
	mov	r3, #0
	ldr	r2, [r5, #16]
	ldr	r0, [r5, #8]
	ldr	r2, [r2]
	ldr	r1, .L13+4
	ldr	lr, [r0]
	ldr	ip, [r5, #12]
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r0, r6
	str	r2, [sp, #16]
	mov	r3, #12
	ldr	r1, [r1]
	add	r2, sp, #8
	ldr	r6, [r5]
	str	lr, [sp, #8]
	str	ip, [sp, #12]
	bl	gb_operation_sync
	subs	r4, r0, #0
	blt	.L4
	ldr	r3, [r5, #8]
	ldr	r3, [r3]
	subs	r2, r3, #0
	movne	r2, #1
	cmp	r6, #0
	str	r2, [r5]
	beq	.L10
	cmp	r3, #0
	beq	.L11
.L4:
	mov	r0, r8
	bl	gb_pm_runtime_put_autosuspend
.L2:
	mov	r0, r7
	bl	mutex_unlock
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	cmp	r3, #0
	beq	.L4
	b	.L2
.L11:
	mov	r0, r8
	bl	gb_pm_runtime_put_autosuspend
	b	.L4
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	GB_LIGHTS_TYPE_SET_BRIGHTNESS
	.size	__gb_lights_led_brightness_set, .-__gb_lights_led_brightness_set
	.comm	GB_LIGHTS_TYPE_SET_BRIGHTNESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
