	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfilter_sjis_emoji_kddi2unicode ## -- Begin function mbfilter_sjis_emoji_kddi2unicode
	.p2align	4, 0x90
_mbfilter_sjis_emoji_kddi2unicode:      ## @mbfilter_sjis_emoji_kddi2unicode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
                                        ## kill: def $edi killed $edi def $rdi
	movl	$0, (%rsi)
	movq	_mb_tbl_code2uni_kddi1_min@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jg	LBB0_5
## %bb.1:
	movq	_mb_tbl_code2uni_kddi1_max@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jl	LBB0_5
## %bb.2:
	subl	%eax, %edi
	cmpl	$9, %edi
	je	LBB0_9
## %bb.3:
	cmpl	$8, %edi
	jne	LBB0_10
## %bb.4:
	movq	_nflags_s@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_NFLAGS
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	16(%rax), %rax
	jmp	LBB0_19
LBB0_5:
	movq	_mb_tbl_code2uni_kddi2_min@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jg	LBB0_26
## %bb.6:
	movq	_mb_tbl_code2uni_kddi2_max@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jl	LBB0_26
## %bb.7:
	subl	%eax, %edi
	cmpl	$100, %edi
	jne	LBB0_12
## %bb.8:
	movq	_nflags_s@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	48(%rax), %rax
	movl	(%rax), %edi
	callq	_NFLAGS
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	48(%rax), %rax
	jmp	LBB0_19
LBB0_9:
	movq	_nflags_s@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	64(%rax), %rax
	movl	(%rax), %edi
	callq	_NFLAGS
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	64(%rax), %rax
	jmp	LBB0_19
LBB0_10:
	leal	-141(%rdi), %eax
	cmpl	$5, %eax
	ja	LBB0_14
## %bb.11:
	movl	%eax, %eax
	leaq	l___const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi(%rip), %rcx
	movslq	(%rcx,%rax,4), %r14
	movq	_nflags_s@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %edi
	callq	_NFLAGS
	movl	%eax, (%rbx)
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rax
	jmp	LBB0_19
LBB0_12:
	leal	-186(%rdi), %eax
	cmpl	$8, %eax
	ja	LBB0_16
## %bb.13:
	addl	$-137, %edi
	movl	%edi, (%rbx)
	movl	$8419, %edi                     ## imm = 0x20E3
	jmp	LBB0_26
LBB0_14:
	cmpl	$260, %edi                      ## imm = 0x104
	jne	LBB0_20
## %bb.15:
	movl	$35, (%rbx)
	movl	$8419, %edi                     ## imm = 0x20E3
	jmp	LBB0_26
LBB0_16:
	cmpl	$324, %edi                      ## imm = 0x144
	je	LBB0_23
## %bb.17:
	cmpl	$267, %edi                      ## imm = 0x10B
	jne	LBB0_24
## %bb.18:
	movq	_nflags_s@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	72(%rax), %rax
	movl	(%rax), %edi
	callq	_NFLAGS
	movl	%eax, (%rbx)
	movq	(%r14), %rax
	movq	72(%rax), %rax
