	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_backlight_get
_kbd_backlight_get:                     ## @kbd_backlight_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_WM_KEY_LIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WM_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_lg_wmab
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rcx
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	cmpl	$5, 4(%rcx)
	jne	LBB0_4
## %bb.5:
	movl	(%rcx), %ecx
	andl	$39, %ecx
	cmpl	$34, %ecx
	jne	LBB0_6
## %bb.7:
	movq	_LED_HALF@GOTPCREL(%rip), %rdx
	cmpl	$36, %ecx
	je	LBB0_9
	jmp	LBB0_10
LBB0_4:
	movq	%rax, %rdi
	callq	_kfree
LBB0_1:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_LED_OFF@GOTPCREL(%rip), %rdx
	cmpl	$36, %ecx
	jne	LBB0_10
LBB0_9:
	movq	_LED_FULL@GOTPCREL(%rip), %rdx
LBB0_10:
	movl	(%rdx), %ebx
	movq	%rax, %rdi
	callq	_kfree
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_KEY_LIGHT,4,2               ## @WM_KEY_LIGHT
	.comm	_WM_GET,4,2                     ## @WM_GET
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_HALF,4,2                   ## @LED_HALF
	.no_dead_strip	_kbd_backlight_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_backlight_get
_kbd_backlight_get:                     ; @kbd_backlight_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _WM_KEY_LIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM_KEY_LIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _WM_GET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM_GET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_lg_wmab
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [x8, #4]
	cmp	w9, #5
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x8]
	mov	w9, #39
Lloh9:
	adrp	x10, _LED_FULL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LED_FULL@GOTPAGEOFF]
Lloh11:
	adrp	x11, _LED_HALF@GOTPAGE
Lloh12:
	ldr	x11, [x11, _LED_HALF@GOTPAGEOFF]
Lloh13:
	adrp	x12, _LED_OFF@GOTPAGE
Lloh14:
	ldr	x12, [x12, _LED_OFF@GOTPAGEOFF]
	and	w8, w8, w9
	cmp	w8, #34
	csel	x9, x11, x12, eq
	cmp	w8, #36
	csel	x8, x10, x9, eq
	ldr	w19, [x8]
	bl	_kfree
	b	LBB0_6
LBB0_4:
	bl	_kfree
LBB0_5:
Lloh15:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_KEY_LIGHT,4,2               ; @WM_KEY_LIGHT
	.comm	_WM_GET,4,2                     ; @WM_GET
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_HALF,4,2                   ; @LED_HALF
	.no_dead_strip	_kbd_backlight_get
.subsections_via_symbols
