	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_led_init
_asus_led_init:                         ## @asus_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
	xorl	%ebx, %ebx
	cmpq	$0, 104(%rdi)
	jne	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, 96(%r14)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_TYPE_LED@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_6
## %bb.4:
	leaq	92(%r14), %rsi
	movq	_METHOD_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	(%rbx), %rax
LBB0_6:
	cmpq	%rax, 8(%r14)
	jne	LBB0_8
## %bb.7:
	leaq	88(%r14), %rsi
	movq	_METHOD_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_8:
	leaq	84(%r14), %rsi
	movq	_METHOD_MLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	leaq	80(%r14), %rsi
	movq	_METHOD_TLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	leaq	76(%r14), %rsi
	movq	_METHOD_RLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	leaq	72(%r14), %rsi
	movq	_METHOD_PLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	leaq	68(%r14), %rsi
	movq	_METHOD_GLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_led_register
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_13
LBB0_16:
	movq	%r14, %rdi
	callq	_asus_led_exit
	movl	%r15d, %ebx
	jmp	LBB0_17
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	64(%r14), %edi
	movq	_METHOD_KBD_LIGHT_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_acpi_check_handle
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movl	64(%r14), %edi
	movq	_METHOD_KBD_LIGHT_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_acpi_check_handle
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	leaq	40(%r14), %r15
	leaq	24(%r14), %rdi
	movq	%r14, 32(%r14)
	movq	_asus_kled_cdev_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	L_.str.8(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_asus_kled_cdev_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_asus_kled_cdev_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movl	$3, 48(%r14)
	movq	16(%r14), %rdi
	movq	%r15, %rsi
	callq	_led_classdev_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led_workqueue"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TYPE_LED,8,3                   ## @TYPE_LED
L_.str.1:                               ## @.str.1
	.asciz	"asus::wlan"

	.comm	_METHOD_WLAN,4,2                ## @METHOD_WLAN
L_.str.2:                               ## @.str.2
	.asciz	"asus::bluetooth"

	.comm	_METHOD_BLUETOOTH,4,2           ## @METHOD_BLUETOOTH
L_.str.3:                               ## @.str.3
	.asciz	"asus::mail"

	.comm	_METHOD_MLED,4,2                ## @METHOD_MLED
L_.str.4:                               ## @.str.4
	.asciz	"asus::touchpad"

	.comm	_METHOD_TLED,4,2                ## @METHOD_TLED
L_.str.5:                               ## @.str.5
	.asciz	"asus::record"

	.comm	_METHOD_RLED,4,2                ## @METHOD_RLED
L_.str.6:                               ## @.str.6
	.asciz	"asus::phone"

	.comm	_METHOD_PLED,4,2                ## @METHOD_PLED
L_.str.7:                               ## @.str.7
	.asciz	"asus::gaming"

	.comm	_METHOD_GLED,4,2                ## @METHOD_GLED
	.comm	_METHOD_KBD_LIGHT_SET,4,2       ## @METHOD_KBD_LIGHT_SET
	.comm	_METHOD_KBD_LIGHT_GET,4,2       ## @METHOD_KBD_LIGHT_GET
	.comm	_asus_kled_cdev_update,4,2      ## @asus_kled_cdev_update
L_.str.8:                               ## @.str.8
	.asciz	"asus::kbd_backlight"

	.comm	_asus_kled_cdev_set,4,2         ## @asus_kled_cdev_set
	.comm	_asus_kled_cdev_get,4,2         ## @asus_kled_cdev_get
	.no_dead_strip	_asus_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_led_init
_asus_led_init:                         ; @asus_led_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #104]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_15
LBB0_2:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19, #96]
	cbz	w0, LBB0_14
; %bb.3:
	ldr	x9, [x19]
Lloh2:
	adrp	x21, _TYPE_LED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TYPE_LED@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.4:
	add	x1, x19, #92
Lloh4:
	adrp	x8, _METHOD_WLAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _METHOD_WLAN@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	x8, [x21]
LBB0_6:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	x1, x19, #88
Lloh9:
	adrp	x8, _METHOD_BLUETOOTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _METHOD_BLUETOOTH@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbnz	w0, LBB0_13
LBB0_8:
	add	x1, x19, #84
Lloh14:
	adrp	x8, _METHOD_MLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _METHOD_MLED@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.9:
	add	x1, x19, #80
Lloh19:
	adrp	x8, _METHOD_TLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _METHOD_TLED@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.10:
	add	x1, x19, #76
Lloh24:
	adrp	x8, _METHOD_RLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _METHOD_RLED@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x2, l_.str.5@PAGE
Lloh28:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.11:
	add	x1, x19, #72
Lloh29:
	adrp	x8, _METHOD_PLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _METHOD_PLED@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x2, l_.str.6@PAGE
Lloh33:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.12:
	add	x1, x19, #68
Lloh34:
	adrp	x8, _METHOD_GLED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _METHOD_GLED@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x2, l_.str.7@PAGE
Lloh38:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_asus_led_register
	mov	x20, x0
	cbz	w0, LBB0_16
LBB0_13:
	mov	x0, x19
	bl	_asus_led_exit
	b	LBB0_15
LBB0_14:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w0, [x19, #64]
Lloh42:
	adrp	x8, _METHOD_KBD_LIGHT_SET@GOTPAGE
Lloh43:
	ldr	x8, [x8, _METHOD_KBD_LIGHT_SET@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_check_handle
	cbnz	w0, LBB0_1
; %bb.17:
	ldr	w0, [x19, #64]
Lloh45:
	adrp	x8, _METHOD_KBD_LIGHT_GET@GOTPAGE
Lloh46:
	ldr	x8, [x8, _METHOD_KBD_LIGHT_GET@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_acpi_check_handle
	cbnz	w0, LBB0_1
; %bb.18:
	add	x0, x19, #24
	str	x19, [x19, #32]
Lloh48:
	adrp	x8, _asus_kled_cdev_update@GOTPAGE
Lloh49:
	ldr	x8, [x8, _asus_kled_cdev_update@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh51:
	adrp	x8, l_.str.8@PAGE
Lloh52:
	add	x8, x8, l_.str.8@PAGEOFF
	mov	x1, x19
	str	x8, [x1, #40]!
Lloh53:
	adrp	x8, _asus_kled_cdev_set@GOTPAGE
Lloh54:
	ldr	x8, [x8, _asus_kled_cdev_set@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x8]
Lloh56:
	adrp	x9, _asus_kled_cdev_get@GOTPAGE
Lloh57:
	ldr	x9, [x9, _asus_kled_cdev_get@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x9]
	mov	w9, #3
	stp	w8, w10, [x1, #12]
	str	w9, [x1, #8]
	ldur	x0, [x1, #-24]
	bl	_led_classdev_register
	mov	x20, x0
	cbnz	w0, LBB0_13
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led_workqueue"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TYPE_LED,8,3                   ; @TYPE_LED
l_.str.1:                               ; @.str.1
	.asciz	"asus::wlan"

	.comm	_METHOD_WLAN,4,2                ; @METHOD_WLAN
l_.str.2:                               ; @.str.2
	.asciz	"asus::bluetooth"

	.comm	_METHOD_BLUETOOTH,4,2           ; @METHOD_BLUETOOTH
l_.str.3:                               ; @.str.3
	.asciz	"asus::mail"

	.comm	_METHOD_MLED,4,2                ; @METHOD_MLED
l_.str.4:                               ; @.str.4
	.asciz	"asus::touchpad"

	.comm	_METHOD_TLED,4,2                ; @METHOD_TLED
l_.str.5:                               ; @.str.5
	.asciz	"asus::record"

	.comm	_METHOD_RLED,4,2                ; @METHOD_RLED
l_.str.6:                               ; @.str.6
	.asciz	"asus::phone"

	.comm	_METHOD_PLED,4,2                ; @METHOD_PLED
l_.str.7:                               ; @.str.7
	.asciz	"asus::gaming"

	.comm	_METHOD_GLED,4,2                ; @METHOD_GLED
	.comm	_METHOD_KBD_LIGHT_SET,4,2       ; @METHOD_KBD_LIGHT_SET
	.comm	_METHOD_KBD_LIGHT_GET,4,2       ; @METHOD_KBD_LIGHT_GET
	.comm	_asus_kled_cdev_update,4,2      ; @asus_kled_cdev_update
l_.str.8:                               ; @.str.8
	.asciz	"asus::kbd_backlight"

	.comm	_asus_kled_cdev_set,4,2         ; @asus_kled_cdev_set
	.comm	_asus_kled_cdev_get,4,2         ; @asus_kled_cdev_get
	.no_dead_strip	_asus_led_init
.subsections_via_symbols
