	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina2xx_read_reg
_ina2xx_read_reg:                       ## @ina2xx_read_reg
	.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	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$-5, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edx
	movl	(%r12), %ecx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, (%r12)
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	_INA2XX_CALIBRATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -52(%rbp)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	%r14, %rdi
	callq	_ina2xx_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_INA2XX_MAX_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	incl	%r15d
	jne	LBB0_1
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting register %d read\n"

L_.str.1:                               ## @.str.1
	.asciz	"read %d, val = 0x%04x\n"

	.comm	_INA2XX_CALIBRATION,4,2         ## @INA2XX_CALIBRATION
L_.str.2:                               ## @.str.2
	.asciz	"chip not calibrated, reinitializing\n"

	.comm	_INA2XX_MAX_DELAY,4,2           ## @INA2XX_MAX_DELAY
L_.str.3:                               ## @.str.3
	.asciz	"unable to reinitialize the chip\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ina2xx_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina2xx_read_reg
_ina2xx_read_reg:                       ; @ina2xx_read_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	mov	w25, #-5
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x26, _INA2XX_CALIBRATION@GOTPAGE
Lloh5:
	ldr	x26, [x26, _INA2XX_CALIBRATION@GOTPAGEOFF]
Lloh6:
	adrp	x27, _INA2XX_MAX_DELAY@GOTPAGE
Lloh7:
	ldr	x27, [x27, _INA2XX_MAX_DELAY@GOTPAGEOFF]
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	mov	x2, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_dev_dbg
	ldr	w8, [x20]
	cbnz	w8, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	ldr	w1, [x26]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_dev_warn
	mov	x0, x22
	bl	_ina2xx_init
	tbnz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x27]
	bl	_msleep
	adds	w25, w25, #1
	b.lo	LBB0_1
; %bb.7:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting register %d read\n"

l_.str.1:                               ; @.str.1
	.asciz	"read %d, val = 0x%04x\n"

	.comm	_INA2XX_CALIBRATION,4,2         ; @INA2XX_CALIBRATION
l_.str.2:                               ; @.str.2
	.asciz	"chip not calibrated, reinitializing\n"

	.comm	_INA2XX_MAX_DELAY,4,2           ; @INA2XX_MAX_DELAY
l_.str.3:                               ; @.str.3
	.asciz	"unable to reinitialize the chip\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ina2xx_read_reg
.subsections_via_symbols
