	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_handle_event_code
_asus_wmi_handle_event_code:            ## @asus_wmi_handle_event_code
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	%edi, -28(%rbp)
	movl	$1, -36(%rbp)
	movl	$1, -32(%rbp)
	movq	16(%rsi), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	-28(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rax, %rdi
	callq	*%rbx
	movl	-28(%rbp), %edi
	movq	_ASUS_WMI_KEY_IGNORE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_21
LBB0_2:
	movq	_NOTIFY_BRNUP_MIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jl	LBB0_5
## %bb.3:
	movq	_NOTIFY_BRNUP_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_5
## %bb.4:
	movq	_ASUS_WMI_BRN_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_NOTIFY_BRNDOWN_MIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jl	LBB0_9
## %bb.6:
	movq	_NOTIFY_BRNDOWN_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_9
## %bb.7:
	movq	_ASUS_WMI_BRN_DOWN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movl	%edi, -28(%rbp)
LBB0_9:
	movq	_ASUS_WMI_BRN_DOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_11
## %bb.10:
	movq	_ASUS_WMI_BRN_UP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_14
LBB0_11:
	xorl	%eax, %eax
	callq	_acpi_video_get_backlight_type
	movq	_acpi_backlight_vendor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_asus_wmi_backlight_notify
	jmp	LBB0_21
LBB0_13:
	movl	-28(%rbp), %edi
LBB0_14:
	movq	_NOTIFY_KBD_BRTUP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_17
## %bb.15:
	movq	(%r14), %rsi
LBB0_16:
	incq	%rsi
	jmp	LBB0_19
LBB0_17:
	movq	_NOTIFY_KBD_BRTDWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_22
## %bb.18:
	movq	(%r14), %rsi
	decq	%rsi
LBB0_19:
	movq	%r14, %rdi
LBB0_20:
	callq	_kbd_led_set_by_kbd
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_NOTIFY_KBD_BRTTOGGLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_25
## %bb.23:
	movq	(%r14), %rsi
	cmpq	32(%r14), %rsi
	jne	LBB0_16
## %bb.24:
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_20
LBB0_25:
	movq	_NOTIFY_FNLOCK_TOGGLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_27
## %bb.26:
	xorl	%eax, %eax
	cmpl	$0, 8(%r14)
	sete	%al
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_asus_wmi_fnlock_update
	jmp	LBB0_21
LBB0_27:
	cmpq	$0, 24(%r14)
	je	LBB0_30
## %bb.28:
	movq	_NOTIFY_KBD_FBM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_30
## %bb.29:
	movq	%r14, %rdi
	callq	_fan_boost_mode_switch_next
	jmp	LBB0_21
LBB0_30:
	callq	_is_display_toggle
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
LBB0_32:
	movl	12(%r14), %edi
	movl	-28(%rbp), %esi
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %ecx
	callq	_sparse_keymap_report_event
	testl	%eax, %eax
	jne	LBB0_21
## %bb.33:
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_KEY_IGNORE,4,2        ## @ASUS_WMI_KEY_IGNORE
	.comm	_NOTIFY_BRNUP_MIN,4,2           ## @NOTIFY_BRNUP_MIN
	.comm	_NOTIFY_BRNUP_MAX,4,2           ## @NOTIFY_BRNUP_MAX
	.comm	_ASUS_WMI_BRN_UP,4,2            ## @ASUS_WMI_BRN_UP
	.comm	_NOTIFY_BRNDOWN_MIN,4,2         ## @NOTIFY_BRNDOWN_MIN
	.comm	_NOTIFY_BRNDOWN_MAX,4,2         ## @NOTIFY_BRNDOWN_MAX
	.comm	_ASUS_WMI_BRN_DOWN,4,2          ## @ASUS_WMI_BRN_DOWN
	.comm	_acpi_backlight_vendor,8,3      ## @acpi_backlight_vendor
	.comm	_NOTIFY_KBD_BRTUP,4,2           ## @NOTIFY_KBD_BRTUP
	.comm	_NOTIFY_KBD_BRTDWN,4,2          ## @NOTIFY_KBD_BRTDWN
	.comm	_NOTIFY_KBD_BRTTOGGLE,4,2       ## @NOTIFY_KBD_BRTTOGGLE
	.comm	_NOTIFY_FNLOCK_TOGGLE,4,2       ## @NOTIFY_FNLOCK_TOGGLE
	.comm	_NOTIFY_KBD_FBM,4,2             ## @NOTIFY_KBD_FBM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown key %x pressed\n"

	.no_dead_strip	_asus_wmi_handle_event_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_handle_event_code
_asus_wmi_handle_event_code:            ; @asus_wmi_handle_event_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	w8, #1
	stp	w8, w0, [sp, #8]
	str	w8, [sp, #4]
	ldr	x8, [x1, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x8
	blr	x9
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _ASUS_WMI_KEY_IGNORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASUS_WMI_KEY_IGNORE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_18
LBB0_2:
Lloh3:
	adrp	x8, _NOTIFY_BRNUP_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOTIFY_BRNUP_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NOTIFY_BRNUP_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NOTIFY_BRNUP_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
Lloh9:
	adrp	x8, _ASUS_WMI_BRN_UP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASUS_WMI_BRN_UP@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ASUS_WMI_BRN_DOWN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASUS_WMI_BRN_DOWN@GOTPAGEOFF]
	b.le	LBB0_5
; %bb.3:
Lloh13:
	adrp	x10, _NOTIFY_BRNDOWN_MIN@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NOTIFY_BRNDOWN_MIN@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _NOTIFY_BRNDOWN_MAX@GOTPAGE
Lloh17:
	ldr	x11, [x11, _NOTIFY_BRNDOWN_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	cmp	w0, w10
	ccmp	w0, w11, #0, ge
	b.gt	LBB0_7
; %bb.4:
	ldr	w0, [x9]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	str	w0, [sp, #12]
LBB0_7:
	ldr	w9, [x9]
	ldr	w8, [x8]
	cmp	w0, w9
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_11
; %bb.8:
	bl	_acpi_video_get_backlight_type
Lloh19:
	adrp	x8, _acpi_backlight_vendor@GOTPAGE
Lloh20:
	ldr	x8, [x8, _acpi_backlight_vendor@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_asus_wmi_backlight_notify
	b	LBB0_18
LBB0_10:
	ldr	w0, [sp, #12]
LBB0_11:
Lloh22:
	adrp	x8, _NOTIFY_KBD_BRTUP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NOTIFY_KBD_BRTUP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x19]
LBB0_13:
	add	x1, x8, #1
	b	LBB0_16
LBB0_14:
Lloh25:
	adrp	x8, _NOTIFY_KBD_BRTDWN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NOTIFY_KBD_BRTDWN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.15:
	ldr	x8, [x19]
	sub	x1, x8, #1
LBB0_16:
	mov	x0, x19
LBB0_17:
	bl	_kbd_led_set_by_kbd
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_19:
Lloh28:
	adrp	x8, _NOTIFY_KBD_BRTTOGGLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NOTIFY_KBD_BRTTOGGLE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.20:
	ldr	x8, [x19]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.21:
	mov	x0, x19
	mov	x1, #0
	b	LBB0_17
LBB0_22:
Lloh31:
	adrp	x8, _NOTIFY_FNLOCK_TOGGLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NOTIFY_FNLOCK_TOGGLE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.23:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_asus_wmi_fnlock_update
	b	LBB0_18
LBB0_24:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_27
; %bb.25:
Lloh34:
	adrp	x8, _NOTIFY_KBD_FBM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NOTIFY_KBD_FBM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_fan_boost_mode_switch_next
	b	LBB0_18
LBB0_27:
	bl	_is_display_toggle
	cbz	x0, LBB0_29
; %bb.28:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
LBB0_29:
	ldr	w0, [x19, #12]
	ldp	w2, w1, [sp, #8]
	ldr	w3, [sp, #4]
	bl	_sparse_keymap_report_event
	cbnz	w0, LBB0_18
; %bb.30:
	ldr	w1, [sp, #12]
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_KEY_IGNORE,4,2        ; @ASUS_WMI_KEY_IGNORE
	.comm	_NOTIFY_BRNUP_MIN,4,2           ; @NOTIFY_BRNUP_MIN
	.comm	_NOTIFY_BRNUP_MAX,4,2           ; @NOTIFY_BRNUP_MAX
	.comm	_ASUS_WMI_BRN_UP,4,2            ; @ASUS_WMI_BRN_UP
	.comm	_NOTIFY_BRNDOWN_MIN,4,2         ; @NOTIFY_BRNDOWN_MIN
	.comm	_NOTIFY_BRNDOWN_MAX,4,2         ; @NOTIFY_BRNDOWN_MAX
	.comm	_ASUS_WMI_BRN_DOWN,4,2          ; @ASUS_WMI_BRN_DOWN
	.comm	_acpi_backlight_vendor,8,3      ; @acpi_backlight_vendor
	.comm	_NOTIFY_KBD_BRTUP,4,2           ; @NOTIFY_KBD_BRTUP
	.comm	_NOTIFY_KBD_BRTDWN,4,2          ; @NOTIFY_KBD_BRTDWN
	.comm	_NOTIFY_KBD_BRTTOGGLE,4,2       ; @NOTIFY_KBD_BRTTOGGLE
	.comm	_NOTIFY_FNLOCK_TOGGLE,4,2       ; @NOTIFY_FNLOCK_TOGGLE
	.comm	_NOTIFY_KBD_FBM,4,2             ; @NOTIFY_KBD_FBM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown key %x pressed\n"

	.no_dead_strip	_asus_wmi_handle_event_code
.subsections_via_symbols