LBB0_19:
	movl	4(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NFLAGS                         ## TAILCALL
LBB0_20:
	movq	_mb_tbl_code2uni_kddi1@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_23:
	movl	$48, (%rbx)
	movl	$8419, %edi                     ## imm = 0x20E3
	jmp	LBB0_26
LBB0_24:
	movq	_mb_tbl_code2uni_kddi2@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	(%rax,%rcx,4), %edi
	cmpl	$61441, %edi                    ## imm = 0xF001
	jl	LBB0_25
## %bb.22:
	addl	$65536, %edi                    ## imm = 0x10000
	jmp	LBB0_26
LBB0_25:
	leal	983040(%rdi), %eax
	cmpl	$57345, %edi                    ## imm = 0xE001
	cmovll	%edi, %eax
	movl	%eax, %edi
LBB0_26:
	movl	%edi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi
l___const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi:
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	5                               ## 0x5
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	7                               ## 0x7

	.comm	_mb_tbl_code2uni_kddi1_min,4,2  ## @mb_tbl_code2uni_kddi1_min
	.comm	_mb_tbl_code2uni_kddi1_max,4,2  ## @mb_tbl_code2uni_kddi1_max
	.comm	_nflags_s,8,3                   ## @nflags_s
	.comm	_mb_tbl_code2uni_kddi1,8,3      ## @mb_tbl_code2uni_kddi1
	.comm	_mb_tbl_code2uni_kddi2_min,4,2  ## @mb_tbl_code2uni_kddi2_min
	.comm	_mb_tbl_code2uni_kddi2_max,4,2  ## @mb_tbl_code2uni_kddi2_max
	.comm	_mb_tbl_code2uni_kddi2,8,3      ## @mb_tbl_code2uni_kddi2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfilter_sjis_emoji_kddi2unicode ; -- Begin function mbfilter_sjis_emoji_kddi2unicode
	.p2align	2
_mbfilter_sjis_emoji_kddi2unicode:      ; @mbfilter_sjis_emoji_kddi2unicode
	.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, x1
	str	wzr, [x1]
Lloh0:
	adrp	x8, _mb_tbl_code2uni_kddi1_min@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mb_tbl_code2uni_kddi1_min@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _mb_tbl_code2uni_kddi1_max@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mb_tbl_code2uni_kddi1_max@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, le
	b.ge	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _mb_tbl_code2uni_kddi2_min@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mb_tbl_code2uni_kddi2_min@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _mb_tbl_code2uni_kddi2_max@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mb_tbl_code2uni_kddi2_max@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, le
	b.lt	LBB0_21
; %bb.2:
	sub	w8, w0, w8
	cmp	w8, #100
	b.ne	LBB0_10
; %bb.3:
Lloh12:
	adrp	x20, _nflags_s@GOTPAGE
Lloh13:
	ldr	x20, [x20, _nflags_s@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #48]
	ldr	w0, [x8]
	bl	_NFLAGS
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, #48]
	b	LBB0_17
LBB0_4:
	sub	w8, w0, w8
	cmp	w8, #9
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.6:
Lloh14:
	adrp	x20, _nflags_s@GOTPAGE
Lloh15:
	ldr	x20, [x20, _nflags_s@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	bl	_NFLAGS
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	b	LBB0_17
LBB0_7:
Lloh16:
	adrp	x20, _nflags_s@GOTPAGE
Lloh17:
	ldr	x20, [x20, _nflags_s@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	ldr	w0, [x8]
	bl	_NFLAGS
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, #64]
	b	LBB0_17
LBB0_8:
	sub	w9, w8, #141
	cmp	w9, #5
	b.hi	LBB0_12
; %bb.9:
Lloh18:
	adrp	x8, l___const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi@PAGE
Lloh19:
	add	x8, x8, l___const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi@PAGEOFF
	ldrsw	x8, [x8, w9, uxtw #2]
Lloh20:
	adrp	x20, _nflags_s@GOTPAGE
Lloh21:
	ldr	x20, [x20, _nflags_s@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x21, x8, #3
	ldr	x8, [x9, x21]
	ldr	w0, [x8]
	bl	_NFLAGS
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, x21]
	b	LBB0_17
LBB0_10:
	sub	w9, w8, #186
	cmp	w9, #8
	b.hi	LBB0_14
; %bb.11:
	sub	w8, w8, #137
	b	LBB0_20
LBB0_12:
	cmp	w8, #260
	b.ne	LBB0_18
; %bb.13:
	mov	w8, #35
	b	LBB0_20
LBB0_14:
	cmp	w8, #324
	b.eq	LBB0_19
; %bb.15:
	cmp	w8, #267
	b.ne	LBB0_22
; %bb.16:
Lloh22:
	adrp	x20, _nflags_s@GOTPAGE
Lloh23:
	ldr	x20, [x20, _nflags_s@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #72]
	ldr	w0, [x8]
	bl	_NFLAGS
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8, #72]
LBB0_17:
	ldr	w0, [x8, #4]
	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	_NFLAGS
LBB0_18:
Lloh24:
	adrp	x9, _mb_tbl_code2uni_kddi1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _mb_tbl_code2uni_kddi1@GOTPAGEOFF]
	b	LBB0_23
LBB0_19:
	mov	w8, #48
LBB0_20:
	str	w8, [x19]
	mov	w0, #8419
LBB0_21:
	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_22:
Lloh26:
	adrp	x9, _mb_tbl_code2uni_kddi2@GOTPAGE
Lloh27:
	ldr	x9, [x9, _mb_tbl_code2uni_kddi2@GOTPAGEOFF]
LBB0_23:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, sxtw #2]
	cmp	w8, #15, lsl #12                ; =61440
	b.le	LBB0_25
; %bb.24:
	add	w0, w8, #16, lsl #12            ; =65536
	b	LBB0_21
LBB0_25:
	add	w9, w8, #240, lsl #12           ; =983040
	cmp	w8, #14, lsl #12                ; =57344
	csel	w0, w9, w8, gt
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi
l___const.mbfilter_sjis_emoji_kddi2unicode.nflags_order_kddi:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	5                               ; 0x5
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	7                               ; 0x7

	.comm	_mb_tbl_code2uni_kddi1_min,4,2  ; @mb_tbl_code2uni_kddi1_min
	.comm	_mb_tbl_code2uni_kddi1_max,4,2  ; @mb_tbl_code2uni_kddi1_max
	.comm	_nflags_s,8,3                   ; @nflags_s
	.comm	_mb_tbl_code2uni_kddi1,8,3      ; @mb_tbl_code2uni_kddi1
	.comm	_mb_tbl_code2uni_kddi2_min,4,2  ; @mb_tbl_code2uni_kddi2_min
	.comm	_mb_tbl_code2uni_kddi2_max,4,2  ; @mb_tbl_code2uni_kddi2_max
	.comm	_mb_tbl_code2uni_kddi2,8,3      ; @mb_tbl_code2uni_kddi2
.subsections_via_symbols
