	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emulate_movx
_emulate_movx:                          ## @emulate_movx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rax
	movq	%rcx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	16(%rbp), %r9
	movl	(%rcx), %r14d
	movl	16(%rcx), %ecx
	cmpl	$190, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$183, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$182, %ecx
	jne	LBB0_3
LBB0_5:
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$1, %r8d
	jmp	LBB0_6
LBB0_4:
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	$2, %r8d
LBB0_6:
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_gpr_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	-36(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %r8d
	callq	_vie_update_register
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gpr_map,8,3                    ## @gpr_map
	.no_dead_strip	_emulate_movx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emulate_movx
_emulate_movx:                          ; @emulate_movx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x8, x4
	mov	x22, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w19, [x3]
	ldr	w9, [x3, #16]
	cmp	w9, #190
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #183
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #182
	b.ne	LBB0_7
LBB0_3:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	w4, #1
	b	LBB0_5
LBB0_4:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	w4, #2
LBB0_5:
	mov	x5, x6
	blr	x8
	cbnz	w0, LBB0_8
; %bb.6:
Lloh0:
	adrp	x8, _gpr_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpr_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22, #8]
	ldr	w2, [x8, x9, lsl #2]
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_vie_update_register
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gpr_map,8,3                    ; @gpr_map
	.no_dead_strip	_emulate_movx
.subsections_via_symbols
