	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max197_store_range
_max197_store_range:                    ## @max197_store_range
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %r13d
	movl	4(%rax), %r14d
	movslq	(%r15), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r15d
	shrl	$31, %r15d
	addl	%ebx, %r15d
	sarl	%r15d
	movq	-48(%rbp), %rax
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.4:
	movq	%rbx, %rcx
	negq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_5
## %bb.6:
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	$0, -48(%rbp)
	jmp	LBB0_13
LBB0_9:
	cmpq	%rbx, %rax
	jge	LBB0_10
## %bb.11:
	movslq	%r15d, %rax
	jmp	LBB0_12
LBB0_5:
	movq	%rcx, -48(%rbp)
	jmp	LBB0_13
LBB0_10:
	movq	%rbx, -48(%rbp)
	jmp	LBB0_13
LBB0_7:
	movl	%r15d, %eax
	negl	%eax
	cltq
LBB0_12:
	movq	%rax, -48(%rbp)
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_27:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movl	%r15d, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_19
## %bb.18:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_max197_set_bipolarity
	movq	%rbx, %rdi
LBB0_23:
	movl	%r13d, %esi
	callq	_max197_set_half_range
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_max197_set_unipolarity
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_19:
	movl	%ebx, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_max197_set_bipolarity
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_max197_set_full_range
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_26
LBB0_21:
	movslq	%r15d, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_24
## %bb.22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_24:
	cmpq	%rbx, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_26
## %bb.25:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_max197_set_full_range
LBB0_26:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ERESTARTSYS,8,3                ## @ERESTARTSYS
	.no_dead_strip	_max197_store_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max197_store_range
_max197_store_range:                    ; @max197_store_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	ldp	w21, w25, [x0]
	ldrsw	x23, [x20]
	cmp	w23, #0
	cinc	w24, w23, lt
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	asr	w24, w24, #1
	ldr	x8, [sp, #8]
	cbz	w25, LBB0_6
; %bb.3:
	neg	x9, x23
	cmp	x8, x9
	b.le	LBB0_8
; %bb.4:
	tbnz	x8, #63, LBB0_10
; %bb.5:
	str	xzr, [sp, #8]
	b	LBB0_12
LBB0_6:
	cmp	x8, x23
	b.ge	LBB0_9
; %bb.7:
	sxtw	x8, w24
	b	LBB0_11
LBB0_8:
	str	x9, [sp, #8]
	b	LBB0_12
LBB0_9:
	str	x23, [sp, #8]
	b	LBB0_12
LBB0_10:
	neg	w8, w24
	sxtw	x8, w8
LBB0_11:
	str	x8, [sp, #8]
LBB0_12:
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_16
; %bb.13:
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_20
; %bb.17:
	neg	w9, w24
	cmp	x8, w9, sxtw
	b.ne	LBB0_21
; %bb.18:
	mov	x0, x20
	mov	x1, x21
	bl	_max197_set_bipolarity
LBB0_19:
	mov	x0, x20
	mov	x1, x21
	bl	_max197_set_half_range
	b	LBB0_26
LBB0_20:
	mov	x0, x20
	mov	x1, x21
	bl	_max197_set_unipolarity
	b	LBB0_26
LBB0_21:
	neg	w9, w23
	cmp	x8, w9, sxtw
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x20
	mov	x1, x21
	bl	_max197_set_bipolarity
	b	LBB0_25
LBB0_23:
	cmp	x8, w24, sxtw
	b.eq	LBB0_19
; %bb.24:
	cmp	x8, x23
	b.ne	LBB0_26
LBB0_25:
	mov	x0, x20
	mov	x1, x21
	bl	_max197_set_full_range
LBB0_26:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ERESTARTSYS,8,3                ; @ERESTARTSYS
	.no_dead_strip	_max197_store_range
.subsections_via_symbols
