	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl34x_autosleep_store
_adxl34x_autosleep_store:               ## @adxl34x_autosleep_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_PCTL_AUTO_SLEEP@GOTPCREL(%rip), %rax
	movq	_PCTL_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	cmpl	$0, -28(%rbp)
	je	LBB0_3
## %bb.2:
	orl	4(%r15), %edx
	jmp	LBB0_4
LBB0_3:
	notl	%edx
	andl	4(%r15), %edx
LBB0_4:
	movl	%edx, 4(%r15)
	cmpl	$0, 20(%r15)
	jne	LBB0_8
## %bb.5:
	cmpl	$0, 16(%r15)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.7:
	movq	_POWER_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCTL_MEASURE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_AC_WRITE
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCTL_AUTO_SLEEP,4,2            ## @PCTL_AUTO_SLEEP
	.comm	_PCTL_LINK,4,2                  ## @PCTL_LINK
	.comm	_POWER_CTL,4,2                  ## @POWER_CTL
	.comm	_PCTL_MEASURE,4,2               ## @PCTL_MEASURE
	.no_dead_strip	_adxl34x_autosleep_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl34x_autosleep_store
_adxl34x_autosleep_store:               ; @adxl34x_autosleep_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
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtouint
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _PCTL_AUTO_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCTL_AUTO_SLEEP@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _PCTL_LINK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCTL_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w10, w8
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w9, [x20, #4]
	orr	w8, w8, w9
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [x20, #4]
	ldr	w9, [x20, #20]
	cbnz	w9, LBB0_8
; %bb.5:
	ldr	w9, [x20, #16]
	cbnz	w9, LBB0_8
; %bb.6:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_8
; %bb.7:
Lloh6:
	adrp	x9, _POWER_CTL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POWER_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _PCTL_MEASURE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCTL_MEASURE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_AC_WRITE
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCTL_AUTO_SLEEP,4,2            ; @PCTL_AUTO_SLEEP
	.comm	_PCTL_LINK,4,2                  ; @PCTL_LINK
	.comm	_POWER_CTL,4,2                  ; @POWER_CTL
	.comm	_PCTL_MEASURE,4,2               ; @PCTL_MEASURE
	.no_dead_strip	_adxl34x_autosleep_store
.subsections_via_symbols
