	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_led_init
_asus_wmi_led_init:                     ## @asus_wmi_led_init
	.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, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, 204(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_read_tpd_led_state
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	leaq	200(%rbx), %rdi
	movq	_tpd_led_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	160(%rbx), %rsi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 160(%rbx)
	movq	_tpd_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 188(%rbx)
	movq	_tpd_led_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 184(%rbx)
	movl	$1, 168(%rbx)
	movq	48(%rbx), %rdi
	callq	_led_classdev_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_4:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_kbd_led_read
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_ASUS_WMI_DEVID_WIRELESS_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_asus_wmi_dev_is_present
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	112(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jle	LBB0_11
## %bb.8:
	leaq	104(%rbx), %rdi
	movq	_wlan_led_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	64(%rbx), %r14
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	_wlan_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	%rbx, %rdi
	callq	_wlan_led_unknown_state
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_wlan_led_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
LBB0_10:
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movl	$1, 72(%rbx)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 80(%rbx)
	movq	48(%rbx), %rdi
	movq	%r14, %rsi
	callq	_led_classdev_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_11:
	movq	_ASUS_WMI_DEVID_LIGHTBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_asus_wmi_dev_is_present
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	56(%rbx), %rdi
	movq	_lightbar_led_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%rbx), %rsi
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_lightbar_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_lightbar_led_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 16(%rbx)
	movq	48(%rbx), %rdi
	callq	_led_classdev_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_5:
	movl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	leaq	120(%rbx), %rsi
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 120(%rbx)
	movq	_LED_BRIGHT_HW_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 152(%rbx)
	movq	_kbd_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 148(%rbx)
	movq	_kbd_led_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%rbx)
	movl	$3, 128(%rbx)
	movq	48(%rbx), %rdi
	callq	_led_classdev_register
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_6
LBB0_13:
	movq	%rbx, %rdi
	callq	_asus_wmi_led_exit
	movl	%r15d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led_workqueue"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tpd_led_update,4,2             ## @tpd_led_update
L_.str.1:                               ## @.str.1
	.asciz	"asus::touchpad"

	.comm	_tpd_led_set,4,2                ## @tpd_led_set
	.comm	_tpd_led_get,4,2                ## @tpd_led_get
L_.str.2:                               ## @.str.2
	.asciz	"asus::kbd_backlight"

	.comm	_LED_BRIGHT_HW_CHANGED,4,2      ## @LED_BRIGHT_HW_CHANGED
	.comm	_kbd_led_set,4,2                ## @kbd_led_set
	.comm	_kbd_led_get,4,2                ## @kbd_led_get
	.comm	_ASUS_WMI_DEVID_WIRELESS_LED,4,2 ## @ASUS_WMI_DEVID_WIRELESS_LED
	.comm	_wlan_led_update,4,2            ## @wlan_led_update
L_.str.3:                               ## @.str.3
	.asciz	"asus::wlan"

	.comm	_wlan_led_set,4,2               ## @wlan_led_set
	.comm	_wlan_led_get,4,2               ## @wlan_led_get
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
L_.str.4:                               ## @.str.4
	.asciz	"asus-wlan"

	.comm	_ASUS_WMI_DEVID_LIGHTBAR,4,2    ## @ASUS_WMI_DEVID_LIGHTBAR
	.comm	_lightbar_led_update,4,2        ## @lightbar_led_update
L_.str.5:                               ## @.str.5
	.asciz	"asus::lightbar"

	.comm	_lightbar_led_set,4,2           ## @lightbar_led_set
	.comm	_lightbar_led_get,4,2           ## @lightbar_led_get
	.no_dead_strip	_asus_wmi_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_led_init
_asus_wmi_led_init:                     ; @asus_wmi_led_init
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19, #204]
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_read_tpd_led_state
	tbnz	x0, #63, LBB0_3
; %bb.2:
	add	x0, x19, #200
