	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp2xx_regnode_voltage_to_reg
_axp2xx_regnode_voltage_to_reg:         ## @axp2xx_regnode_voltage_to_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	imull	$1000, (%r9), %eax              ## imm = 0x3E8
	movl	4(%r9), %r8d
	xorl	%edi, %edi
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.1:
	cmpl	%esi, %eax
	jge	LBB0_5
## %bb.2:
	imull	$1000, 8(%r9), %r9d             ## imm = 0x3E8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r9d, %eax
	incq	%rdi
	cmpl	%edi, %r8d
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%esi, %eax
	jl	LBB0_3
LBB0_5:
	cmpl	%edx, %eax
	jle	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	%rdi, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp2xx_regnode_voltage_to_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp2xx_regnode_voltage_to_reg
_axp2xx_regnode_voltage_to_reg:         ; @axp2xx_regnode_voltage_to_reg
	.cfi_startproc
; %bb.0:
	ldr	x11, [x0]
	mov	w12, #1000
	ldp	w8, w10, [x11]
	mul	w8, w8, w12
	cmp	w10, #1
	mov	x9, #0
	ccmp	w8, w1, #0, ge
	b.ge	LBB0_3
; %bb.1:
	ldr	w11, [x11, #8]
	mul	w11, w11, w12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, #1
	add	w8, w11, w8
	cmp	w10, w9
	ccmp	w8, w1, #0, gt
	b.lt	LBB0_2
LBB0_3:
	cmp	w8, w2
	b.le	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_5:
	mov	w0, #0
	str	x9, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp2xx_regnode_voltage_to_reg
.subsections_via_symbols
