	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp8xx_regnode_set_voltage
_axp8xx_regnode_set_voltage:            ## @axp8xx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_regnode_get_softc
	movq	%rax, %r13
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%r13), %r14d
	movq	%rbx, %rdi
	callq	_regnode_get_name
	movq	(%r13), %rcx
	movl	12(%rcx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_device_printf
LBB0_2:
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_axp8xx_regnode_voltage_to_reg
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_6:
	movl	8(%r13), %edi
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movl	-44(%rbp), %edx
	callq	_axp8xx_write
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting %s (%s) to %d<->%d\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_axp8xx_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 axp8xx_regnode_set_voltage
_axp8xx_regnode_set_voltage:            ; @axp8xx_regnode_set_voltage
	.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
	mov	x23, x0
	bl	_regnode_get_softc
	mov	x21, x0
Lloh0:
	adrp	x8, _bootverbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w24, [x21, #8]
	mov	x0, x23
	bl	_regnode_get_name
	mov	x2, x0
	ldr	x8, [x21]
	ldr	w3, [x8, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x4, x22
	mov	x5, x20
	bl	_device_printf
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_axp8xx_regnode_voltage_to_reg
	cbz	x0, LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _ERANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21, #8]
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	ldr	w2, [sp, #12]
	bl	_axp8xx_write
	mov	w0, #0
	str	wzr, [x19]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting %s (%s) to %d<->%d\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_axp8xx_regnode_set_voltage
.subsections_via_symbols
