	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic2sjis
_mic2sjis:                              ## @mic2sjis
	.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_29
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	%bl, %bl
	je	LBB0_13
LBB0_14:                                ##   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_29
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movb	(%r13), %bl
	movzbl	%bl, %r14d
	movl	%r14d, %edi
	callq	_IS_HIGHBIT_SET
	testl	%eax, %eax
	je	LBB0_12
## %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_9
## %bb.2:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	1(%r13), %al
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	incq	%rcx
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_LC_JISX0208@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%r13), %ecx
	movzbl	2(%r13), %eax
	movl	%ecx, %edx
	shll	$8, %edx
	orl	%eax, %edx
	cmpl	$62881, %edx                    ## imm = 0xF5A1
	jb	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	-84(%rcx), %esi
	addl	$-245, %ecx
	sarl	%ecx
	addl	$240, %ecx
	movl	%ecx, %edx
	movl	%esi, %ecx
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_LC_JISX0212@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	1(%r13), %edx
	movzbl	2(%r13), %ecx
	movl	%edx, %eax
	shll	$8, %eax
	orl	%ecx, %eax
	cmpl	$62880, %eax                    ## imm = 0xF5A0
	jbe	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	267(%rdx), %eax
	shrl	%eax
	addb	$-11, %al
	cmpb	$-32, %cl
	movb	$-96, %bl
	sbbb	$0, %bl
	testb	$1, %dl
	movzbl	%bl, %edx
	movl	$254, %esi
	cmovel	%esi, %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	%al, (%rsi)
	addb	%cl, %dl
	movb	%dl, 1(%rsi)
	jmp	LBB0_20
LBB0_13:                                ##   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_14
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	351(%rcx), %edx
	shrl	%edx
	xorl	%esi, %esi
	cmpb	$-33, %cl
	setae	%sil
	shll	$6, %esi
	addl	%esi, %edx
	addl	$129, %edx
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$-32, %al
	movb	$-96, %bl
	sbbb	$0, %bl
	testb	$1, %cl
	movzbl	%bl, %ecx
	movl	$254, %esi
	cmovel	%esi, %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	%dl, (%rsi)
	addb	%al, %cl
	movb	%cl, 1(%rsi)
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_MULE_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PG_SJIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_report_untranslatable_char
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %r13
	subl	%r12d, %r15d
	testl	%r15d, %r15d
	jg	LBB0_5
	jmp	LBB0_29
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ibmkanji@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzwl	(%rcx), %esi
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%eax, %esi
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movzwl	8(%rcx,%rdx,8), %esi
	incq	%rdx
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	jne	LBB0_24
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PGSJISALTCODE@GOTPCREL(%rip), %rdx
	movb	1(%rdx), %al
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	movb	(%rdx), %al
	movb	%al, 1(%rcx)
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	movzwl	4(%rcx,%rax,8), %eax
	rolw	$8, %ax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movw	%ax, (%rcx)
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rcx
	jmp	LBB0_3
LBB0_29:
	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	_LC_JISX0208,4,2                ## @LC_JISX0208
	.comm	_LC_JISX0212,4,2                ## @LC_JISX0212
	.comm	_ibmkanji,8,3                   ## @ibmkanji
	.comm	_PGSJISALTCODE,4,2              ## @PGSJISALTCODE
	.comm	_PG_SJIS,4,2                    ## @PG_SJIS
	.no_dead_strip	_mic2sjis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic2sjis
_mic2sjis:                              ; @mic2sjis
	.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_24
; %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	x28, _LC_JISX0208@GOTPAGE
Lloh5:
	ldr	x28, [x28, _LC_JISX0208@GOTPAGEOFF]
	mov	w26, #-2
	mov	w27, #65535
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21, #1]
	strb	w8, [x19], #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, w22, sxtw
	sub	w20, w20, w22
	cmp	w20, #0
	b.le	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldrb	w23, [x21]
	mov	x0, x23
	bl	_IS_HIGHBIT_SET
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_pg_encoding_verifymb
	mov	x22, x0
	tbz	w0, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w8, w23
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w8, w23
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21, #1]
	ldrb	w9, [x21, #2]
	mov	x10, x9
	bfi	w10, w8, #8, #8
	add	w11, w8, #351
	cmp	w8, #223
	mov	w12, #193
	mov	w13, #129
	csel	w12, w13, w12, lo
	add	w11, w12, w11, lsr #1
	sub	w12, w8, #84
	sub	w13, w8, #245
	asr	w13, w13, #1
	add	w13, w13, #240
	mov	w14, #62881
	cmp	w10, w14
	csel	w10, w11, w13, lo
	csel	w8, w8, w12, lo
	strb	w10, [x19]
	cmp	w9, #224
	mov	w10, #-97
	cinc	w10, w10, hs
	tst	w8, #0x1
	csel	w8, w26, w10, eq
	add	w8, w8, w9
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w8, [x19, #1]
	add	x19, x19, #2
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w23, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w23, [x19], #1
	add	x21, x21, #1
	sub	w20, w20, #1
	cmp	w20, #0
	b.gt	LBB0_4
	b	LBB0_24
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _LC_JISX0212@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LC_JISX0212@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x21, #1]
	ldrb	w9, [x21, #2]
	mov	x8, x9
	bfi	w8, w10, #8, #8
	mov	w11, #62880
	cmp	w8, w11
	b.ls	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w10, #267
	lsr	w8, w8, #1
	sub	w8, w8, #11
	strb	w8, [x19]
	cmp	w9, #224
	mov	w8, #-97
	cinc	w8, w8, hs
	tst	w10, #0x1
	csel	w8, w26, w8, eq
	add	w8, w8, w9
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
Lloh9:
	adrp	x8, _PG_SJIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PG_SJIS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	bl	_report_untranslatable_char
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x9, _ibmkanji@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ibmkanji@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldrh	w12, [x9]
	cmp	w12, w27
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, #0
	add	x11, x9, #8
LBB0_20:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w12, w8
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	add	x10, x10, #1
	ldrh	w12, [x11], #8
	cmp	w12, w27
	b.ne	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x9, _PGSJISALTCODE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PGSJISALTCODE@GOTPAGEOFF]
	ldr	w8, [x9]
	lsr	w8, w8, #8
	strb	w8, [x19]
	ldr	w8, [x9]
	b	LBB0_10
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, w10, uxtw #3
	ldrh	w8, [x8, #4]
	rev	w8, w8
	lsr	w8, w8, #16
	strh	w8, [x19], #2
	b	LBB0_3
LBB0_24:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_MULE_INTERNAL,4,2           ; @PG_MULE_INTERNAL
	.comm	_LC_JISX0201K,4,2               ; @LC_JISX0201K
	.comm	_LC_JISX0208,4,2                ; @LC_JISX0208
	.comm	_LC_JISX0212,4,2                ; @LC_JISX0212
	.comm	_ibmkanji,8,3                   ; @ibmkanji
	.comm	_PGSJISALTCODE,4,2              ; @PGSJISALTCODE
	.comm	_PG_SJIS,4,2                    ; @PG_SJIS
	.no_dead_strip	_mic2sjis
.subsections_via_symbols
