	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_set_voltage
_stb0899_set_voltage:                   ## @stb0899_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.3:
	movq	_STB0899_GPIO00CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$130, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_GPIO01CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_GPIO02CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stb0899_write_reg
	jmp	LBB0_8
LBB0_6:
	movq	_STB0899_GPIO00CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$130, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_GPIO01CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$130, %edx
	jmp	LBB0_5
LBB0_4:
	movq	_STB0899_GPIO00CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_GPIO01CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
LBB0_5:
	callq	_stb0899_write_reg
	movq	_STB0899_GPIO02CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$130, %edx
	callq	_stb0899_write_reg
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_GPIO00CFG,4,2          ## @STB0899_GPIO00CFG
	.comm	_STB0899_GPIO01CFG,4,2          ## @STB0899_GPIO01CFG
	.comm	_STB0899_GPIO02CFG,4,2          ## @STB0899_GPIO02CFG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stb0899_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_set_voltage
_stb0899_set_voltage:                   ; @stb0899_set_voltage
	.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
	ldr	x19, [x0]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _STB0899_GPIO00CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STB0899_GPIO00CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #130
	bl	_stb0899_write_reg
Lloh3:
	adrp	x8, _STB0899_GPIO01CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STB0899_GPIO01CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_stb0899_write_reg
Lloh6:
	adrp	x8, _STB0899_GPIO02CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STB0899_GPIO02CFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _STB0899_GPIO00CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STB0899_GPIO00CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #130
	bl	_stb0899_write_reg
Lloh12:
	adrp	x8, _STB0899_GPIO01CFG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STB0899_GPIO01CFG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #130
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _STB0899_GPIO00CFG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STB0899_GPIO00CFG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_stb0899_write_reg
Lloh18:
	adrp	x8, _STB0899_GPIO01CFG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _STB0899_GPIO01CFG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
LBB0_6:
	bl	_stb0899_write_reg
Lloh21:
	adrp	x8, _STB0899_GPIO02CFG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STB0899_GPIO02CFG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #130
LBB0_7:
	bl	_stb0899_write_reg
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_GPIO00CFG,4,2          ; @STB0899_GPIO00CFG
	.comm	_STB0899_GPIO01CFG,4,2          ; @STB0899_GPIO01CFG
	.comm	_STB0899_GPIO02CFG,4,2          ; @STB0899_GPIO02CFG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stb0899_set_voltage
.subsections_via_symbols
