	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vp1034_set_voltage             ## -- Begin function vp1034_set_voltage
	.p2align	4, 0x90
_vp1034_set_voltage:                    ## @vp1034_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %ecx
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	cmpl	$129, %esi
	je	LBB0_6
## %bb.2:
	cmpl	$130, %ecx
	jne	LBB0_5
## %bb.3:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$13, %esi
	movl	$1, %edx
	callq	_mantis_gpio_set_bits
	movq	%rbx, %rdi
	movl	$14, %esi
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_4:
	movq	_MANTIS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_8
LBB0_6:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$13, %esi
	movl	$1, %edx
	callq	_mantis_gpio_set_bits
	movq	%rbx, %rdi
	movl	$14, %esi
	movl	$1, %edx
LBB0_7:
	callq	_mantis_gpio_set_bits
LBB0_8:
	movq	_MANTIS_GPIF_DOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_mmwrite
	jmp	LBB0_9
LBB0_5:
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANTIS_ERROR,4,2               ## @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Polarization=[13V]"

L_.str.1:                               ## @.str.1
	.asciz	"Polarization=[18V]"

L_.str.2:                               ## @.str.2
	.asciz	"Frontend (dummy) POWERDOWN"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid = (%d)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MANTIS_GPIF_DOUT,4,2           ## @MANTIS_GPIF_DOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vp1034_set_voltage             ; -- Begin function vp1034_set_voltage
	.p2align	2
_vp1034_set_voltage:                    ; @vp1034_set_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
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x0]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x8]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	mov	w1, #13
	mov	w2, #1
	bl	_mantis_gpio_set_bits
	mov	x0, x19
	mov	w1, #14
	mov	w2, #0
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _MANTIS_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MANTIS_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	b	LBB0_7
LBB0_5:
	ldr	w0, [x8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	x0, x19
	mov	w1, #13
	mov	w2, #1
	bl	_mantis_gpio_set_bits
	mov	x0, x19
	mov	w1, #14
	mov	w2, #1
LBB0_6:
	bl	_mantis_gpio_set_bits
LBB0_7:
Lloh11:
	adrp	x8, _MANTIS_GPIF_DOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MANTIS_GPIF_DOUT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_mmwrite
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [x8]
	str	x1, [sp]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MANTIS_ERROR,4,2               ; @MANTIS_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Polarization=[13V]"

l_.str.1:                               ; @.str.1
	.asciz	"Polarization=[18V]"

l_.str.2:                               ; @.str.2
	.asciz	"Frontend (dummy) POWERDOWN"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid = (%d)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MANTIS_GPIF_DOUT,4,2           ; @MANTIS_GPIF_DOUT
.subsections_via_symbols
