	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_ucis                   ## -- Begin function process_ucis
	.p2align	4, 0x90
_process_ucis:                          ## @process_ucis
	.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	_qk_ucis_state@GOTPCREL(%rip), %r15
	movl	$1, %r14d
	cmpl	$0, (%r15)
	je	LBB0_27
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%r15), %rdx
	movq	_UCIS_MAX_SYMBOL_LENGTH@GOTPCREL(%rip), %rdi
	movq	_KC_BSPC@GOTPCREL(%rip), %r13
	movq	_KC_ESC@GOTPCREL(%rip), %r8
	movq	_KC_SPC@GOTPCREL(%rip), %rax
	movq	_KC_ENT@GOTPCREL(%rip), %rcx
	cmpq	(%rdi), %rdx
	jb	LBB0_6
## %bb.2:
	cmpq	%rbx, (%r13)
	je	LBB0_6
## %bb.3:
	cmpq	%rbx, (%r8)
	je	LBB0_6
## %bb.4:
	cmpq	%rbx, (%rax)
	je	LBB0_6
## %bb.5:
	cmpq	%rbx, (%rcx)
	je	LBB0_6
LBB0_26:
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_6:
	cmpl	$0, (%rsi)
	je	LBB0_27
## %bb.7:
	movq	16(%r15), %rsi
	movq	%rbx, (%rsi,%rdx,8)
	movq	8(%r15), %r12
	leaq	1(%r12), %rdx
	movq	%rdx, 8(%r15)
	movq	(%r13), %rdi
	cmpq	%rbx, %rdi
	jne	LBB0_11
## %bb.8:
	cmpq	$2, %rdx
	jb	LBB0_10
## %bb.9:
	decq	%r12
	movq	%r12, 8(%r15)
	jmp	LBB0_27
LBB0_11:
	movq	(%r8), %rsi
	cmpq	%rbx, (%rcx)
	je	LBB0_14
## %bb.12:
	cmpq	%rbx, (%rax)
	je	LBB0_14
## %bb.13:
	cmpq	%rbx, %rsi
	jne	LBB0_27
LBB0_14:
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.15:
	callq	_register_code
	movq	(%r13), %rdi
	callq	_unregister_code
	movq	_UNICODE_TYPE_DELAY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_wait_ms
	testq	%r12, %r12
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	callq	_register_code
	movq	(%r13), %rdi
	callq	_unregister_code
	movl	(%r14), %edi
	callq	_wait_ms
	decq	%r12
	jne	LBB0_16
LBB0_17:
	movq	_KC_ESC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_18:
	cmpq	%rbx, %rsi
	jne	LBB0_20
## %bb.19:
	movl	$0, (%r15)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_qk_ucis_cancel
LBB0_27:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, 8(%r15)
	jmp	LBB0_26
LBB0_20:
	xorl	%eax, %eax
	callq	_unicode_input_start
	movq	_ucis_symbol_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	callq	_is_uni_seq
	testq	%rax, %rax
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%r12
	movq	(%r14), %rax
	movq	24(%rax,%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_22
LBB0_24:
	xorl	%eax, %eax
	callq	_qk_ucis_symbol_fallback
	xorl	%eax, %eax
	callq	_unicode_input_finish
	jmp	LBB0_25
LBB0_28:
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rdi
	addq	$2, %rdi
	callq	_register_ucis
	xorl	%eax, %eax
	callq	_unicode_input_finish
	movq	%r12, %rdi
	callq	_qk_ucis_success
LBB0_25:
	movl	$0, (%r15)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_qk_ucis_state,24,3             ## @qk_ucis_state
	.comm	_UCIS_MAX_SYMBOL_LENGTH,8,3     ## @UCIS_MAX_SYMBOL_LENGTH
	.comm	_KC_BSPC,8,3                    ## @KC_BSPC
	.comm	_KC_ESC,8,3                     ## @KC_ESC
	.comm	_KC_SPC,8,3                     ## @KC_SPC
	.comm	_KC_ENT,8,3                     ## @KC_ENT
	.comm	_UNICODE_TYPE_DELAY,4,2         ## @UNICODE_TYPE_DELAY
	.comm	_ucis_symbol_table,8,3          ## @ucis_symbol_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_ucis                   ; -- Begin function process_ucis
	.p2align	2
_process_ucis:                          ; @process_ucis
	.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
Lloh0:
	adrp	x20, _qk_ucis_state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qk_ucis_state@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x10, [x20, #8]
Lloh2:
	adrp	x8, _UCIS_MAX_SYMBOL_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UCIS_MAX_SYMBOL_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x8]
Lloh5:
	adrp	x21, _KC_BSPC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _KC_BSPC@GOTPAGEOFF]
	ldr	x12, [x21]
