	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function euc_jis_20042shift_jis_2004
_euc_jis_20042shift_jis_2004:           ## @euc_jis_20042shift_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, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r13
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %r12
	jmp	LBB0_2
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	incq	%rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %rax
	addq	%rax, %r13
	subl	%edx, %r15d
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %r12
	testl	%r15d, %r15d
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %r14d
	movzbl	%r14b, %ebx
	movl	%ebx, %edi
	callq	_IS_HIGHBIT_SET
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_pg_encoding_verifymb
	movl	%eax, %edx
	testl	%eax, %eax
	js	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SS2@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %edx
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SS3@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_34
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %edx
	jne	LBB0_34
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r13), %ebx
	movzbl	2(%r13), %r14d
	leal	95(%rbx), %eax
	cmpb	$14, %al
	ja	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %eax
	movl	$30877, %ecx                    ## imm = 0x789D
	btq	%rax, %rcx
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	1888(%rbx), %eax
	leal	319(%rbx), %ecx
	shrl	%ecx
	shrl	$3, %eax
	imull	$253, %eax, %eax
	addl	%ecx, %eax
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx)
	incq	%rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testb	$1, %bl
	jne	LBB0_25
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	addb	$-2, %r14b
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	%r14b, %r14b
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax)
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incq	%r13
	decl	%r15d
	testl	%r15d, %r15d
	jg	LBB0_2
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_32
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$2, %edx
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %r12
	jne	LBB0_10
## %bb.35:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%r13), %r12d
	leal	95(%r14), %eax
	cmpb	$61, %al
	ja	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$97, %ebx
	jmp	LBB0_37
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	33(%r14), %eax
	cmpb	$31, %al
	ja	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$225, %ebx
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	shrl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%bl, (%rax)
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_41
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_report_invalid_encoding
LBB0_41:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r14b
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_42
## %bb.48:                              ##   in Loop: Header=BB0_2 Depth=1
	addb	$-2, %r12b
	jmp	LBB0_44
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	95(%r12), %eax
	cmpb	$62, %al
	ja	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_2 Depth=1
	addb	$-97, %r12b
	jmp	LBB0_44
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	32(%r12), %eax
	cmpb	$30, %al
	ja	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_2 Depth=1
	addb	$-96, %r12b
LBB0_44:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r12b, (%rax)
	jmp	LBB0_28
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	18(%rbx), %eax
	cmpb	$16, %al
	ja	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	251(%rbx), %eax
	shrl	%eax
	jmp	LBB0_22
LBB0_47:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_11
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%edx, %r12d
	movl	%r15d, %edx
	callq	_report_invalid_encoding
	movl	%r12d, %edx
	testb	$1, %bl
	je	LBB0_33
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	95(%r14), %eax
	cmpb	$62, %al
	ja	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	addb	$-97, %r14b
	jmp	LBB0_27
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	32(%r14), %eax
	cmpb	$30, %al
	ja	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	addb	$-96, %r14b
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r14b, (%rax)
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PG_EUC_JIS_2004@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%edx, %ebx
	movl	%r15d, %edx
	callq	_report_invalid_encoding
	movl	%ebx, %edx
	jmp	LBB0_32
LBB0_7:
	movq	-48(%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_EUC_JIS_2004,4,2            ## @PG_EUC_JIS_2004
	.comm	_SS2,4,2                        ## @SS2
	.comm	_SS3,4,2                        ## @SS3
	.no_dead_strip	_euc_jis_20042shift_jis_2004
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function euc_jis_20042shift_jis_2004
_euc_jis_20042shift_jis_2004:           ; @euc_jis_20042shift_jis_2004
	.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_38
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x24, _PG_EUC_JIS_2004@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PG_EUC_JIS_2004@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SS2@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SS2@GOTPAGEOFF]
	mov	w27, #30877
Lloh4:
	adrp	x28, _SS3@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SS3@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, #1]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w8, [x19], #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, w22, sxtw
	sub	w20, w20, w22
	cmp	w20, #0
	b.le	LBB0_38
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w23, [x21]
	mov	x0, x23
	bl	_IS_HIGHBIT_SET
	cbz	w0, LBB0_12
; %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
	tbnz	w0, #31, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cmp	w8, w23
	ccmp	w22, #2, #0, eq
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	cmp	w8, w23
	ccmp	w22, #3, #0, eq
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, #2
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w26, [x21, #1]
	add	w8, w23, #95
	and	w8, w8, #0xff
	cmp	w8, #61
	b.hi	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #97
	b	LBB0_24
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w23, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_14:                                ;   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_38
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w26, [x21, #1]
	ldrb	w23, [x21, #2]
	sub	w8, w26, #161
	cmp	w8, #14
	b.hi	LBB0_31
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, w27
	b.eq	LBB0_31
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w26, #1888
	add	w9, w26, #319
	lsr	w8, w8, #3
	mov	w10, #253
	mul	w8, w8, w10
	add	w8, w8, w9, lsr #1
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w8, [x19], #1
	tbnz	w26, #0, LBB0_34
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w23, #2
	b	LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #33
	and	w8, w8, #0xff
	cmp	w8, #31
	b.hi	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #225
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w8, w8, #1
	strb	w8, [x19], #1
	tbnz	w23, #0, LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w26, #2
	b	LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	tbz	w23, #0, LBB0_25
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w26, #95
	and	w8, w8, #0xff
	cmp	w8, #62
	b.hi	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w26, #97
	b	LBB0_3
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w26, #32
	and	w8, w8, #0xff
	cmp	w8, #30
	b.hi	LBB0_16
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w26, #96
	b	LBB0_3
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w26, #18
	and	w8, w8, #0xff
	cmp	w8, #16
	b.hi	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w26, #251
	lsr	w8, w8, #1
	b	LBB0_20
LBB0_33:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_report_invalid_encoding
	tbz	w26, #0, LBB0_21
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #95
	and	w8, w8, #0xff
	cmp	w8, #62
	b.hi	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w23, #97
	b	LBB0_3
LBB0_36:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, #32
	and	w8, w8, #0xff
	cmp	w8, #30
	b.hi	LBB0_16
; %bb.37:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w23, #96
	b	LBB0_3
LBB0_38:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_EUC_JIS_2004,4,2            ; @PG_EUC_JIS_2004
	.comm	_SS2,4,2                        ; @SS2
	.comm	_SS3,4,2                        ; @SS3
	.no_dead_strip	_euc_jis_20042shift_jis_2004
.subsections_via_symbols
