	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_ImeComposition
_EDIT_ImeComposition:                   ## @EDIT_ImeComposition
	.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	%rdx, %r13
	movl	%esi, %r12d
	movl	%edi, %r14d
	cmpq	$0, (%rdx)
	jne	LBB0_3
## %bb.1:
	movq	8(%r13), %rax
	cmpq	16(%r13), %rax
	je	LBB0_3
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%esi, %r8d
	movl	%esi, %r9d
	callq	_EDIT_EM_ReplaceSel
	movq	16(%r13), %rax
	movq	%rax, 24(%r13)
LBB0_3:
	movl	%r14d, %edi
	callq	_ImmGetContext
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	%eax, %r15d
	movq	_GCS_RESULTSTR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_EDIT_GetResultStr
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GCS_COMPSTR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_EDIT_GetCompositionStr
LBB0_8:
	movq	_GCS_CURSORPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ImmGetCompositionStringW
	movslq	%eax, %rbx
LBB0_9:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_ImmReleaseContext
	addq	8(%r13), %rbx
	movq	_EF_AFTER_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	32(%r13), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EDIT_SetCaretPos               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_GCS_RESULTSTR,4,2              ## @GCS_RESULTSTR
	.comm	_GCS_COMPSTR,4,2                ## @GCS_COMPSTR
	.comm	_GCS_CURSORPOS,4,2              ## @GCS_CURSORPOS
	.comm	_EF_AFTER_WRAP,4,2              ## @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_ImeComposition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_ImeComposition
_EDIT_ImeComposition:                   ; @EDIT_ImeComposition
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x2]
	cbnz	x8, LBB0_3
; %bb.1:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, x1
	mov	x5, x1
	bl	_EDIT_EM_ReplaceSel
	ldr	x8, [x19, #16]
	str	x8, [x19, #24]
LBB0_3:
	mov	x0, x20
	bl	_ImmGetContext
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh3:
	adrp	x8, _GCS_RESULTSTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GCS_RESULTSTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_EDIT_GetResultStr
	mov	x22, #0
	b	LBB0_10
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh6:
	adrp	x8, _GCS_COMPSTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GCS_COMPSTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_EDIT_GetCompositionStr
LBB0_9:
Lloh9:
	adrp	x8, _GCS_CURSORPOS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GCS_CURSORPOS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_ImmGetCompositionStringW
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	bl	_ImmReleaseContext
	ldr	x8, [x19, #8]
	add	x1, x8, x22
Lloh12:
	adrp	x8, _EF_AFTER_WRAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EF_AFTER_WRAP@GOTPAGEOFF]
	ldr	w9, [x19, #32]
Lloh14:
	ldr	w8, [x8]
	and	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EDIT_SetCaretPos
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_GCS_RESULTSTR,4,2              ; @GCS_RESULTSTR
	.comm	_GCS_COMPSTR,4,2                ; @GCS_COMPSTR
	.comm	_GCS_CURSORPOS,4,2              ; @GCS_CURSORPOS
	.comm	_EF_AFTER_WRAP,4,2              ; @EF_AFTER_WRAP
	.no_dead_strip	_EDIT_ImeComposition
.subsections_via_symbols
