	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shift_jis_20042euc_jis_2004
_shift_jis_20042euc_jis_2004:           ## @shift_jis_20042euc_jis_2004
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %r13d
	movq	%rdi, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	%r14b, %r14b
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax)
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	incq	%r15
	decl	%r13d
	testl	%r13d, %r13d
	jg	LBB0_2
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %r14d
	movzbl	%r14b, %r12d
	movl	%r12d, %edi
	callq	_IS_HIGHBIT_SET
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_pg_encoding_verifymb
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %r13d
	jge	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	95(%r14), %eax
	cmpb	$62, %al
	ja	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SS2@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	movb	%r14b, 1(%rcx)
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %ebx
	jne	LBB0_46
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r15), %edi
	leal	127(%r14), %eax
	cmpb	$30, %al
	ja	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_get_ten
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r12), %eax
	addl	$-256, %eax
	subl	-44(%rbp), %eax
	jmp	LBB0_44
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	andb	$-16, %al
	cmpb	$-32, %al
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_get_ten
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r12), %eax
	addl	$-384, %eax                     ## imm = 0xFE80
	subl	-44(%rbp), %eax
	jmp	LBB0_44
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	andb	$-4, %al
	cmpb	$-16, %al
	jne	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_get_ten
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-14, %r14b
	je	LBB0_31
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-15, %r14b
	je	LBB0_41
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-16, %r14b
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)
	movl	$1, %eax
	movl	$8, %ecx
	cmovel	%ecx, %eax
	jmp	LBB0_42
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	12(%r14), %eax
	cmpb	$8, %al
	ja	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %rsi
	callq	_get_ten
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx
	cmpb	$-12, %r14b
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$15, %eax
	cmpl	$1, %ecx
	jne	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_43
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
	movl	$1, %r14d
	movl	$1, %eax
	jmp	LBB0_44
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_SHIFT_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_report_invalid_encoding
	cmpb	$-14, %r14b
	jne	LBB0_27
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)
	movl	$5, %eax
	movl	$12, %ecx
	cmovel	%ecx, %eax
	jmp	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, -44(%rbp)
	movl	$0, %eax
	adcl	$3, %eax
	jmp	LBB0_42
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, -44(%rbp)
	movl	$0, %eax
	adcl	$13, %eax
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r14d
LBB0_43:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SS3@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, (%rdx)
	incq	%rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
LBB0_44:                                ##   in Loop: Header=BB0_2 Depth=1
	addb	$-96, %al
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	addb	$-96, %r14b
	movb	%r14b, 1(%rcx)
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_46:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r15
	subl	%ebx, %r13d
	testl	%r13d, %r13d
	jg	LBB0_2
	jmp	LBB0_7
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %r12d
	subl	%ecx, %r12d
	addl	$-410, %r12d                    ## imm = 0xFE66
	movl	%r12d, %eax
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_43
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_SHIFT_JIS_2004,4,2          ## @PG_SHIFT_JIS_2004
	.comm	_SS2,4,2                        ## @SS2
	.comm	_SS3,4,2                        ## @SS3
	.no_dead_strip	_shift_jis_20042euc_jis_2004
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shift_jis_20042euc_jis_2004
_shift_jis_20042euc_jis_2004:           ; @shift_jis_20042euc_jis_2004
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_41
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x25, _PG_SHIFT_JIS_2004@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PG_SHIFT_JIS_2004@GOTPAGEOFF]
	mov	w27, #13
Lloh2:
	adrp	x28, _SS3@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SS3@GOTPAGEOFF]
Lloh4:
	adrp	x26, _SS2@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SS2@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w24, [x19], #1
	add	x21, x21, #1
	sub	w20, w20, #1
	cmp	w20, #0
	b.gt	LBB0_5
	b	LBB0_41
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	b	LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w24, [x21]
	mov	x0, x24
	bl	_IS_HIGHBIT_SET
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_pg_encoding_verifymb
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, w22
	b.ge	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w24, #95
	and	w8, w8, #0xff
	cmp	w8, #62
	ccmp	w22, #1, #0, ls
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, #2
	b.ne	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w0, [x21, #1]
	add	w8, w24, #127
	and	w8, w8, #0xff
	cmp	w8, #30
	b.hi	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w24, #1
	sub	w24, w8, #256
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	strb	w8, [x19]
	strb	w24, [x19, #1]
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w24, #0xf0
	cmp	w8, #224
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w24, #1
	sub	w24, w8, #384
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #12
	bl	_get_ten
	mov	x23, x0
	tbz	w0, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	sub	w8, w24, w8
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w8, #96
	strb	w8, [x19]
	sub	w8, w23, #96
	strb	w8, [x19, #1]
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #2
LBB0_21:                                ;   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_41
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w24, #0xfc
	cmp	w8, #240
	b.ne	LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #12
	bl	_get_ten
	mov	x23, x0
	tbnz	w0, #31, LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #242
	b.eq	LBB0_36
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #241
	b.eq	LBB0_37
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #240
	b.ne	LBB0_38
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #0
	mov	w8, #8
	csinc	w8, w8, wzr, eq
	b	LBB0_40
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w24, #12
	and	w8, w8, #0xff
	cmp	w8, #8
	b.hi	LBB0_34
; %bb.29:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #12
	bl	_get_ten
	mov	x23, x0
	tbz	w0, #31, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w24, #244
	b.ne	LBB0_39
; %bb.32:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	b.ne	LBB0_39
; %bb.33:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #15
	b	LBB0_40
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	mov	w23, #1
	mov	w8, #1
	b	LBB0_19
LBB0_35:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	cmp	w24, #242
	b.ne	LBB0_25
LBB0_36:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #0
	mov	w8, #5
	mov	w9, #12
	csel	w8, w9, w8, eq
	b	LBB0_40
LBB0_37:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #0
	mov	w8, #3
	cinc	w8, w8, eq
	b	LBB0_40
LBB0_38:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cinc	w8, w27, eq
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w9, w24, #1
	sub	w8, w9, w8
	sub	w8, w8, #410
LBB0_40:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x28]
	strb	w9, [x19], #1
	b	LBB0_19
LBB0_41:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_SHIFT_JIS_2004,4,2          ; @PG_SHIFT_JIS_2004
	.comm	_SS2,4,2                        ; @SS2
	.comm	_SS3,4,2                        ; @SS3
	.no_dead_strip	_shift_jis_20042euc_jis_2004
.subsections_via_symbols
