	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt312_get_inversion
_mt312_get_inversion:                   ## @mt312_get_inversion
	.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
	movq	%rsi, %rbx
	movq	_VIT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_mt312_readreg
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	-12(%rbp), %ecx
	xorl	%eax, %eax
	testb	$-128, %cl
	je	LBB0_6
## %bb.2:
	testb	$64, %cl
	jne	LBB0_3
## %bb.4:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIT_MODE,4,2                   ## @VIT_MODE
	.comm	_INVERSION_ON,4,2               ## @INVERSION_ON
	.comm	_INVERSION_OFF,4,2              ## @INVERSION_OFF
	.no_dead_strip	_mt312_get_inversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt312_get_inversion
_mt312_get_inversion:                   ; @mt312_get_inversion
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _VIT_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_mt312_readreg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	tbnz	w8, #7, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #0
Lloh3:
	adrp	x9, _INVERSION_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INVERSION_ON@GOTPAGEOFF]
Lloh5:
	adrp	x10, _INVERSION_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _INVERSION_OFF@GOTPAGEOFF]
	tst	w8, #0x40
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VIT_MODE,4,2                   ; @VIT_MODE
	.comm	_INVERSION_ON,4,2               ; @INVERSION_ON
	.comm	_INVERSION_OFF,4,2              ; @INVERSION_OFF
	.no_dead_strip	_mt312_get_inversion
.subsections_via_symbols
