	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina3221_read_in
_ina3221_read_in:                       ## @ina3221_read_in
	.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, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	_INA3221_CHANNEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	_INA3221_NUM_CHANNELS@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	cltd
	idivl	(%rcx)
	cmpl	$129, %ebx
	je	LBB0_10
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_11
## %bb.2:
	movq	_ina3221_in_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	_ina3221_is_enabled
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpl	$0, 8(%r13)
	je	LBB0_6
## %bb.5:
	movl	(%r13), %edx
	movl	4(%r13), %edi
	movq	_INA3221_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
LBB0_6:
	movq	%r13, %rdi
	callq	_ina3221_wait_for_data
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ina3221_read_value
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	setl	%al
	movslq	-44(%rbp), %rcx
	shlq	$5, %rax
	orq	$8, %rax
	imulq	%rcx, %rax
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	_ina3221_is_enabled
LBB0_9:
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_3:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INA3221_CHANNEL3,4,2           ## @INA3221_CHANNEL3
	.comm	_ina3221_in_reg,8,3             ## @ina3221_in_reg
	.comm	_INA3221_NUM_CHANNELS,4,2       ## @INA3221_NUM_CHANNELS
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_INA3221_CONFIG,4,2             ## @INA3221_CONFIG
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ina3221_read_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina3221_read_in
_ina3221_read_in:                       ; @ina3221_read_in
	.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	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _INA3221_CHANNEL3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INA3221_CHANNEL3@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh3:
	adrp	x8, _INA3221_NUM_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INA3221_NUM_CHANNELS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w20, w8
	msub	w1, w9, w8, w20
	cmp	w22, #129
	b.eq	LBB0_8
; %bb.1:
	cmp	w22, #128
	b.ne	LBB0_9
; %bb.2:
Lloh6:
	adrp	x8, _ina3221_in_reg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ina3221_in_reg@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w22, [x8, w20, sxtw #2]
	mov	x0, x21
	bl	_ina3221_is_enabled
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _INA3221_CONFIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INA3221_CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	w2, w0, [x21]
	bl	_regmap_write
LBB0_5:
	mov	x0, x21
	bl	_ina3221_wait_for_data
	cbnz	w0, LBB0_12
; %bb.6:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_ina3221_read_value
	cbnz	w0, LBB0_12
; %bb.7:
	ldrsw	x8, [sp, #12]
	cmp	w23, w20
	mov	w9, #8
	mov	w10, #40
	csel	x9, x10, x9, lt
	mul	x8, x8, x9
	str	x8, [x19]
	b	LBB0_12
LBB0_8:
	mov	x0, x21
	bl	_ina3221_is_enabled
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_12
LBB0_9:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _ENODATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_INA3221_CHANNEL3,4,2           ; @INA3221_CHANNEL3
	.comm	_ina3221_in_reg,8,3             ; @ina3221_in_reg
	.comm	_INA3221_NUM_CHANNELS,4,2       ; @INA3221_NUM_CHANNELS
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_INA3221_CONFIG,4,2             ; @INA3221_CONFIG
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ina3221_read_in
.subsections_via_symbols
