	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_get_state
_kbd_get_state:                         ## @kbd_get_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dell_fill_request
	movq	_CLASS_KBD_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SELECT_KBD_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_dell_send_request
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-24(%rbp), %rcx
	movzwl	4(%rcx), %edx
	xorl	%esi, %esi
	bsfl	%edx, %edx
	movl	$-1, %edi
	cmovnel	%edx, %edi
	setne	%sil
	subl	%esi, %edi
	incl	%edi
	movl	%edi, 32(%rbx)
	movzbl	6(%rcx), %edx
	movl	%edx, (%rbx)
	movzbl	7(%rcx), %edx
	andl	$63, %edx
	movl	%edx, 4(%rbx)
	movl	4(%rcx), %edx
	shrl	$30, %edx
	movl	%edx, 8(%rbx)
	movzbl	8(%rcx), %edx
	movl	%edx, 12(%rbx)
	movzbl	9(%rcx), %edx
	movl	%edx, 16(%rbx)
	movzbl	10(%rcx), %edx
	movl	%edx, 20(%rbx)
	movzbl	11(%rcx), %edx
	andl	$63, %edx
	movl	%edx, 24(%rbx)
	movl	8(%rcx), %ecx
	shrl	$30, %ecx
	movl	%ecx, 28(%rbx)
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLASS_KBD_BACKLIGHT,4,2        ## @CLASS_KBD_BACKLIGHT
	.comm	_SELECT_KBD_BACKLIGHT,4,2       ## @SELECT_KBD_BACKLIGHT
	.no_dead_strip	_kbd_get_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_get_state
_kbd_get_state:                         ; @kbd_get_state
	.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
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_dell_fill_request
Lloh0:
	adrp	x8, _CLASS_KBD_BACKLIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLASS_KBD_BACKLIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SELECT_KBD_BACKLIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SELECT_KBD_BACKLIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_dell_send_request
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldrh	w9, [x8, #4]
	rbit	w10, w9
	clz	w10, w10
	cmp	w9, #0
	cset	w9, ne
	csinc	w10, wzr, w10, eq
	sub	w9, w10, w9
	str	w9, [x19, #32]
	ldrb	w9, [x8, #6]
	str	w9, [x19]
	ldrb	w9, [x8, #7]
	and	w9, w9, #0x3f
	str	w9, [x19, #4]
	ldr	w9, [x8, #4]
	lsr	w9, w9, #30
	str	w9, [x19, #8]
	ldrb	w9, [x8, #8]
	str	w9, [x19, #12]
	ldrb	w9, [x8, #9]
	str	w9, [x19, #16]
	ldrb	w9, [x8, #10]
	str	w9, [x19, #20]
	ldrb	w9, [x8, #11]
	and	w9, w9, #0x3f
	str	w9, [x19, #24]
	ldr	w8, [x8, #8]
	lsr	w8, w8, #30
	str	w8, [x19, #28]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLASS_KBD_BACKLIGHT,4,2        ; @CLASS_KBD_BACKLIGHT
	.comm	_SELECT_KBD_BACKLIGHT,4,2       ; @SELECT_KBD_BACKLIGHT
	.no_dead_strip	_kbd_get_state
.subsections_via_symbols
