	.file	"extr_ideapad-laptop.c_ideapad_sync_rfk_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ideapad_sync_rfk_state, @function
ideapad_sync_rfk_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 16[rdi], 0
	mov	QWORD PTR [rsp], 0
	jne	.L15
.L2:
	mov	eax, DWORD PTR IDEAPAD_RFKILL_DEV_NUM[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	cmp	DWORD PTR IDEAPAD_RFKILL_DEV_NUM[rip], ebx
	jle	.L1
.L6:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	test	rdi, rdi
	je	.L5
	mov	rsi, QWORD PTR [rsp]
	add	rbx, 1
	call	rfkill_set_hw_state@PLT
	cmp	DWORD PTR IDEAPAD_RFKILL_DEV_NUM[rip], ebx
	jg	.L6
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.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
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR VPCCMD_R_RF[rip]
	mov	rdx, rsp
	mov	edi, DWORD PTR [rax]
	call	read_ec_data@PLT
	test	rax, rax
	jne	.L1
	xor	eax, eax
	cmp	QWORD PTR [rsp], 0
	sete	al
	mov	QWORD PTR [rsp], rax
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ideapad_sync_rfk_state, .-ideapad_sync_rfk_state
	.comm	VPCCMD_R_RF,4,4
	.comm	IDEAPAD_RFKILL_DEV_NUM,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_ideapad-laptop.c_ideapad_sync_rfk_state.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ideapad_sync_rfk_state, %function
ideapad_sync_rfk_state:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, [r0, #8]
	ldr	r1, .L20
	sub	sp, sp, #8
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	mov	r5, r0
	str	r3, [sp]
	bne	.L18
.L2:
	ldr	r6, .L20+4
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L1
	mov	r4, #0
	b	.L6
.L5:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L6:
	ldr	r3, [r5]
	ldr	r0, [r3, r4, lsl #2]
	cmp	r0, #0
	beq	.L5
	ldr	r1, [sp]
	bl	rfkill_set_hw_state
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r2, .L20+8
	ldr	r3, [r0, #4]
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, sp
	bl	read_ec_data
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp]
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [sp]
	b	.L2
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	IDEAPAD_RFKILL_DEV_NUM
	.word	VPCCMD_R_RF
	.size	ideapad_sync_rfk_state, .-ideapad_sync_rfk_state
	.comm	VPCCMD_R_RF,4,4
	.comm	IDEAPAD_RFKILL_DEV_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
