	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina226_interval_store
_ina226_interval_store:                 ## @ina226_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, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	-40(%rbp), %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	leaq	-1(%rdi), %rcx
	cmpq	(%rax), %rcx
	jae	LBB0_2
## %bb.3:
	movl	(%r15), %r15d
	movq	_INA2XX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_INA226_AVG_RD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_ina226_interval_to_reg
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	movl	%r14d, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INA2XX_CONFIG,4,2              ## @INA2XX_CONFIG
	.comm	_INA226_AVG_RD_MASK,4,2         ## @INA226_AVG_RD_MASK
	.no_dead_strip	_ina226_interval_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina226_interval_store
_ina226_interval_store:                 ; @ina226_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	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x9, x0, #1
	cmp	x9, x8
	b.hs	LBB0_3
; %bb.2:
	ldr	w20, [x20]
Lloh3:
	adrp	x8, _INA2XX_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INA2XX_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _INA226_AVG_RD_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INA226_AVG_RD_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	bl	_ina226_interval_to_reg
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	cmp	w0, #0
	csel	w0, w0, w19, lt
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INA2XX_CONFIG,4,2              ; @INA2XX_CONFIG
	.comm	_INA226_AVG_RD_MASK,4,2         ; @INA226_AVG_RD_MASK
	.no_dead_strip	_ina226_interval_store
.subsections_via_symbols
