	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hangul_decomp
_hangul_decomp:                         ## @hangul_decomp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	%rdx, %r9
	movq	(%rdi), %rdi
	movq	_s_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rdi
	jl	LBB0_7
## %bb.1:
	movq	_s_count@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rdx, %rsi
	cmpq	%rsi, %rdi
	jge	LBB0_7
## %bb.2:
	subl	%edx, %edi
	movq	_t_count@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%r10d
	cmpl	$1, %edx
	movl	$3, %esi
	sbbq	$0, %rsi
	cmpq	%rsi, (%rcx)
	jae	LBB0_4
## %bb.3:
	movq	_WIND_ERR_OVERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	movl	%edx, %r8d
	movq	_t_base@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_n_count@GOTPCREL(%rip), %rbx
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	(%rbx)
	movl	%eax, %edi
	movl	%edx, %eax
	movq	_v_base@GOTPCREL(%rip), %rbx
	xorl	%edx, %edx
	divl	%r10d
                                        ## kill: def $eax killed $eax def $rax
	addl	(%rbx), %eax
	movq	_l_base@GOTPCREL(%rip), %rdx
	addl	(%rdx), %edi
	addl	%r8d, %r11d
	movq	%rdi, (%r9)
	movq	%rax, 8(%r9)
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.5:
	movl	%r11d, %eax
	movq	%rax, 16(%r9)
LBB0_6:
	movq	%rsi, (%rcx)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_base,8,3                     ## @s_base
	.comm	_s_count,8,3                    ## @s_count
	.comm	_l_base,4,2                     ## @l_base
	.comm	_n_count,4,2                    ## @n_count
	.comm	_v_base,4,2                     ## @v_base
	.comm	_t_count,4,2                    ## @t_count
	.comm	_t_base,4,2                     ## @t_base
	.comm	_WIND_ERR_OVERRUN,4,2           ## @WIND_ERR_OVERRUN
	.no_dead_strip	_hangul_decomp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hangul_decomp
_hangul_decomp:                         ; @hangul_decomp
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _s_base@GOTPAGE
Lloh1:
	ldr	x9, [x9, _s_base@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x10, _s_count@GOTPAGE
Lloh4:
	ldr	x10, [x10, _s_count@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, x9
	cmp	x8, x10
	b.ge	LBB0_4
; %bb.2:
	sub	w10, w8, w9
Lloh6:
	adrp	x8, _t_count@GOTPAGE
Lloh7:
	ldr	x8, [x8, _t_count@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x8]
	udiv	w8, w10, w11
	msub	w8, w8, w11, w10
	cmp	w8, #0
	mov	w9, #2
	cinc	x9, x9, ne
	ldr	x12, [x3]
	cmp	x12, x9
	b.hs	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _WIND_ERR_OVERRUN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIND_ERR_OVERRUN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_4:
	mov	w0, #0
	ret
LBB0_5:
Lloh12:
	adrp	x12, _t_base@GOTPAGE
Lloh13:
	ldr	x12, [x12, _t_base@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
Lloh15:
	adrp	x13, _v_base@GOTPAGE
Lloh16:
	ldr	x13, [x13, _v_base@GOTPAGEOFF]
Lloh17:
	adrp	x14, _n_count@GOTPAGE
Lloh18:
	ldr	x14, [x14, _n_count@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
Lloh20:
	ldr	w14, [x14]
	udiv	w15, w10, w14
	msub	w10, w15, w14, w10
	udiv	w10, w10, w11
	add	w10, w10, w13
Lloh21:
	adrp	x11, _l_base@GOTPAGE
Lloh22:
	ldr	x11, [x11, _l_base@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	add	w11, w15, w11
	stp	x11, x10, [x2]
	cbz	w8, LBB0_7
; %bb.6:
	add	w8, w8, w12
	str	x8, [x2, #16]
LBB0_7:
	str	x9, [x3]
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_s_base,8,3                     ; @s_base
	.comm	_s_count,8,3                    ; @s_count
	.comm	_l_base,4,2                     ; @l_base
	.comm	_n_count,4,2                    ; @n_count
	.comm	_v_base,4,2                     ; @v_base
	.comm	_t_count,4,2                    ; @t_count
	.comm	_t_base,4,2                     ; @t_base
	.comm	_WIND_ERR_OVERRUN,4,2           ; @WIND_ERR_OVERRUN
	.no_dead_strip	_hangul_decomp
.subsections_via_symbols
