	.file	"extr_power_supply_leds.c_power_supply_create_bat_triggers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-charging-or-full"
.LC1:
	.string	"%s-charging"
.LC2:
	.string	"%s-full"
	.text
	.p2align 4
	.type	power_supply_create_bat_triggers, @function
power_supply_create_bat_triggers:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edx, DWORD PTR 40[rdi]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	kasprintf@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	lea	rsi, .LC1[rip]
	call	kasprintf@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	lea	rsi, .LC2[rip]
	call	kasprintf@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L14
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, 36[rbx]
	call	led_trigger_register_simple@PLT
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, 32[rbx]
	call	led_trigger_register_simple@PLT
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, 16[rbx]
	call	led_trigger_register_simple@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	call	kfree@PLT
.L3:
	mov	rdi, QWORD PTR [rbx]
	call	kfree@PLT
.L2:
.L5:
	endbr64
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	power_supply_create_bat_triggers, .-power_supply_create_bat_triggers
	.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_power_supply_leds.c_power_supply_create_bat_triggers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-charging-or-full\000"
	.align	2
.LC1:
	.ascii	"%s-charging\000"
	.align	2
.LC2:
	.ascii	"%s-full\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	power_supply_create_bat_triggers, %function
power_supply_create_bat_triggers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	mov	r4, r0
	ldr	r2, [r0, #24]
	ldr	r1, .L15+4
	ldr	r0, [r5]
	bl	kasprintf
	cmp	r0, #0
	str	r0, [r4]
	beq	.L2
	ldr	r2, [r4, #24]
	ldr	r1, .L15+8
	ldr	r0, [r5]
	bl	kasprintf
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L3
	ldr	r0, [r5]
	ldr	r2, [r4, #24]
	ldr	r1, .L15+12
	bl	kasprintf
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L14
	mov	r5, r4
	ldr	r0, [r5], #16
	add	r1, r4, #20
	bl	led_trigger_register_simple
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	led_trigger_register_simple
	ldr	r0, [r4, #12]
	add	r1, r4, #8
	bl	led_trigger_register_simple
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, [r4, #4]
	bl	kfree
.L3:
	ldr	r0, [r4]
	bl	kfree
.L2:
.L5:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	ENOMEM
	.size	power_supply_create_bat_triggers, .-power_supply_create_bat_triggers
	.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