Lloh2:
	adrp	x8, _tpd_led_update@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tpd_led_update@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x1, x19
	str	x8, [x1, #160]!
Lloh7:
	adrp	x8, _tpd_led_set@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tpd_led_set@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _tpd_led_get@GOTPAGE
Lloh11:
	ldr	x9, [x9, _tpd_led_get@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
	mov	w8, #1
	str	w8, [x1, #8]
	ldur	x0, [x1, #-112]
	bl	_led_classdev_register
	mov	x20, x0
	cbnz	w0, LBB0_13
LBB0_3:
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, #0
	bl	_kbd_led_read
	cbz	w0, LBB0_12
LBB0_4:
Lloh13:
	adrp	x8, _ASUS_WMI_DEVID_WIRELESS_LED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASUS_WMI_DEVID_WIRELESS_LED@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asus_wmi_dev_is_present
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x19, #112]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	add	x0, x19, #104
Lloh16:
	adrp	x8, _wlan_led_update@GOTPAGE
Lloh17:
	ldr	x8, [x8, _wlan_led_update@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh19:
	adrp	x8, l_.str.3@PAGE
Lloh20:
	add	x8, x8, l_.str.3@PAGEOFF
	mov	x20, x19
	str	x8, [x20, #64]!
Lloh21:
	adrp	x8, _wlan_led_set@GOTPAGE
Lloh22:
	ldr	x8, [x8, _wlan_led_set@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #92]
	mov	x0, x19
	bl	_wlan_led_unknown_state
	cbnz	w0, LBB0_8
; %bb.7:
Lloh24:
	adrp	x8, _wlan_led_get@GOTPAGE
Lloh25:
	ldr	x8, [x8, _wlan_led_get@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #88]
LBB0_8:
Lloh27:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19, #96]
	mov	w8, #1
	str	w8, [x19, #72]
Lloh30:
	adrp	x8, l_.str.4@PAGE
Lloh31:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19, #80]
	ldr	x0, [x19, #48]
	mov	x1, x20
	bl	_led_classdev_register
	mov	x20, x0
	cbnz	w0, LBB0_13
LBB0_9:
Lloh32:
	adrp	x8, _ASUS_WMI_DEVID_LIGHTBAR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ASUS_WMI_DEVID_LIGHTBAR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_asus_wmi_dev_is_present
	cbz	x0, LBB0_15
; %bb.10:
	add	x0, x19, #56
Lloh35:
	adrp	x8, _lightbar_led_update@GOTPAGE
Lloh36:
	ldr	x8, [x8, _lightbar_led_update@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh38:
	adrp	x8, l_.str.5@PAGE
Lloh39:
	add	x8, x8, l_.str.5@PAGEOFF
	mov	x1, x19
	str	x8, [x1, #8]!
Lloh40:
	adrp	x8, _lightbar_led_set@GOTPAGE
Lloh41:
	ldr	x8, [x8, _lightbar_led_set@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _lightbar_led_get@GOTPAGE
Lloh44:
	ldr	x9, [x9, _lightbar_led_get@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
	mov	w8, #1
	str	w8, [x1, #8]
	ldr	x0, [x1, #40]
	bl	_led_classdev_register
	mov	x20, x0
	cbnz	w0, LBB0_13
	b	LBB0_14
LBB0_11:
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_12:
	ldr	w8, [sp, #12]
	str	w8, [x19]
Lloh49:
	adrp	x8, l_.str.2@PAGE
Lloh50:
	add	x8, x8, l_.str.2@PAGEOFF
	mov	x1, x19
	str	x8, [x1, #120]!
Lloh51:
	adrp	x8, _LED_BRIGHT_HW_CHANGED@GOTPAGE
Lloh52:
	ldr	x8, [x8, _LED_BRIGHT_HW_CHANGED@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x19, #152]
Lloh54:
	adrp	x8, _kbd_led_set@GOTPAGE
Lloh55:
	ldr	x8, [x8, _kbd_led_set@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _kbd_led_get@GOTPAGE
Lloh58:
	ldr	x9, [x9, _kbd_led_get@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #144]
	mov	w8, #3
	str	w8, [x19, #128]
	ldr	x0, [x19, #48]
	bl	_led_classdev_register
	mov	x20, x0
	cbz	w0, LBB0_4
LBB0_13:
	mov	x0, x19
	bl	_asus_wmi_led_exit
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	mov	w20, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led_workqueue"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tpd_led_update,4,2             ; @tpd_led_update
l_.str.1:                               ; @.str.1
	.asciz	"asus::touchpad"

	.comm	_tpd_led_set,4,2                ; @tpd_led_set
	.comm	_tpd_led_get,4,2                ; @tpd_led_get
l_.str.2:                               ; @.str.2
	.asciz	"asus::kbd_backlight"

	.comm	_LED_BRIGHT_HW_CHANGED,4,2      ; @LED_BRIGHT_HW_CHANGED
	.comm	_kbd_led_set,4,2                ; @kbd_led_set
	.comm	_kbd_led_get,4,2                ; @kbd_led_get
	.comm	_ASUS_WMI_DEVID_WIRELESS_LED,4,2 ; @ASUS_WMI_DEVID_WIRELESS_LED
	.comm	_wlan_led_update,4,2            ; @wlan_led_update
l_.str.3:                               ; @.str.3
	.asciz	"asus::wlan"

	.comm	_wlan_led_set,4,2               ; @wlan_led_set
	.comm	_wlan_led_get,4,2               ; @wlan_led_get
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
l_.str.4:                               ; @.str.4
	.asciz	"asus-wlan"

	.comm	_ASUS_WMI_DEVID_LIGHTBAR,4,2    ; @ASUS_WMI_DEVID_LIGHTBAR
	.comm	_lightbar_led_update,4,2        ; @lightbar_led_update
l_.str.5:                               ; @.str.5
	.asciz	"asus::lightbar"

	.comm	_lightbar_led_set,4,2           ; @lightbar_led_set
	.comm	_lightbar_led_get,4,2           ; @lightbar_led_get
	.no_dead_strip	_asus_wmi_led_init
.subsections_via_symbols
