	.file	"extr_leds-fsg.c_fsg_led_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fsg_led_probe, @function
fsg_led_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, 2
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	IXP4XX_EXP_BUS_BASE@PLT
	mov	esi, 512
	mov	edi, eax
	call	ioremap@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR latch_address[rip], rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	DWORD PTR latch_value[rip], 65535
	lea	rsi, fsg_wlan_led[rip]
	mov	rdi, rbp
	mov	DWORD PTR [rax], 65535
	call	led_classdev_register@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	lea	rsi, fsg_wan_led[rip]
	mov	rdi, rbp
	call	led_classdev_register@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	lea	rsi, fsg_sata_led[rip]
	mov	rdi, rbp
	call	led_classdev_register@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	lea	rsi, fsg_usb_led[rip]
	mov	rdi, rbp
	call	led_classdev_register@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
	lea	rsi, fsg_sync_led[rip]
	mov	rdi, rbp
	call	led_classdev_register@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L8
	lea	rsi, fsg_ring_led[rip]
	mov	rdi, rbp
	call	led_classdev_register@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L1
	lea	rdi, fsg_sync_led[rip]
	call	led_classdev_unregister@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, fsg_usb_led[rip]
	call	led_classdev_unregister@PLT
.L7:
	lea	rdi, fsg_sata_led[rip]
	call	led_classdev_unregister@PLT
.L6:
	lea	rdi, fsg_wan_led[rip]
	call	led_classdev_unregister@PLT
.L5:
	lea	rdi, fsg_wlan_led[rip]
	call	led_classdev_unregister@PLT
.L4:
	mov	rdi, QWORD PTR latch_address[rip]
	call	iounmap@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fsg_led_probe, .-fsg_led_probe
	.comm	latch_value,4,4
	.comm	latch_address,8,8
	.comm	fsg_wlan_led,4,4
	.comm	fsg_wan_led,4,4
	.comm	fsg_usb_led,4,4
	.comm	fsg_sync_led,4,4
	.comm	fsg_sata_led,4,4
	.comm	fsg_ring_led,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-fsg.c_fsg_led_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsg_led_probe, %function
fsg_led_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r0, #2
	bl	IXP4XX_EXP_BUS_BASE
	mov	r1, #512
	bl	ioremap
	ldr	r5, .L12
	cmp	r0, #0
	str	r0, [r5]
	beq	.L11
	ldr	r3, .L12+4
	ldr	r2, .L12+8
	ldr	r1, .L12+12
	str	r3, [r2]
	str	r3, [r0]
	mov	r0, r6
	bl	led_classdev_register
	subs	r4, r0, #0
	blt	.L4
	mov	r0, r6
	ldr	r1, .L12+16
	bl	led_classdev_register
	subs	r4, r0, #0
	blt	.L5
	mov	r0, r6
	ldr	r1, .L12+20
	bl	led_classdev_register
	subs	r4, r0, #0
	blt	.L6
	mov	r0, r6
	ldr	r1, .L12+24
	bl	led_classdev_register
	subs	r4, r0, #0
	blt	.L7
	mov	r0, r6
	ldr	r1, .L12+28
	bl	led_classdev_register
	subs	r4, r0, #0
	blt	.L8
	mov	r0, r6
	ldr	r1, .L12+32
	bl	led_classdev_register
	subs	r4, r0, #0
	bge	.L1
	ldr	r0, .L12+28
	bl	led_classdev_unregister
.L8:
	ldr	r0, .L12+24
	bl	led_classdev_unregister
.L7:
	ldr	r0, .L12+20
	bl	led_classdev_unregister
.L6:
	ldr	r0, .L12+16
	bl	led_classdev_unregister
.L5:
	ldr	r0, .L12+12
	bl	led_classdev_unregister
.L4:
	ldr	r0, [r5]
	bl	iounmap
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+36
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	latch_address
	.word	65535
	.word	latch_value
	.word	fsg_wlan_led
	.word	fsg_wan_led
	.word	fsg_sata_led
	.word	fsg_usb_led
	.word	fsg_sync_led
	.word	fsg_ring_led
	.word	ENOMEM
	.size	fsg_led_probe, .-fsg_led_probe
	.comm	latch_value,4,4
	.comm	latch_address,4,4
	.comm	fsg_wlan_led,4,4
	.comm	fsg_wan_led,4,4
	.comm	fsg_usb_led,4,4
	.comm	fsg_sync_led,4,4
	.comm	fsg_sata_led,4,4
	.comm	fsg_ring_led,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
