	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ideapad_sync_rfk_state
_ideapad_sync_rfk_state:                ## @ideapad_sync_rfk_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -32(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_VPCCMD_R_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_read_ec_data
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	xorl	%eax, %eax
	cmpq	$0, -32(%rbp)
	sete	%al
	movq	%rax, -32(%rbp)
LBB0_3:
	movq	_IDEAPAD_RFKILL_DEV_NUM@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-32(%rbp), %rsi
	callq	_rfkill_set_hw_state
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPCCMD_R_RF,4,2                ## @VPCCMD_R_RF
	.comm	_IDEAPAD_RFKILL_DEV_NUM,4,2     ## @IDEAPAD_RFKILL_DEV_NUM
	.no_dead_strip	_ideapad_sync_rfk_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ideapad_sync_rfk_state
_ideapad_sync_rfk_state:                ; @ideapad_sync_rfk_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _VPCCMD_R_RF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPCCMD_R_RF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_read_ec_data
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, eq
	str	x8, [sp, #8]
LBB0_3:
Lloh3:
	adrp	x20, _IDEAPAD_RFKILL_DEV_NUM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IDEAPAD_RFKILL_DEV_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [sp, #8]
	bl	_rfkill_set_hw_state
	ldr	w8, [x20]
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VPCCMD_R_RF,4,2                ; @VPCCMD_R_RF
	.comm	_IDEAPAD_RFKILL_DEV_NUM,4,2     ; @IDEAPAD_RFKILL_DEV_NUM
	.no_dead_strip	_ideapad_sync_rfk_state
.subsections_via_symbols
