	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_kbd_register_leds
_asus_kbd_register_leds:                ## @asus_kbd_register_leds
	.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, %r15
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_asus_kbd_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	leaq	-25(%rbp), %rsi
	movq	%r15, %rdi
	callq	_asus_kbd_get_functions
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_SUPPORT_KBD_BACKLIGHT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testb	%al, -25(%rbp)
	je	LBB0_8
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_devm_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	$0, (%rax)
	movq	$0, 48(%rax)
	movq	%r15, 40(%rax)
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 8(%rax)
	movl	$3, 16(%rax)
	movq	_asus_kbd_backlight_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_asus_kbd_backlight_get@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	addq	$32, %rax
	movq	_asus_kbd_backlight_work@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_INIT_WORK
	movq	(%r14), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_devm_led_classdev_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_11
## %bb.5:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_devm_kfree
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORT_KBD_BACKLIGHT,1,0      ## @SUPPORT_KBD_BACKLIGHT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asus::kbd_backlight"

	.comm	_asus_kbd_backlight_set,4,2     ## @asus_kbd_backlight_set
	.comm	_asus_kbd_backlight_get,4,2     ## @asus_kbd_backlight_get
	.comm	_asus_kbd_backlight_work,4,2    ## @asus_kbd_backlight_work
	.no_dead_strip	_asus_kbd_register_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_kbd_register_leds
_asus_kbd_register_leds:                ; @asus_kbd_register_leds
	.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, x0
	bl	_hid_get_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_asus_kbd_init
	tbnz	w0, #31, LBB0_6
; %bb.1:
	add	x1, sp, #15
	mov	x0, x19
	bl	_asus_kbd_get_functions
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldrb	w8, [sp, #15]
Lloh0:
	adrp	x9, _SUPPORT_KBD_BACKLIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUPPORT_KBD_BACKLIGHT@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_devm_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.4:
	str	wzr, [x0]
	stp	x19, xzr, [x0, #40]
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0, #8]
Lloh7:
	adrp	x8, _asus_kbd_backlight_set@GOTPAGE
Lloh8:
	ldr	x8, [x8, _asus_kbd_backlight_set@GOTPAGEOFF]
	mov	w9, #3
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh10:
	adrp	x8, _asus_kbd_backlight_get@GOTPAGE
Lloh11:
	ldr	x8, [x8, _asus_kbd_backlight_get@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w9, w8, [x0, #16]
	add	x0, x0, #32
Lloh13:
	adrp	x8, _asus_kbd_backlight_work@GOTPAGE
Lloh14:
	ldr	x8, [x8, _asus_kbd_backlight_work@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	x0, x19
	bl	_devm_led_classdev_register
	mov	x21, x0
	tbz	w0, #31, LBB0_10
; %bb.5:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_devm_kfree
	b	LBB0_10
LBB0_6:
	mov	x21, x0
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORT_KBD_BACKLIGHT,1,0      ; @SUPPORT_KBD_BACKLIGHT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asus::kbd_backlight"

	.comm	_asus_kbd_backlight_set,4,2     ; @asus_kbd_backlight_set
	.comm	_asus_kbd_backlight_get,4,2     ; @asus_kbd_backlight_get
	.comm	_asus_kbd_backlight_work,4,2    ; @asus_kbd_backlight_work
	.no_dead_strip	_asus_kbd_register_leds
.subsections_via_symbols
