	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp8xx_regnode_get_voltage
_axp8xx_regnode_get_voltage:            ## @axp8xx_regnode_get_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_regnode_get_softc
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_2
## %bb.3:
	movl	8(%rbx), %edi
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movl	$1, %ecx
	callq	_axp8xx_read
	movq	_AXP_VOLTCTL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-20(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_axp8xx_regnode_reg_to_voltage
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_AXP_VOLTCTL_MASK,4,2           ## @AXP_VOLTCTL_MASK
	.no_dead_strip	_axp8xx_regnode_get_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp8xx_regnode_get_voltage
_axp8xx_regnode_get_voltage:            ; @axp8xx_regnode_get_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_regnode_get_softc
	ldr	x8, [x0]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_axp8xx_read
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _AXP_VOLTCTL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXP_VOLTCTL_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	bl	_axp8xx_regnode_reg_to_voltage
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_AXP_VOLTCTL_MASK,4,2           ; @AXP_VOLTCTL_MASK
	.no_dead_strip	_axp8xx_regnode_get_voltage
.subsections_via_symbols
