	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt312_set_voltage
_mt312_set_voltage:                     ## @mt312_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
	movq	_SEC_VOLTAGE_OFF@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rdi
	movl	%esi, %eax
	leaq	l___const.mt312_set_voltage.volt_tab(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	(%rdi), %rcx
	movl	%eax, %edx
	xorl	$64, %edx
	cmpq	$0, (%rcx)
	cmovel	%eax, %edx
	movq	_DISEQC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_mt312_writereg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.mt312_set_voltage.volt_tab
l___const.mt312_set_voltage.volt_tab:
	.long	0                               ## 0x0
	.long	64                              ## 0x40
	.long	0                               ## 0x0

	.comm	_SEC_VOLTAGE_OFF,4,2            ## @SEC_VOLTAGE_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DISEQC_MODE,4,2                ## @DISEQC_MODE
	.no_dead_strip	_mt312_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt312_set_voltage
_mt312_set_voltage:                     ; @mt312_set_voltage
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SEC_VOLTAGE_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_VOLTAGE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
Lloh6:
	adrp	x8, l___const.mt312_set_voltage.volt_tab@PAGE
Lloh7:
	add	x8, x8, l___const.mt312_set_voltage.volt_tab@PAGEOFF
	ldr	w8, [x8, w1, uxtw #2]
	ldr	x0, [x0]
	ldr	x9, [x0]
	ldr	x9, [x9]
	eor	w10, w8, #0x40
	cmp	x9, #0
	csel	w2, w8, w10, eq
Lloh8:
	adrp	x8, _DISEQC_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISEQC_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	_mt312_writereg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.mt312_set_voltage.volt_tab
l___const.mt312_set_voltage.volt_tab:
	.long	0                               ; 0x0
	.long	64                              ; 0x40
	.long	0                               ; 0x0

	.comm	_SEC_VOLTAGE_OFF,4,2            ; @SEC_VOLTAGE_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DISEQC_MODE,4,2                ; @DISEQC_MODE
	.no_dead_strip	_mt312_set_voltage
.subsections_via_symbols
