	.file	"extr_leds-mlxreg.c_mlxreg_led_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to query capability register\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"red"
.LC2:
	.string	"orange"
.LC3:
	.string	"amber"
.LC4:
	.string	"mlxreg"
.LC5:
	.string	"%s:%s"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"label: %s, mask: 0x%02x, offset:0x%02x\n"
	.text
	.p2align 4
	.type	mlxreg_led_config, @function
mlxreg_led_config:
.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
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdx, 36[rsp]
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 16[rsp], rax
	mov	rbx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L2
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	strstr@PLT
	test	rax, rax
	jne	.L8
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	strstr@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR MLXREG_LED_AMBER_SOLID[rip]
	mov	DWORD PTR 12[r15], eax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 8[r15]
	mov	rcx, r14
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	call	sprintf@PLT
	mov	eax, DWORD PTR 8[r15]
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r13
	mov	DWORD PTR 60[r15], eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 24[r15], eax
	mov	eax, DWORD PTR LED_ON[rip]
	mov	DWORD PTR 56[r15], eax
	mov	rax, QWORD PTR mlxreg_led_brightness_set@GOTPCREL[rip]
	mov	QWORD PTR 48[r15], rax
	mov	eax, DWORD PTR mlxreg_led_brightness_get[rip]
	mov	DWORD PTR 40[r15], eax
	mov	eax, DWORD PTR mlxreg_led_blink_set[rip]
	mov	DWORD PTR 36[r15], eax
	mov	eax, DWORD PTR LED_CORE_SUSPENDRESUME[rip]
	mov	QWORD PTR [r15], rbx
	mov	DWORD PTR 32[r15], eax
	call	devm_led_classdev_register@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR 24[r15]
	test	esi, esi
	jne	.L30
.L12:
	mov	ecx, DWORD PTR 20[rbx]
	mov	rdx, QWORD PTR 8[rbx]
	lea	rsi, .LC6[rip]
	mov	edi, DWORD PTR 28[r15]
	mov	r8d, DWORD PTR 16[rbx]
	call	dev_info@PLT
.L7:
	mov	rax, QWORD PTR 16[rsp]
	add	r12d, 1
	add	rbx, 32
	cmp	DWORD PTR [rax], r12d
	jle	.L13
.L2:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, 64
	call	devm_kzalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L31
	mov	rsi, QWORD PTR 24[rbx]
	test	rsi, rsi
	jne	.L32
.L5:
	mov	QWORD PTR 16[r15], rbp
	mov	r14, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	lea	r13, 24[r15]
	mov	rdi, r14
	call	strstr@PLT
	mov	ecx, DWORD PTR LED_OFF[rip]
	mov	DWORD PTR 12[rsp], ecx
	test	rax, rax
	je	.L33
