	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_type_store
_temp_type_store:                       ## @temp_type_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, %r13
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r12
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	(%r12), %ecx
	movl	-44(%rbp), %eax
	cmpl	$2, %ecx
	jne	LBB0_4
## %bb.2:
	cmpl	$4, %eax
	jne	LBB0_3
LBB0_4:
	leal	-5(%rax), %edx
	cmpl	$-3, %edx
	ja	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movl	(%r15), %edi
	movq	_REG_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addl	%ecx, %ecx
	movl	$3, %edx
	shll	%cl, %edx
	addl	$-2, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_MODE,4,2                   ## @REG_MODE
	.no_dead_strip	_temp_type_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_type_store
_temp_type_store:                       ; @temp_type_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	x22, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	mov	x21, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtouint
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w9, [x21]
	ldr	w8, [sp, #12]
	cmp	w9, #2
	ccmp	w8, #4, #4, eq
	b.ne	LBB0_3
; %bb.2:
	sub	w10, w8, #5
	cmn	w10, #3
	b.hi	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
Lloh3:
	adrp	x10, _REG_MODE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _REG_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
	lsl	w9, w9, #1
	mov	w10, #3
	lsl	w2, w10, w9
	sub	w8, w8, #2
	lsl	w3, w8, w9
	bl	_regmap_update_bits
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_5:
	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	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_MODE,4,2                   ; @REG_MODE
	.no_dead_strip	_temp_type_store
.subsections_via_symbols