Lloh7:
	adrp	x22, _KC_ESC@GOTPAGE
Lloh8:
	ldr	x22, [x22, _KC_ESC@GOTPAGEOFF]
	ldr	x13, [x22]
Lloh9:
	adrp	x8, _KC_SPC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KC_SPC@GOTPAGEOFF]
	ldr	x14, [x8]
Lloh11:
	adrp	x9, _KC_ENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KC_ENT@GOTPAGEOFF]
	ldr	x15, [x9]
	cmp	x10, x11
	ccmp	x12, x0, #4, hs
	ccmp	x13, x0, #4, ne
	ccmp	x14, x0, #4, ne
	ccmp	x15, x0, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	w11, [x1]
	cbz	w11, LBB0_10
; %bb.3:
	ldr	x11, [x20, #16]
	str	x19, [x11, x10, lsl #3]
	ldr	x23, [x20, #8]
	add	x10, x23, #1
	str	x10, [x20, #8]
	ldr	x0, [x21]
	cmp	x0, x19
	b.ne	LBB0_7
; %bb.4:
	cmp	x10, #2
	b.lo	LBB0_12
; %bb.5:
	sub	x8, x23, #1
	str	x8, [x20, #8]
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	ldr	x11, [x9]
	ldr	x9, [x22]
	cmp	x11, x19
	b.eq	LBB0_13
; %bb.8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.9:
	cmp	x9, x19
	b.eq	LBB0_13
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
LBB0_12:
	mov	w0, #0
	str	x23, [x20, #8]
	b	LBB0_11
LBB0_13:
	cbz	x10, LBB0_17
; %bb.14:
	bl	_register_code
	ldr	x0, [x21]
	bl	_unregister_code
Lloh13:
	adrp	x24, _UNICODE_TYPE_DELAY@GOTPAGE
Lloh14:
	ldr	x24, [x24, _UNICODE_TYPE_DELAY@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_wait_ms
	cbz	x23, LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_register_code
	ldr	x0, [x21]
	bl	_unregister_code
	ldr	w0, [x24]
	bl	_wait_ms
	subs	x23, x23, #1
	b.ne	LBB0_15
LBB0_16:
	ldr	x9, [x22]
LBB0_17:
	cmp	x9, x19
	b.ne	LBB0_19
; %bb.18:
	str	wzr, [x20]
	bl	_qk_ucis_cancel
	mov	w0, #0
	b	LBB0_11
LBB0_19:
	bl	_unicode_input_start
Lloh15:
	adrp	x21, _ucis_symbol_table@GOTPAGE
Lloh16:
	ldr	x21, [x21, _ucis_symbol_table@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_23
; %bb.20:
	mov	x22, #0
	mov	x19, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	bl	_is_uni_seq
	cbnz	x0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x19, x19, #1
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	x0, [x8, #24]
	add	x22, x22, #16
	cbnz	x0, LBB0_21
LBB0_23:
	bl	_qk_ucis_symbol_fallback
	bl	_unicode_input_finish
	b	LBB0_25
LBB0_24:
	ldr	x8, [x21]
	ldr	x8, [x8, x22]
	add	x0, x8, #2
	bl	_register_ucis
	bl	_unicode_input_finish
	mov	x0, x19
	bl	_qk_ucis_success
LBB0_25:
	mov	w0, #0
	str	wzr, [x20]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_qk_ucis_state,24,3             ; @qk_ucis_state
	.comm	_UCIS_MAX_SYMBOL_LENGTH,8,3     ; @UCIS_MAX_SYMBOL_LENGTH
	.comm	_KC_BSPC,8,3                    ; @KC_BSPC
	.comm	_KC_ESC,8,3                     ; @KC_ESC
	.comm	_KC_SPC,8,3                     ; @KC_SPC
	.comm	_KC_ENT,8,3                     ; @KC_ENT
	.comm	_UNICODE_TYPE_DELAY,4,2         ; @UNICODE_TYPE_DELAY
	.comm	_ucis_symbol_table,8,3          ; @ucis_symbol_table
.subsections_via_symbols
