	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_kbd_wmi_led_control_present
_asus_kbd_wmi_led_control_present:      ## @asus_kbd_wmi_led_control_present
	.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, %r14
	movq	_CONFIG_ASUS_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_ASUS_WMI_METHODID_DSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASUS_WMI_DEVID_KBD_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	leaq	-28(%rbp), %rcx
	xorl	%edx, %edx
	callq	_asus_wmi_evaluate_method
	movl	%eax, %ebx
	movl	-28(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_dbg
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_ASUS_WMI_DSTS_PRESENCE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, -28(%rbp)
	setne	%r15b
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ASUS_WMI,4,2            ## @CONFIG_ASUS_WMI
	.comm	_ASUS_WMI_METHODID_DSTS,4,2     ## @ASUS_WMI_METHODID_DSTS
	.comm	_ASUS_WMI_DEVID_KBD_BACKLIGHT,4,2 ## @ASUS_WMI_DEVID_KBD_BACKLIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WMI backlight check: rc %d value %x"

	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ## @ASUS_WMI_DSTS_PRESENCE_BIT
	.no_dead_strip	_asus_kbd_wmi_led_control_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_kbd_wmi_led_control_present
_asus_kbd_wmi_led_control_present:      ; @asus_kbd_wmi_led_control_present
	.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, x0
Lloh0:
	adrp	x8, _CONFIG_ASUS_WMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_ASUS_WMI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ASUS_WMI_METHODID_DSTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASUS_WMI_METHODID_DSTS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ASUS_WMI_DEVID_KBD_BACKLIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASUS_WMI_DEVID_KBD_BACKLIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #0
	bl	_asus_wmi_evaluate_method
	mov	x20, x0
	ldr	w3, [sp, #12]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_hid_dbg
	mov	w0, #0
	cbnz	w20, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _ASUS_WMI_DSTS_PRESENCE_BIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASUS_WMI_DSTS_PRESENCE_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ASUS_WMI,4,2            ; @CONFIG_ASUS_WMI
	.comm	_ASUS_WMI_METHODID_DSTS,4,2     ; @ASUS_WMI_METHODID_DSTS
	.comm	_ASUS_WMI_DEVID_KBD_BACKLIGHT,4,2 ; @ASUS_WMI_DEVID_KBD_BACKLIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WMI backlight check: rc %d value %x"

	.comm	_ASUS_WMI_DSTS_PRESENCE_BIT,4,2 ; @ASUS_WMI_DSTS_PRESENCE_BIT
	.no_dead_strip	_asus_kbd_wmi_led_control_present
.subsections_via_symbols
