	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ideapad_acpi_notify
_ideapad_acpi_notify:                   ## @ideapad_acpi_notify
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%edi, %ebx
	movq	_VPCCMD_R_VPC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_read_ec_data
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	_VPCCMD_R_VPC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_read_ec_data
	testq	%rax, %rax
	je	LBB0_2
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-56(%rbp), %rax
	shlq	$8, %rax
	orq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	leaq	L_.str(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pr_info
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	$16, %rbx
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$13, %rbx
	ja	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13,%rbx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ideapad_input_report
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ideapad_check_special_buttons
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ideapad_backlight_notify_power
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ideapad_input_novokey
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ideapad_backlight_notify_brightness
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ideapad_sync_touchpad_state
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_ideapad_sync_rfk_state
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_VPCCMD_R_VPC1,4,2              ## @VPCCMD_R_VPC1
	.comm	_VPCCMD_R_VPC2,4,2              ## @VPCCMD_R_VPC2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown event: %lu\n"

	.no_dead_strip	_ideapad_acpi_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ideapad_acpi_notify
_ideapad_acpi_notify:                   ; @ideapad_acpi_notify
	.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, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _VPCCMD_R_VPC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPCCMD_R_VPC1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_read_ec_data
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VPCCMD_R_VPC2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPCCMD_R_VPC2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_read_ec_data
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x20, #0
	ldp	x8, x9, [sp]
	orr	x8, x9, x8, lsl #8
	str	x8, [sp, #8]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x22, lJTI0_0@PAGE
Lloh9:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pr_info
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	cmp	x20, #16
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x20, #13
	b.hi	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x8, LBB0_4
	ldrb	w9, [x22, x20]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ideapad_input_report
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ideapad_check_special_buttons
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ideapad_backlight_notify_power
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ideapad_input_novokey
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ideapad_backlight_notify_brightness
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ideapad_sync_touchpad_state
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_ideapad_sync_rfk_state
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_VPCCMD_R_VPC1,4,2              ; @VPCCMD_R_VPC1
	.comm	_VPCCMD_R_VPC2,4,2              ; @VPCCMD_R_VPC2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown event: %lu\n"

	.no_dead_strip	_ideapad_acpi_notify
.subsections_via_symbols
