	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hangul_composition
_hangul_composition:                    ## @hangul_composition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$2, %rsi
	jb	LBB0_16
## %bb.2:
	movq	(%rdi), %rsi
	movq	_l_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rsi
	jl	LBB0_6
## %bb.3:
	movq	_l_count@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_6
## %bb.4:
	movq	8(%rdi), %rdx
	movq	_v_base@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	cmpq	%r8, %rdx
	jl	LBB0_16
## %bb.14:
	movq	_v_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	(%r8,%rcx), %rdi
	cmpq	%rdi, %rdx
	jge	LBB0_16
## %bb.15:
	subl	%eax, %esi
	subl	%r8d, %edx
	imull	%esi, %ecx
	addl	%edx, %ecx
	movq	_t_count@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movq	_s_base@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	jmp	LBB0_17
LBB0_6:
	movq	_s_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	jl	LBB0_16
## %bb.8:
	movq	_s_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rcx, %rax
	cmpq	%rax, %rsi
	jge	LBB0_16
## %bb.9:
	movl	%esi, %eax
	subl	%ecx, %eax
	movq	_t_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	divl	%r8d
	testl	%edx, %edx
	jne	LBB0_17
## %bb.10:
	movq	8(%rdi), %rax
	movq	_t_base@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	jl	LBB0_17
## %bb.11:
	addq	%rdx, %r8
	cmpq	%r8, %rax
	jge	LBB0_17
## %bb.12:
	subl	%edx, %eax
	addq	%rsi, %rax
	movq	%rax, %rcx
	jmp	LBB0_17
LBB0_16:
	xorl	%ecx, %ecx
LBB0_17:
	movq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_l_base,8,3                     ## @l_base
	.comm	_l_count,8,3                    ## @l_count
	.comm	_v_base,8,3                     ## @v_base
	.comm	_v_count,4,2                    ## @v_count
	.comm	_t_count,4,2                    ## @t_count
	.comm	_s_base,8,3                     ## @s_base
	.comm	_s_count,8,3                    ## @s_count
	.comm	_t_base,8,3                     ## @t_base
	.no_dead_strip	_hangul_composition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hangul_composition
_hangul_composition:                    ; @hangul_composition
	.cfi_startproc
; %bb.0:
	cmp	x1, #2
	b.lo	LBB0_10
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _l_base@GOTPAGE
Lloh1:
	ldr	x9, [x9, _l_base@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.2:
Lloh3:
	adrp	x10, _l_count@GOTPAGE
Lloh4:
	ldr	x10, [x10, _l_count@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, x9
	cmp	x8, x10
	b.ge	LBB0_6
; %bb.3:
	ldr	x10, [x0, #8]
Lloh6:
	adrp	x11, _v_base@GOTPAGE
Lloh7:
	ldr	x11, [x11, _v_base@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.lt	LBB0_10
; %bb.4:
Lloh9:
	adrp	x12, _v_count@GOTPAGE
Lloh10:
	ldr	x12, [x12, _v_count@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	add	x13, x11, x12
	cmp	x10, x13
	b.ge	LBB0_10
; %bb.5:
	sub	w8, w8, w9
	sub	w9, w10, w11
	madd	w8, w12, w8, w9
Lloh12:
	adrp	x9, _t_count@GOTPAGE
Lloh13:
	ldr	x9, [x9, _t_count@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh15:
	adrp	x9, _s_base@GOTPAGE
Lloh16:
	ldr	x9, [x9, _s_base@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x9, x8
	ret
LBB0_6:
Lloh18:
	adrp	x9, _s_base@GOTPAGE
Lloh19:
	ldr	x9, [x9, _s_base@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.7:
Lloh21:
	adrp	x10, _s_count@GOTPAGE
Lloh22:
	ldr	x10, [x10, _s_count@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	add	x10, x10, x9
	cmp	x8, x10
	b.ge	LBB0_10
; %bb.8:
	sub	w9, w8, w9
Lloh24:
	adrp	x10, _t_count@GOTPAGE
Lloh25:
	ldr	x10, [x10, _t_count@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	udiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cbnz	w9, LBB0_10
; %bb.9:
	ldr	x9, [x0, #8]
Lloh27:
	adrp	x11, _t_base@GOTPAGE
Lloh28:
	ldr	x11, [x11, _t_base@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	add	x10, x11, x10
	cmp	x9, x11
	ccmp	x9, x10, #0, ge
	b.lt	LBB0_11
LBB0_10:
	mov	x0, #0
	ret
LBB0_11:
	sub	w9, w9, w11
	add	x0, x9, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_l_base,8,3                     ; @l_base
	.comm	_l_count,8,3                    ; @l_count
	.comm	_v_base,8,3                     ; @v_base
	.comm	_v_count,4,2                    ; @v_count
	.comm	_t_count,4,2                    ; @t_count
	.comm	_s_base,8,3                     ; @s_base
	.comm	_s_count,8,3                    ; @s_count
	.comm	_t_base,8,3                     ; @t_base
	.no_dead_strip	_hangul_composition
.subsections_via_symbols
