	.file	"extr_leds-gpio.c_create_gpio_led.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	create_gpio_led, @function
create_gpio_led:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 36[rdi]
	mov	edi, DWORD PTR 32[rsi]
	mov	QWORD PTR [rsp], 0
	mov	DWORD PTR 28[rsi], eax
	call	gpiod_cansleep@PLT
	mov	DWORD PTR 56[rbp], eax
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR gpio_led_set[rip]
	mov	DWORD PTR 24[rbp], eax
.L3:
	mov	QWORD PTR 48[rbp], 0
	test	r14, r14
	je	.L4
	mov	eax, DWORD PTR gpio_blink_set[rip]
	mov	QWORD PTR 40[rbp], r14
	mov	DWORD PTR 16[rbp], eax
.L4:
	mov	rax, QWORD PTR 0[r13]
	cmp	rax, QWORD PTR LEDS_GPIO_DEFSTATE_KEEP[rip]
	mov	edi, DWORD PTR 32[rbp]
	je	.L20
	cmp	QWORD PTR LEDS_GPIO_DEFSTATE_ON[rip], rax
	sete	al
	movzx	eax, al
.L7:
	mov	edx, DWORD PTR LED_FULL[rip]
	test	eax, eax
	cmove	edx, DWORD PTR LED_OFF[rip]
	mov	DWORD PTR 12[rbp], edx
	mov	edx, DWORD PTR 32[r13]
	test	edx, edx
	jne	.L10
	mov	edx, DWORD PTR LED_CORE_SUSPENDRESUME[rip]
	or	DWORD PTR 8[rbp], edx
.L10:
	cmp	QWORD PTR 24[r13], 0
	je	.L11
	mov	edx, DWORD PTR LED_PANIC_INDICATOR[rip]
	or	DWORD PTR 8[rbp], edx
.L11:
	cmp	QWORD PTR 16[r13], 0
	jne	.L21
.L12:
	mov	esi, eax
	call	gpiod_direction_output@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 8[r13]
	test	rax, rax
	je	.L13
	mov	QWORD PTR 0[rbp], rax
	mov	rsi, rbp
	mov	rdi, r12
	call	devm_led_classdev_register@PLT
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L21:
	.cfi_restore_state
	mov	edx, DWORD PTR LED_RETAIN_AT_SHUTDOWN[rip]
	or	DWORD PTR 8[rbp], edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, rsp
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR [rsp], rbx
	call	devm_led_classdev_register_ext@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR gpio_led_set_blocking[rip]
	mov	DWORD PTR 20[rbp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	call	gpiod_get_value_cansleep@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 32[rbp]
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_gpio_led, .-create_gpio_led
	.comm	gpio_led_set_blocking,4,4
	.comm	gpio_led_set,4,4
	.comm	gpio_blink_set,4,4
	.comm	LED_RETAIN_AT_SHUTDOWN,4,4
	.comm	LED_PANIC_INDICATOR,4,4
	.comm	LED_OFF,4,4
	.comm	LED_FULL,4,4
	.comm	LED_CORE_SUSPENDRESUME,4,4
	.comm	LEDS_GPIO_DEFSTATE_ON,8,8
	.comm	LEDS_GPIO_DEFSTATE_KEEP,8,8
	.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_leds-gpio.c_create_gpio_led.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_gpio_led, %function
create_gpio_led:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r1, #0
	ldr	ip, [r0, #20]
	mov	r7, r3
	ldr	r3, .L28
	sub	sp, sp, #8
	mov	r5, r0
	str	ip, [r4, #24]
	ldr	r0, [r4, #28]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r8, [sp, #32]
	str	r1, [sp]
	mov	r6, r2
	bl	gpiod_cansleep
	cmp	r0, #0
	ldreq	r3, .L28+4
	ldrne	r3, .L28+8
	ldreq	r3, [r3]
	ldrne	r3, [r3]
	streq	r3, [r4, #20]
	strne	r3, [r4, #16]
	mov	r3, #0
	cmp	r8, r3
	str	r3, [r4, #36]
	ldrne	r3, .L28+12
	ldr	r1, [r5]
	ldrne	r3, [r3]
	strne	r8, [r4, #32]
	strne	r3, [r4, #12]
	ldr	r3, .L28+16
	str	r0, [r4, #40]
	ldr	r3, [r3]
	ldr	r0, [r4, #28]
	cmp	r1, r3
	beq	.L26
	ldr	r3, .L28+20
	ldr	r3, [r3]
	sub	r1, r3, r1
	clz	r1, r1
	lsr	r1, r1, #5
.L7:
	cmp	r1, #0
	ldrne	r3, .L28+24
	ldreq	r3, .L28+28
	ldr	r2, [r3]
	ldr	r3, [r5, #16]
	str	r2, [r4, #8]
	cmp	r3, #0
	ldreq	r2, .L28+32
	ldreq	r3, [r4, #4]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4, #4]
	ldr	r3, [r5, #12]
	cmp	r3, #0
	ldrne	r2, .L28+36
	ldrne	r3, [r4, #4]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r4, #4]
	ldr	r3, [r5, #8]
	cmp	r3, #0
	ldrne	r2, .L28+40
	ldrne	r3, [r4, #4]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r4, #4]
	bl	gpiod_direction_output
	subs	r1, r0, #0
	blt	.L1
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L13
	mov	r1, r4
	mov	r0, r6
	str	r3, [r4]
	bl	devm_led_classdev_register
	mov	r1, r0
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r1, r4
	mov	r0, r6
	mov	r2, sp
	str	r7, [sp]
	bl	devm_led_classdev_register_ext
	mov	r1, r0
	b	.L1
.L26:
	bl	gpiod_get_value_cansleep
	subs	r1, r0, #0
	blt	.L1
	ldr	r0, [r4, #28]
	b	.L7
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	gpio_led_set
	.word	gpio_led_set_blocking
	.word	gpio_blink_set
	.word	LEDS_GPIO_DEFSTATE_KEEP
	.word	LEDS_GPIO_DEFSTATE_ON
	.word	LED_FULL
	.word	LED_OFF
	.word	LED_CORE_SUSPENDRESUME
	.word	LED_PANIC_INDICATOR
	.word	LED_RETAIN_AT_SHUTDOWN
	.size	create_gpio_led, .-create_gpio_led
	.comm	gpio_led_set_blocking,4,4
	.comm	gpio_led_set,4,4
	.comm	gpio_blink_set,4,4
	.comm	LED_RETAIN_AT_SHUTDOWN,4,4
	.comm	LED_PANIC_INDICATOR,4,4
	.comm	LED_OFF,4,4
	.comm	LED_FULL,4,4
	.comm	LED_CORE_SUSPENDRESUME,4,4
	.comm	LEDS_GPIO_DEFSTATE_ON,4,4
	.comm	LEDS_GPIO_DEFSTATE_KEEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
