	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina209_value_store
_ina209_value_store:                    ## @ina209_value_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, %r13
	movq	%rsi, %rbx
	callq	_ina209_update_device
	movq	%rax, %r15
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ina209_to_reg
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	12(%r14), %edi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_i2c_smbus_write_word_swapped
	movq	(%r14), %rax
	movl	%r13d, (%rax,%rbx,4)
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_4:
	movl	%r13d, %r12d
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ina209_value_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina209_value_store
_ina209_value_store:                    ; @ina209_value_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	x22, x2
	mov	x21, x1
	bl	_ina209_update_device
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	tbnz	w0, #31, LBB0_5
; %bb.3:
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20]
	ldr	w1, [x8, x21, lsl #2]
	ldr	x2, [sp, #8]
	mov	x0, x21
	bl	_ina209_to_reg
	mov	x23, x0
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	x2, x23
	bl	_i2c_smbus_write_word_swapped
	ldr	x8, [x20]
	str	w23, [x8, x21, lsl #2]
	b	LBB0_7
LBB0_5:
	mov	x19, x0
	b	LBB0_8
LBB0_6:
	mov	w19, w23
LBB0_7:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_8:
	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	_ina209_value_store
.subsections_via_symbols
