	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbd_led_als_setting_store
_kbd_led_als_setting_store:             ## @kbd_led_als_setting_store
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rdi
	leaq	-36(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtou8
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_kbd_led_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	leaq	-32(%rbp), %rdi
	callq	_kbd_get_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-36(%rbp), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_kbd_set_state_safe
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %ebx
LBB0_3:
	movq	_kbd_led_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kbd_led_mutex,4,2              ## @kbd_led_mutex
	.no_dead_strip	_kbd_led_als_setting_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbd_led_als_setting_store
_kbd_led_als_setting_store:             ; @kbd_led_als_setting_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x3
	mov	x0, x2
	add	x2, sp, #12
	mov	w1, #10
	bl	_kstrtou8
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x0, _kbd_led_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _kbd_led_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	add	x0, sp, #24
	bl	_kbd_get_state
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [sp, #16]
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_kbd_set_state_safe
	cmp	w0, #0
	csel	w20, w19, w0, eq
LBB0_3:
Lloh2:
	adrp	x0, _kbd_led_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _kbd_led_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_kbd_led_mutex,4,2              ; @kbd_led_mutex
	.no_dead_strip	_kbd_led_als_setting_store
.subsections_via_symbols
