	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mode_store
_mode_store:                            ## @mode_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	(%rdi), %edi
	callq	_to_hid_device
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	movq	%rax, %r14
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtou8
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$3, -36(%rbp)
	jge	LBB0_2
## %bb.3:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %ecx
	cmpl	$1, %ecx
	jne	LBB0_4
## %bb.5:
	movq	_GT683R_LED_AUDIO@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	je	LBB0_7
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_9
LBB0_4:
	movq	_GT683R_LED_BREATHING@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_8
LBB0_7:
	movq	_GT683R_LED_NORMAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_schedule_work
LBB0_9:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GT683R_LED_NORMAL,4,2          ## @GT683R_LED_NORMAL
	.comm	_GT683R_LED_AUDIO,4,2           ## @GT683R_LED_AUDIO
	.comm	_GT683R_LED_BREATHING,4,2       ## @GT683R_LED_BREATHING
	.no_dead_strip	_mode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mode_store
_mode_store:                            ; @mode_store
	.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, x3
	mov	x21, x2
	ldr	w0, [x0]
	bl	_to_hid_device
	bl	_hid_get_drvdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtou8
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #3
	b.ge	LBB0_3
; %bb.2:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _GT683R_LED_NORMAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GT683R_LED_NORMAL@GOTPAGEOFF]
Lloh2:
	adrp	x10, _GT683R_LED_AUDIO@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GT683R_LED_AUDIO@GOTPAGEOFF]
Lloh4:
	adrp	x11, _GT683R_LED_BREATHING@GOTPAGE
Lloh5:
	ldr	x11, [x11, _GT683R_LED_BREATHING@GOTPAGEOFF]
	cmp	w8, #1
	csel	x10, x10, x11, eq
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_schedule_work
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GT683R_LED_NORMAL,4,2          ; @GT683R_LED_NORMAL
	.comm	_GT683R_LED_AUDIO,4,2           ; @GT683R_LED_AUDIO
	.comm	_GT683R_LED_BREATHING,4,2       ; @GT683R_LED_BREATHING
	.no_dead_strip	_mode_store
.subsections_via_symbols
