	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function value_store
_value_store:                           ## @value_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	8(%rax), %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_FLAG_IS_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpq	$2, %r14
	ja	LBB0_7
## %bb.3:
	movsbl	(%r12), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpq	$1, %r14
	je	LBB0_6
## %bb.5:
	cmpb	$10, 1(%r12)
	jne	LBB0_7
LBB0_6:
	movsbq	(%r12), %rsi
	addq	$-48, %rsi
	movq	%rsi, -48(%rbp)
	jmp	LBB0_9
LBB0_7:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kstrtol
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rsi
LBB0_9:
	movq	%r15, %rdi
	callq	_gpiod_set_value_cansleep
	movq	%r14, %rbx
	jmp	LBB0_10
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_10:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_IS_OUT,4,2                ## @FLAG_IS_OUT
	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_value_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function value_store
_value_store:                           ; @value_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	x20, x3
	mov	x22, x2
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _FLAG_IS_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_IS_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.1:
	cmp	x20, #2
	b.hi	LBB0_6
; %bb.2:
	ldrsb	w0, [x22]
	bl	_isdigit
	cbz	x0, LBB0_6
; %bb.3:
	cmp	x20, #1
	b.eq	LBB0_5
; %bb.4:
	ldrb	w8, [x22, #1]
	cmp	w8, #10
	b.ne	LBB0_6
LBB0_5:
	ldrsb	x8, [x22]
	sub	x1, x8, #48
	str	x1, [sp, #8]
	b	LBB0_8
LBB0_6:
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtol
	mov	x22, x0
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	x1, [sp, #8]
LBB0_8:
	mov	x0, x21
	bl	_gpiod_set_value_cansleep
	mov	x22, x20
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x22, x8
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_IS_OUT,4,2                ; @FLAG_IS_OUT
	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_value_store
.subsections_via_symbols
