	.file	"extr_rtl8712_led.c_SwLedControlMode2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SwLedControlMode2, @function
SwLedControlMode2:
.LFB0:
	.cfi_startproc
	endbr64
	add	esi, -128
	cmp	esi, 10
	ja	.L30
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, .L4[rip]
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L9-.L4
	.long	.L5-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	IS_LED_BLINKING@PLT
	test	eax, eax
	je	.L37
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR _FW_LINKED[rip]
	call	check_fwstate@PLT
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR LED_SCAN_BLINK[rip]
	cmp	QWORD PTR 40[rbx], rax
	je	.L1
	mov	rdi, rbp
	call	IS_LED_WPS_BLINKING@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR LED_TXRX_BLINK[rip]
	mov	r11d, DWORD PTR 48[rbx]
	mov	QWORD PTR 40[rbx], rax
	movabs	rax, 8589934593
	mov	QWORD PTR 12[rbx], rax
	mov	rax, QWORD PTR LED_STATE_ON[rip]
	test	r11d, r11d
	je	.L18
	mov	rax, QWORD PTR LED_STATE_OFF[rip]
.L18:
	mov	QWORD PTR 32[rbx], rax
	mov	edi, DWORD PTR LED_BLINK_FASTER_INTERVAL_ALPHA[rip]
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR 20[rdi]
	test	r8d, r8d
	jne	.L1
	lea	rbp, 24[rdi]
	mov	edi, DWORD PTR 12[rdi]
	test	edi, edi
	jne	.L38
.L21:
	mov	esi, DWORD PTR 8[rbx]
	test	esi, esi
	jne	.L39
.L22:
	mov	rax, QWORD PTR LED_STATE_ON[rip]
	mov	DWORD PTR 20[rbx], 1
	mov	QWORD PTR 40[rbx], rax
	mov	QWORD PTR 32[rbx], rax
	.p2align 4,,10
	.p2align 3
.L25:
	xor	edi, edi
.L33:
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	mov	rsi, rax
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	DWORD PTR 20[rdi], 0
	mov	rax, QWORD PTR LED_STATE_OFF[rip]
.L35:
	mov	QWORD PTR 40[rbx], rax
	xor	edi, edi
	mov	QWORD PTR 32[rbx], rax
.L34:
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, 24[rbx]
	mov	rsi, rax
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	DWORD PTR 20[rdi], 0
	mov	rax, QWORD PTR LED_STATE_ON[rip]
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR [rdi]
	test	edi, edi
	jne	.L1
	mov	esi, DWORD PTR 8[rbx]
	test	esi, esi
	jne	.L1
	mov	rdi, rbp
	call	IS_LED_WPS_BLINKING@PLT
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 12[rbx]
	lea	rbp, 24[rbx]
	test	ecx, ecx
	jne	.L40
.L14:
	mov	rax, QWORD PTR LED_SCAN_BLINK[rip]
	mov	edx, DWORD PTR 48[rbx]
	mov	DWORD PTR 8[rbx], 1
	mov	DWORD PTR 16[rbx], 24
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR LED_STATE_ON[rip]
	test	edx, edx
	je	.L16
	mov	rax, QWORD PTR LED_STATE_OFF[rip]
.L16:
	mov	QWORD PTR 32[rbx], rax
	mov	edi, DWORD PTR LED_BLINK_SCAN_INTERVAL_ALPHA[rip]
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR LED_STATE_OFF[rip]
	mov	ecx, DWORD PTR 12[rdi]
	lea	rbp, 24[rdi]
	mov	QWORD PTR 40[rdi], rax
	mov	QWORD PTR 32[rdi], rax
	test	ecx, ecx
	jne	.L41
.L23:
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	jne	.L42
.L24:
	mov	eax, DWORD PTR 20[rbx]
	test	eax, eax
	je	.L25
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 20[rbx], 0
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR LED_STATE_ON[rip]
	mov	r10d, DWORD PTR 12[rdi]
	lea	rbp, 24[rdi]
	mov	QWORD PTR 40[rdi], rax
	mov	QWORD PTR 32[rdi], rax
	test	r10d, r10d
	jne	.L43
.L19:
	mov	r9d, DWORD PTR 8[rbx]
	test	r9d, r9d
	je	.L25
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 8[rbx], 0
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 8[rbx], 0
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 12[rbx], 0
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 12[rbx], 0
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR LED_STATE_OFF[rip]
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 8[rbx], 0
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 12[rbx], 0
	jmp	.L23
.L40:
	mov	rdi, rbp
	call	del_timer@PLT
	mov	DWORD PTR 12[rbx], 0
	jmp	.L14
.L30:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	SwLedControlMode2, .-SwLedControlMode2
	.comm	jiffies,8,8
	.comm	_FW_LINKED,4,4
	.comm	LED_TXRX_BLINK,8,8
	.comm	LED_STATE_ON,8,8
	.comm	LED_STATE_OFF,8,8
	.comm	LED_SCAN_BLINK,8,8
	.comm	LED_BLINK_SCAN_INTERVAL_ALPHA,4,4
	.comm	LED_BLINK_FASTER_INTERVAL_ALPHA,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_rtl8712_led.c_SwLedControlMode2.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SwLedControlMode2, %function
