	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc128_in_store
_adc128_in_store:                       ## @adc128_in_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	4(%rax), %r12
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rdi
	movl	$10, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp_val
	movl	%eax, %r13d
	shll	$4, %eax
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	%r12d, %edi
	cmpl	$1, %r14d
	jne	LBB0_4
## %bb.3:
	callq	_ADC128_REG_IN_MIN
	jmp	LBB0_5
LBB0_1:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_6
LBB0_4:
	callq	_ADC128_REG_IN_MAX
LBB0_5:
	movl	12(%r15), %edi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adc128_in_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc128_in_store
_adc128_in_store:                       ; @adc128_in_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
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldrsw	x24, [x0]
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldrsw	x22, [x0, #4]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x0, [sp, #8]
	mov	w1, #10
	bl	_DIV_ROUND_CLOSEST
	mov	w1, #0
	mov	w2, #255
	bl	_clamp_val
	mov	x23, x0
	lsl	w8, w0, #4
	ldr	x9, [x20]
	ldr	x9, [x9, x24, lsl #3]
	str	w8, [x9, x22, lsl #2]
	mov	x0, x22
	cmp	w24, #1
	b.ne	LBB0_4
; %bb.2:
	bl	_ADC128_REG_IN_MIN
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	b	LBB0_6
LBB0_4:
	bl	_ADC128_REG_IN_MAX
LBB0_5:
	mov	x1, x0
	ldr	w0, [x20, #12]
	mov	x2, x23
	bl	_i2c_smbus_write_byte_data
	mov	x0, x21
	bl	_mutex_unlock
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adc128_in_store
.subsections_via_symbols