.L8:
	mov	eax, DWORD PTR MLXREG_LED_RED_SOLID[rip]
	mov	DWORD PTR 12[r15], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 4[rax]
	call	regmap_read@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L34
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR 36[rsp], eax
	je	.L7
	and	eax, DWORD PTR MLXREG_LED_CAPABILITY_CLEAR[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r13
	call	mlxreg_led_brightness_set@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR MLXREG_LED_GREEN_SOLID[rip]
	mov	DWORD PTR 12[r15], eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L13:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
.L34:
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlxreg_led_config, .-mlxreg_led_config
	.comm	mlxreg_led_brightness_get,4,4
	.comm	mlxreg_led_blink_set,4,4
	.comm	MLXREG_LED_RED_SOLID,4,4
	.comm	MLXREG_LED_GREEN_SOLID,4,4
	.comm	MLXREG_LED_CAPABILITY_CLEAR,4,4
	.comm	MLXREG_LED_AMBER_SOLID,4,4
	.comm	LED_ON,4,4
	.comm	LED_OFF,4,4
	.comm	LED_CORE_SUSPENDRESUME,4,4
	.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_leds-mlxreg.c_mlxreg_led_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to query capability register\012\000"
	.align	2
.LC1:
	.ascii	"red\000"
	.align	2
.LC2:
	.ascii	"orange\000"
	.align	2
.LC3:
	.ascii	"amber\000"
	.align	2
.LC4:
	.ascii	"mlxreg\000"
	.align	2
.LC5:
	.ascii	"%s:%s\000"
	.align	2
.LC6:
	.ascii	"label: %s, mask: 0x%02x, offset:0x%02x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxreg_led_config, %function
mlxreg_led_config:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L35
	ldr	r10, [r0, #4]
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [r10]
	ldr	r5, [r10, #8]
	cmp	r3, #0
	ble	.L13
	mov	r6, r0
	mov	r7, #0
	ldr	fp, .L35+4
	b	.L2
.L32:
	mov	r0, r9
	ldr	r1, .L35+8
	bl	strstr
	cmp	r0, #0
	bne	.L8
	mov	r0, r9
	ldr	r1, .L35+12
	bl	strstr
	cmp	r0, #0
	ldrne	r2, .L35+16
	ldreq	r2, .L35+20
	ldr	r2, [r2]
	str	r2, [r4, #8]
.L10:
	mov	r3, r9
	ldr	r2, .L35+24
	ldr	r1, .L35+28
	ldr	r0, [r4, #4]
	bl	sprintf
	ldr	lr, [sp, #12]
	ldr	r1, .L35+32
	ldr	r2, .L35+36
	ldr	r3, .L35+40
	ldr	r0, [r2]
	ldr	ip, [r1]
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	str	lr, [r4, #16]
	ldr	r3, [fp]
	ldr	lr, .L35+44
	str	r0, [r4, #28]
	str	r1, [r4, #24]
	ldr	r0, [r6]
	mov	r1, r8
	str	lr, [r4, #36]
	str	ip, [r4, #32]
	str	r2, [r4, #44]
	str	r3, [r4, #40]
	str	r5, [r4]
	bl	devm_led_classdev_register
	cmp	r0, #0
	bne	.L26
	ldr	r1, [r4, #16]
	cmp	r1, #0
	bne	.L29
.L12:
	ldr	r1, [r5, #8]
	ldr	r0, [r4, #20]
	ldr	r3, [r5, #12]
	ldr	r2, [r5, #4]
	str	r1, [sp]
	ldr	r1, .L35+48
	bl	dev_info
.L7:
	ldr	r3, [r10]
	add	r7, r7, #1
	cmp	r3, r7
	add	r5, r5, #20
	ble	.L13
.L2:
	ldr	r3, .L35+52
	mov	r1, #48
	ldr	r2, [r3]
	ldr	r0, [r6]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L30
	ldr	r1, [r5, #16]
	cmp	r1, #0
	bne	.L31
.L5:
	ldr	r9, [r5, #4]
	ldr	r1, .L35+56
	mov	r0, r9
	str	r6, [r4, #12]
	bl	strstr
	ldr	r3, .L35+60
	cmp	r0, #0
	ldr	r3, [r3]
	add	r8, r4, #16
	str	r3, [sp, #12]
	beq	.L32
.L8:
	ldr	r2, .L35+64
	ldr	r2, [r2]
	str	r2, [r4, #8]
	b	.L10
.L31:
	ldr	r0, [r10, #4]
	add	r2, sp, #16
	bl	regmap_read
	cmp	r0, #0
	bne	.L33
	ldr	r2, [r5]
	ldr	r3, [sp, #16]
	tst	r2, r3
	beq	.L7
	ldr	r3, .L35+68
	ldr	r3, [r3]
	and	r3, r3, r2
	str	r3, [r5]
	b	.L5
.L29:
	mov	r0, r8
	bl	mlxreg_led_brightness_set
	b	.L12
.L13:
	mov	r9, #0
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	mov	r0, r9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	ldr	r3, .L35+72
	ldr	r0, [r3]
	rsb	r9, r0, #0
	b	.L1
.L26:
	mov	r9, r0
	b	.L1
.L33:
	mov	r9, r0
	ldr	r1, .L35+76
	ldr	r0, [r6]
	bl	dev_err
	b	.L1
.L34:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC7
	.word	LED_ON
	.word	.LC2
	.word	.LC3
	.word	MLXREG_LED_AMBER_SOLID
	.word	MLXREG_LED_GREEN_SOLID
	.word	.LC4
	.word	.LC5
	.word	mlxreg_led_brightness_get
	.word	mlxreg_led_blink_set
	.word	LED_CORE_SUSPENDRESUME
	.word	mlxreg_led_brightness_set
	.word	.LC6
	.word	GFP_KERNEL
	.word	.LC1
	.word	LED_OFF
	.word	MLXREG_LED_RED_SOLID
	.word	MLXREG_LED_CAPABILITY_CLEAR
	.word	ENOMEM
	.word	.LC0
	.size	mlxreg_led_config, .-mlxreg_led_config
	.comm	mlxreg_led_brightness_get,4,4
	.comm	mlxreg_led_blink_set,4,4
	.comm	MLXREG_LED_RED_SOLID,4,4
	.comm	MLXREG_LED_GREEN_SOLID,4,4
	.comm	MLXREG_LED_CAPABILITY_CLEAR,4,4
	.comm	MLXREG_LED_AMBER_SOLID,4,4
	.comm	LED_ON,4,4
	.comm	LED_OFF,4,4
	.comm	LED_CORE_SUSPENDRESUME,4,4
	.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
