	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_sensor_store
_enable_sensor_store:                   ## @enable_sensor_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_EINVAL@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%r14), %r13d
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_kstrtoint
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	subl	(%r14), %ebx
	movl	%ebx, %eax
	jmp	LBB0_11
LBB0_2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$0, -44(%rbp)
	movl	(%r12), %eax
	je	LBB0_8
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	8(%r12), %edi
	callq	_sensor_hub_device_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_set_power_report_state
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	movl	8(%r12), %edi
	callq	_sensor_hub_device_close
	jmp	LBB0_10
LBB0_8:
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_power_report_state
	movl	%eax, %r13d
	movl	8(%r12), %edi
	callq	_sensor_hub_device_close
	movl	$0, (%r12)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r13d, %r13d
	movq	%r14, %rax
	cmovsl	%r13d, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, (%r12)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_enable_sensor_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_sensor_store
_enable_sensor_store:                   ; @enable_sensor_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w23, [x22]
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtoint
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	neg	w19, w8
	b	LBB0_10
LBB0_2:
	neg	w22, w23
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w9, [sp, #12]
	ldr	w8, [x20]
	cbz	w9, LBB0_7
; %bb.3:
	cbnz	w8, LBB0_9
; %bb.4:
	ldr	w0, [x20, #8]
	bl	_sensor_hub_device_open
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	w23, #1
	mov	x0, x20
	mov	w1, #1
	bl	_set_power_report_state
	cbz	w0, LBB0_11
; %bb.6:
	mov	x22, x0
	ldr	w0, [x20, #8]
	bl	_sensor_hub_device_close
	b	LBB0_9
LBB0_7:
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_set_power_report_state
	mov	x22, x0
	ldr	w0, [x20, #8]
	bl	_sensor_hub_device_close
	str	wzr, [x20]
LBB0_9:
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w19, w22, w19, lt
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	str	w23, [x20]
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_enable_sensor_store
.subsections_via_symbols
