	.file	"extr_ledmgr.c_zfLedCtrlType2_scan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfLedCtrlType2_scan
	.type	zfLedCtrlType2_scan, @function
zfLedCtrlType2_scan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	zmw_get_wlan_dev@PLT
	mov	rsi, QWORD PTR wd[rip]
	mov	ecx, DWORD PTR 4[rsi]
	mov	edx, ecx
	sar	edx, 31
	shr	edx, 28
	lea	eax, [rcx+rdx]
	and	eax, 15
	sub	eax, edx
	and	ecx, 15
	je	.L2
	cmp	eax, 8
	je	.L3
	xor	edx, edx
.L12:
	mov	rdi, rbp
	xor	esi, esi
	call	zfHpLedCtrl@PLT
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	zfHpLedCtrl@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR ZM_WIRELESS_MODE_24[rip], eax
	je	.L5
.L6:
	mov	edx, 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR ZM_WIRELESS_MODE_5[rip], eax
	je	.L6
.L5:
	mov	rdi, rbp
	mov	edx, 1
	mov	esi, 1
	call	zfHpLedCtrl@PLT
	mov	rdi, rbp
	xor	edx, edx
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	zfHpLedCtrl@PLT
	.cfi_endproc
.LFE0:
	.size	zfLedCtrlType2_scan, .-zfLedCtrlType2_scan
	.comm	wd,8,8
	.comm	ZM_WIRELESS_MODE_5,4,4
	.comm	ZM_WIRELESS_MODE_24,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_ledmgr.c_zfLedCtrlType2_scan.c"
	.text
	.align	2
	.global	zfLedCtrlType2_scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfLedCtrlType2_scan, %function
zfLedCtrlType2_scan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	zmw_get_wlan_dev
	ldr	r3, .L14
	ldr	r0, [r3]
	ldr	r3, [r0, #4]
	rsbs	r1, r3, #0
	and	r1, r1, #15
	and	r2, r3, #15
	rsbpl	r2, r1, #0
	tst	r3, #15
	beq	.L2
	cmp	r2, #8
	beq	.L3
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
.L12:
	bl	zfHpLedCtrl
	mov	r0, r4
	pop	{r4, lr}
	mov	r2, #0
	mov	r1, #1
	b	zfHpLedCtrl
.L2:
	ldr	r3, .L14+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L5
.L6:
	mov	r2, #1
	mov	r1, #0
	mov	r0, r4
	b	.L12
.L3:
	ldr	r3, .L14+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L6
.L5:
	mov	r2, #1
	mov	r0, r4
	mov	r1, r2
	bl	zfHpLedCtrl
	mov	r2, #0
	mov	r0, r4
	pop	{r4, lr}
	mov	r1, r2
	b	zfHpLedCtrl
.L15:
	.align	2
.L14:
	.word	wd
	.word	ZM_WIRELESS_MODE_24
	.word	ZM_WIRELESS_MODE_5
	.size	zfLedCtrlType2_scan, .-zfLedCtrlType2_scan
	.comm	wd,4,4
	.comm	ZM_WIRELESS_MODE_5,4,4
	.comm	ZM_WIRELESS_MODE_24,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
