	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp2xx_regnode_set_voltage
_axp2xx_regnode_set_voltage:            ## @axp2xx_regnode_set_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	callq	_regnode_get_softc
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_axp2xx_regnode_voltage_to_reg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_axp2xx_write
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_axp2xx_regnode_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp2xx_regnode_set_voltage
_axp2xx_regnode_set_voltage:            ; @axp2xx_regnode_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_regnode_get_softc
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x3, sp, #12
	mov	x1, x22
	mov	x2, x20
	bl	_axp2xx_regnode_voltage_to_reg
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21, #8]
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_axp2xx_write
	mov	w0, #0
	str	wzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_axp2xx_regnode_set_voltage
.subsections_via_symbols
