	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyboard_led_probe
_keyboard_led_probe:                    ## @keyboard_led_probe
	.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	_ACPI_ROOT_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_KEYBOARD_BACKLIGHT_DEVICE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_ACPI_KEYBOARD_BACKLIGHT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%rax)
	movq	_keyboard_led_set_brightness@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_keyboard_led_get_brightness@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_led_classdev_register
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ROOT_OBJECT,4,2           ## @ACPI_ROOT_OBJECT
	.comm	_ACPI_KEYBOARD_BACKLIGHT_DEVICE,4,2 ## @ACPI_KEYBOARD_BACKLIGHT_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to find ACPI device %s: %d\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"chromeos::kbd_backlight"

	.comm	_ACPI_KEYBOARD_BACKLIGHT_MAX,4,2 ## @ACPI_KEYBOARD_BACKLIGHT_MAX
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.comm	_keyboard_led_set_brightness,4,2 ## @keyboard_led_set_brightness
	.comm	_keyboard_led_get_brightness,4,2 ## @keyboard_led_get_brightness
	.no_dead_strip	_keyboard_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyboard_led_probe
_keyboard_led_probe:                    ; @keyboard_led_probe
	.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
Lloh0:
	adrp	x8, _ACPI_ROOT_OBJECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ROOT_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _ACPI_KEYBOARD_BACKLIGHT_DEVICE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ACPI_KEYBOARD_BACKLIGHT_DEVICE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_acpi_get_handle
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w2, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
Lloh14:
	adrp	x8, _ACPI_KEYBOARD_BACKLIGHT_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACPI_KEYBOARD_BACKLIGHT_MAX@GOTPAGEOFF]
Lloh16:
	adrp	x9, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w10, [x0, #16]
	orr	w9, w10, w9
Lloh19:
	ldr	w8, [x8]
	stp	w9, w8, [x0, #16]
Lloh20:
	adrp	x8, _keyboard_led_set_brightness@GOTPAGE
Lloh21:
	ldr	x8, [x8, _keyboard_led_set_brightness@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _keyboard_led_get_brightness@GOTPAGE
Lloh24:
	ldr	x9, [x9, _keyboard_led_get_brightness@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	x0, x19
	bl	_devm_led_classdev_register
LBB0_5:
	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
LBB0_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh19
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ROOT_OBJECT,4,2           ; @ACPI_ROOT_OBJECT
	.comm	_ACPI_KEYBOARD_BACKLIGHT_DEVICE,4,2 ; @ACPI_KEYBOARD_BACKLIGHT_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to find ACPI device %s: %d\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"chromeos::kbd_backlight"

	.comm	_ACPI_KEYBOARD_BACKLIGHT_MAX,4,2 ; @ACPI_KEYBOARD_BACKLIGHT_MAX
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.comm	_keyboard_led_set_brightness,4,2 ; @keyboard_led_set_brightness
	.comm	_keyboard_led_get_brightness,4,2 ; @keyboard_led_get_brightness
	.no_dead_strip	_keyboard_led_probe
.subsections_via_symbols
