	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ina3221_probe_child_from_dt
_ina3221_probe_child_from_dt:           ## @ina3221_probe_child_from_dt
	.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	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_2:
	movq	-48(%rbp), %r12
	movq	_INA3221_CHANNEL3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_4:
	movq	(%r13), %r13
	movq	%r15, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	(%r12,%r12,2), %r12
	leaq	16(,%r12,8), %rdx
	addq	%r13, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_string
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	ja	LBB0_9
## %bb.10:
	movq	%rdx, 8(%r13,%r12,8)
	jmp	LBB0_11
LBB0_5:
	leaq	(%r12,%r12,2), %rax
	movl	$1, (%r13,%rax,8)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %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	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"missing reg property of %pOFn\n"

	.comm	_INA3221_CHANNEL3,8,3           ## @INA3221_CHANNEL3
L_.str.2:                               ## @.str.2
	.asciz	"invalid reg %d of %pOFn\n"

L_.str.3:                               ## @.str.3
	.asciz	"label"

L_.str.4:                               ## @.str.4
	.asciz	"shunt-resistor-micro-ohms"

	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.5:                               ## @.str.5
	.asciz	"invalid shunt resistor value %u of %pOFn\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ina3221_probe_child_from_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ina3221_probe_child_from_dt
_ina3221_probe_child_from_dt:           ; @ina3221_probe_child_from_dt
	.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	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_2:
	ldr	x21, [sp, #8]
Lloh4:
	adrp	x8, _INA3221_CHANNEL3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INA3221_CHANNEL3@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ls	LBB0_4
; %bb.3:
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	mov	w22, #0
	b	LBB0_12
LBB0_4:
	ldr	x23, [x23]
	mov	x0, x20
	bl	_of_device_is_available
	cbz	w0, LBB0_7
; %bb.5:
	mov	w8, #24
	madd	x8, x21, x8, x23
	add	x2, x8, #16
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_string
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_8
; %bb.6:
	mov	w22, #0
	b	LBB0_12
LBB0_7:
	mov	w22, #0
	mov	w8, #24
	mul	x8, x21, x8
	mov	w9, #1
	str	w9, [x23, x8]
	b	LBB0_12
LBB0_8:
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x2, x8
	b.hi	LBB0_11
; %bb.10:
	mov	w22, #0
	mov	w8, #24
	madd	x8, x21, x8, x23
	str	x2, [x8, #8]
	b	LBB0_12
LBB0_11:
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"missing reg property of %pOFn\n"

	.comm	_INA3221_CHANNEL3,8,3           ; @INA3221_CHANNEL3
l_.str.2:                               ; @.str.2
	.asciz	"invalid reg %d of %pOFn\n"

l_.str.3:                               ; @.str.3
	.asciz	"label"

l_.str.4:                               ; @.str.4
	.asciz	"shunt-resistor-micro-ohms"

	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.5:                               ; @.str.5
	.asciz	"invalid shunt resistor value %u of %pOFn\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ina3221_probe_child_from_dt
.subsections_via_symbols