SwLedControlMode2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r1, r1, #128
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r5, r0, #4
	cmp	r1, #10
	ldrls	pc, [pc, r1, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L9
	.word	.L5
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L1:
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r5
	bl	IS_LED_BLINKING
	cmp	r0, #0
	ldreq	r3, .L67
	popne	{r4, r5, r6, pc}
	b	.L57
.L7:
	ldr	r3, [r0, #8]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L67+4
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L67+8
	ldr	r2, [r4, #28]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	bl	IS_LED_WPS_BLINKING
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r3, #2
	mov	r2, #1
	ldr	r0, [r4, #32]
	ldr	r1, .L67+12
	cmp	r0, #0
	ldr	r1, [r1]
	str	r3, [r4, #12]
	ldrne	r3, .L67
	ldreq	r3, .L67+16
	str	r1, [r4, #28]
	str	r2, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, .L67+20
	str	r2, [r4, #24]
	ldr	r0, [r3]
	b	.L55
.L9:
	ldr	r5, [r0, #16]
	cmp	r5, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r0, #8]
	add	r6, r0, #20
	cmp	r3, #0
	bne	.L60
.L21:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L61
.L22:
	mov	r2, #1
	mov	r0, #0
	ldr	r3, .L67+16
	str	r2, [r4, #16]
	ldr	r3, [r3]
	str	r3, [r4, #28]
	str	r3, [r4, #24]
.L54:
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L67+24
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	ldr	r3, [r3]
	add	r1, r1, r3
	b	mod_timer
.L6:
	ldr	r3, .L67
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r3, [r0, #28]
	str	r3, [r0, #24]
	add	r5, r0, #20
	bne	.L62
.L23:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L63
.L24:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L64
.L25:
	mov	r0, #0
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L67+24
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r3, [r3]
	add	r1, r1, r3
	b	mod_timer
.L3:
	ldr	r3, .L67+16
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r3, [r0, #28]
	str	r3, [r0, #24]
	add	r5, r0, #20
	bne	.L65
.L19:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L25
	mov	r0, r5
	bl	del_timer
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L25
.L8:
	ldr	r3, [r0]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r0, #4]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r5
	bl	IS_LED_WPS_BLINKING
	subs	r5, r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r4, #8]
	add	r6, r4, #20
	cmp	r3, #0
	bne	.L66
.L14:
	mov	r3, #24
	mov	r2, #1
	ldr	r0, [r4, #32]
	ldr	r1, .L67+8
	cmp	r0, #0
	ldr	r1, [r1]
	str	r3, [r4, #12]
	ldrne	r3, .L67
	ldreq	r3, .L67+16
	str	r1, [r4, #28]
	str	r2, [r4, #4]
	ldr	r2, [r3]
	ldr	r3, .L67+28
	str	r2, [r4, #24]
	ldr	r0, [r3]
	b	.L54
.L11:
	mov	r0, #0
	ldr	r3, .L67
.L56:
	str	r0, [r4, #16]
.L57:
	ldr	r3, [r3]
	str	r3, [r4, #28]
	str	r3, [r4, #24]
.L55:
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L67+24
	add	r0, r4, #20
	ldr	r3, [r3]
	pop	{r4, r5, r6, lr}
	add	r1, r1, r3
	b	mod_timer
.L10:
	mov	r0, #0
	ldr	r3, .L67+16
	b	.L56
.L60:
	mov	r0, r6
	bl	del_timer
	str	r5, [r4, #8]
	b	.L21
.L61:
	mov	r0, r6
	bl	del_timer
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L22
.L65:
	mov	r0, r5
	bl	del_timer
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L19
.L63:
	mov	r0, r5
	bl	del_timer
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L24
.L62:
	mov	r0, r5
	bl	del_timer
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L23
.L64:
	mov	r0, r5
	bl	del_timer
	mov	r3, #0
	str	r3, [r4, #16]
	b	.L25
.L66:
	mov	r0, r6
	bl	del_timer
	str	r5, [r4, #8]
	b	.L14
.L68:
	.align	2
.L67:
	.word	LED_STATE_OFF
	.word	_FW_LINKED
	.word	LED_SCAN_BLINK
	.word	LED_TXRX_BLINK
	.word	LED_STATE_ON
	.word	LED_BLINK_FASTER_INTERVAL_ALPHA
	.word	jiffies
	.word	LED_BLINK_SCAN_INTERVAL_ALPHA
	.size	SwLedControlMode2, .-SwLedControlMode2
	.comm	jiffies,4,4
	.comm	_FW_LINKED,4,4
	.comm	LED_TXRX_BLINK,4,4
	.comm	LED_STATE_ON,4,4
	.comm	LED_STATE_OFF,4,4
	.comm	LED_SCAN_BLINK,4,4
	.comm	LED_BLINK_SCAN_INTERVAL_ALPHA,4,4
	.comm	LED_BLINK_FASTER_INTERVAL_ALPHA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
