	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic2euc_jp
_mic2euc_jp:                            ## @mic2euc_jp
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_18
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	%bl, %bl
	je	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%bl, (%rax)
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incq	%r13
	decl	%r15d
	testl	%r15d, %r15d
	jle	LBB0_18
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ebx
	movzbl	%bl, %r14d
	movl	%r14d, %edi
	callq	_IS_HIGHBIT_SET
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_pg_encoding_verifymb
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_LC_JISX0201K@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SS2@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	movzbl	1(%r13), %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_LC_JISX0212@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SS3@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	movzbl	1(%r13), %eax
	movb	%al, 1(%rcx)
	movzbl	2(%r13), %eax
	movb	%al, 2(%rcx)
	addq	$3, %rcx
	jmp	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_LC_JISX0208@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	movzbl	2(%r13), %eax
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%al, 1(%rcx)
	addq	$2, %rcx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %r13
	subl	%r12d, %r15d
	testl	%r15d, %r15d
	jg	LBB0_5
	jmp	LBB0_18
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_EUC_JP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_report_untranslatable_char
	jmp	LBB0_16
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_MULE_INTERNAL,4,2           ## @PG_MULE_INTERNAL
	.comm	_LC_JISX0201K,4,2               ## @LC_JISX0201K
	.comm	_SS2,4,2                        ## @SS2
	.comm	_LC_JISX0212,4,2                ## @LC_JISX0212
	.comm	_SS3,4,2                        ## @SS3
	.comm	_LC_JISX0208,4,2                ## @LC_JISX0208
	.comm	_PG_EUC_JP,4,2                  ## @PG_EUC_JP
	.no_dead_strip	_mic2euc_jp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic2euc_jp
_mic2euc_jp:                            ; @mic2euc_jp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	cmp	w2, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x24, _PG_MULE_INTERNAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PG_MULE_INTERNAL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _LC_JISX0201K@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LC_JISX0201K@GOTPAGEOFF]
Lloh4:
	adrp	x26, _SS2@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SS2@GOTPAGEOFF]
Lloh6:
	adrp	x27, _LC_JISX0212@GOTPAGE
Lloh7:
	ldr	x27, [x27, _LC_JISX0212@GOTPAGEOFF]
Lloh8:
	adrp	x28, _LC_JISX0208@GOTPAGE
Lloh9:
	ldr	x28, [x28, _LC_JISX0208@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w23, [x19], #1
	add	x21, x21, #1
	sub	w20, w20, #1
	cmp	w20, #0
	b.gt	LBB0_5
	b	LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	b	LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w23, [x21]
	mov	x0, x23
	bl	_IS_HIGHBIT_SET
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_pg_encoding_verifymb
	mov	x22, x0
	tbz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cmp	w8, w23
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	strb	w8, [x19]
	ldrb	w8, [x21, #1]
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmp	w8, w23
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _SS3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SS3@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	strb	w8, [x19]
	ldrb	w8, [x21, #1]
	strb	w8, [x19, #1]
	ldrb	w8, [x21, #2]
	strb	w8, [x19, #2]
	add	x19, x19, #3
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, #1]
	strb	w8, [x19]
	ldrb	w8, [x21, #2]
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w8, [x19, #1]
	add	x19, x19, #2
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, w22, sxtw
	sub	w20, w20, w22
	cmp	w20, #0
	b.gt	LBB0_5
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
Lloh13:
	adrp	x8, _PG_EUC_JP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PG_EUC_JP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	bl	_report_untranslatable_char
	b	LBB0_15
LBB0_17:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_MULE_INTERNAL,4,2           ; @PG_MULE_INTERNAL
	.comm	_LC_JISX0201K,4,2               ; @LC_JISX0201K
	.comm	_SS2,4,2                        ; @SS2
	.comm	_LC_JISX0212,4,2                ; @LC_JISX0212
	.comm	_SS3,4,2                        ; @SS3
	.comm	_LC_JISX0208,4,2                ; @LC_JISX0208
	.comm	_PG_EUC_JP,4,2                  ; @PG_EUC_JP
	.no_dead_strip	_mic2euc_jp
.subsections_via_symbols
