	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menelaus_set_vio               ## -- Begin function menelaus_set_vio
	.p2align	4, 0x90
_menelaus_set_vio:                      ## @menelaus_set_vio
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movl	%edi, %ebx
	movq	_vio_values@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_menelaus_get_vtg_value
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_vio_vtg@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$2, %ecx
	jmp	LBB0_2
LBB0_1:
	movq	_vio_vtg@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_menelaus_set_voltage           ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vio_vtg,4,2                    ## @vio_vtg
	.comm	_vio_values,4,2                 ## @vio_values
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menelaus_set_vio               ; -- Begin function menelaus_set_vio
	.p2align	2
_menelaus_set_vio:                      ; @menelaus_set_vio
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _vio_values@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vio_values@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_menelaus_get_vtg_value
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x2, x0
Lloh3:
	adrp	x0, _vio_vtg@GOTPAGE
Lloh4:
	ldr	x0, [x0, _vio_vtg@GOTPAGEOFF]
	mov	x1, x19
	mov	w3, #2
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, _vio_vtg@GOTPAGE
Lloh6:
	ldr	x0, [x0, _vio_vtg@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_menelaus_set_voltage
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vio_vtg,4,2                    ; @vio_vtg
	.comm	_vio_values,4,2                 ; @vio_values
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
