	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina209_interval_store
_ina209_interval_store:                 ## @ina209_interval_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_ina209_update_device
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	_INA209_CONFIGURATION@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	-40(%rbp), %rsi
	callq	_ina209_reg_from_interval
	movl	%eax, %r15d
	movl	16(%rbx), %edi
	movq	(%r12), %rsi
	movl	%eax, %edx
	callq	_i2c_smbus_write_word_swapped
	movq	8(%rbx), %rax
	movq	(%r12), %rcx
	movl	%r15d, (%rax,%rcx,4)
	movl	%r15d, %edi
	callq	_ina209_interval_from_reg
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INA209_CONFIGURATION,8,3       ## @INA209_CONFIGURATION
	.no_dead_strip	_ina209_interval_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina209_interval_store
_ina209_interval_store:                 ; @ina209_interval_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	x21, x2
	bl	_ina209_update_device
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x22, _INA209_CONFIGURATION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INA209_CONFIGURATION@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	ldr	x1, [sp, #8]
	bl	_ina209_reg_from_interval
	mov	x21, x0
	ldr	w0, [x20, #16]
	ldr	x1, [x22]
	mov	x2, x21
	bl	_i2c_smbus_write_word_swapped
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	str	w21, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_ina209_interval_from_reg
	str	w0, [x20, #4]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INA209_CONFIGURATION,8,3       ; @INA209_CONFIGURATION
	.no_dead_strip	_ina209_interval_store
.subsections_via_symbols
