	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function voltage_store
_voltage_store:                         ## @voltage_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, %r12
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	16(%rax), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_11
LBB0_2:
	movq	%rbx, %r14
	movq	%r13, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rdi
	movq	-48(%rbp), %rsi
	movl	12(%r13), %edx
	callq	_volt2reg
	movq	(%r13), %rdx
	movq	(%r15), %rcx
	movq	8(%r15), %rdi
	movq	(%rdx,%rcx,8), %rdx
	movl	%eax, (%rdx,%rdi,4)
	movq	_ADT7475_VOLTAGE_COUNT@GOTPCREL(%rip), %rdx
	movq	_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rdi
	jae	LBB0_6
## %bb.3:
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.4:
	callq	_VOLTAGE_MIN_REG
	jmp	LBB0_10
LBB0_6:
	cmpq	%rax, %rcx
	jne	LBB0_8
## %bb.7:
	movq	_REG_VTT_MIN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	callq	_VOLTAGE_MAX_REG
	jmp	LBB0_10
LBB0_8:
	movq	_REG_VTT_MAX@GOTPCREL(%rip), %rax
LBB0_9:
	movb	(%rax), %al
LBB0_10:
	movq	(%r13), %rcx
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%rsi,4), %edx
	sarl	$2, %edx
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ADT7475_VOLTAGE_COUNT,8,3      ## @ADT7475_VOLTAGE_COUNT
	.comm	_MIN,8,3                        ## @MIN
	.comm	_REG_VTT_MIN,1,0                ## @REG_VTT_MIN
	.comm	_REG_VTT_MAX,1,0                ## @REG_VTT_MAX
	.no_dead_strip	_voltage_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function voltage_store
_voltage_store:                         ; @voltage_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	x23, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x20, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	x21, [x0, #16]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_11
LBB0_2:
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	ldr	x0, [x20, #8]
	ldr	x1, [sp, #8]
	ldr	w2, [x22, #12]
	bl	_volt2reg
	mov	x8, x0
	ldr	x10, [x22]
	ldp	x9, x0, [x20]
	ldr	x10, [x10, x9, lsl #3]
	str	w8, [x10, x0, lsl #2]
Lloh3:
	adrp	x8, _ADT7475_VOLTAGE_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADT7475_VOLTAGE_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
Lloh6:
	adrp	x8, _MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x10
	b.hs	LBB0_5
; %bb.3:
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	bl	_VOLTAGE_MIN_REG
	mov	x1, x0
	b	LBB0_10
LBB0_5:
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _REG_VTT_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_VTT_MIN@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	bl	_VOLTAGE_MAX_REG
	mov	x1, x0
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _REG_VTT_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_VTT_MAX@GOTPAGEOFF]
LBB0_9:
	ldrb	w1, [x8]
LBB0_10:
	ldr	x8, [x22]
	ldp	x9, x10, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8, x10, lsl #2]
	asr	w2, w8, #2
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	mov	x0, x23
	bl	_mutex_unlock
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ADT7475_VOLTAGE_COUNT,8,3      ; @ADT7475_VOLTAGE_COUNT
	.comm	_MIN,8,3                        ; @MIN
	.comm	_REG_VTT_MIN,1,0                ; @REG_VTT_MIN
	.comm	_REG_VTT_MAX,1,0                ; @REG_VTT_MAX
	.no_dead_strip	_voltage_store
.subsections_via_symbols
