	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emulator_write_emulated        ## -- Begin function emulator_write_emulated
	.p2align	4, 0x90
_emulator_write_emulated:               ## @emulator_write_emulated
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	%edx, %eax
	addq	%rdi, %rax
	decq	%rax
	xorq	%rdi, %rax
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	testq	%rax, %rbx
	je	LBB0_3
## %bb.1:
	movq	%r13, %rax
	negq	%rax
	notq	%rbx
	andq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_emulator_write_emulated_onepage
	movq	_X86EMUL_CONTINUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	movslq	%ebx, %rax
	addq	%rax, %r13
	addq	%rax, %r15
	subl	%ebx, %r12d
LBB0_3:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emulator_write_emulated_onepage ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_X86EMUL_CONTINUE,4,2           ## @X86EMUL_CONTINUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emulator_write_emulated        ; -- Begin function emulator_write_emulated
	.p2align	2
_emulator_write_emulated:               ; @emulator_write_emulated
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x8, x0, w2, uxtw
	sub	x8, x8, #1
	eor	x9, x8, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x9
	b.eq	LBB0_3
; %bb.1:
	neg	x9, x22
	bic	x23, x9, x8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	bl	_emulator_write_emulated_onepage
Lloh3:
	adrp	x8, _X86EMUL_CONTINUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86EMUL_CONTINUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	sxtw	x8, w23
	add	x22, x8, x22
	add	x21, x21, x8
	sub	w20, w20, w23
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_emulator_write_emulated_onepage
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_X86EMUL_CONTINUE,4,2           ; @X86EMUL_CONTINUE
.subsections_via_symbols
