	.file	"extr_iso2022_jp1.h_iso2022_jp1_wctomb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iso2022_jp1_wctomb, @function
iso2022_jp1_wctomb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	mov	ecx, 1
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 6[rsp]
	mov	rsi, r14
	call	ascii_wctomb@PLT
	cmp	DWORD PTR RET_ILUNI[rip], eax
	je	.L2
	cmp	eax, 1
	jne	.L60
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	js	.L2
.L63:
	cmp	QWORD PTR STATE_ASCII[rip], r15
	je	.L9
	cmp	r13d, 3
	jg	.L61
.L30:
	mov	eax, DWORD PTR RET_TOOSMALL[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L62
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, 1
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	call	jisx0201_wctomb@PLT
	cmp	DWORD PTR RET_ILUNI[rip], eax
	je	.L7
	cmp	eax, 1
	je	.L8
	xor	eax, eax
	call	abort@PLT
.L8:
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	js	.L7
	cmp	QWORD PTR STATE_JISX0201ROMAN[rip], r15
	je	.L9
	cmp	r13d, 3
	jle	.L30
	movzx	eax, BYTE PTR ESC[rip]
	mov	edi, 18984
	add	rbp, 3
	mov	WORD PTR -2[rbp], di
	mov	BYTE PTR -3[rbp], al
	mov	r15, QWORD PTR STATE_JISX0201ROMAN[rip]
	mov	eax, 4
	mov	BYTE PTR 0[rbp], dl
	mov	QWORD PTR [rbx], r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L60:
	xor	eax, eax
	call	abort@PLT
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	jns	.L63
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 2
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	call	jisx0208_wctomb@PLT
	cmp	DWORD PTR RET_ILUNI[rip], eax
	je	.L11
	cmp	eax, 2
	jne	.L64
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	js	.L11
.L65:
	movzx	ecx, BYTE PTR 7[rsp]
	test	cl, cl
	js	.L11
	cmp	QWORD PTR STATE_JISX0208[rip], r15
	je	.L19
	cmp	r13d, 4
	jle	.L30
	movzx	eax, BYTE PTR ESC[rip]
	mov	esi, 16932
	add	rbp, 3
	mov	WORD PTR -2[rbp], si
	mov	BYTE PTR -3[rbp], al
	mov	eax, 5
	mov	r15, QWORD PTR STATE_JISX0208[rip]
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, 2
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	call	jisx0212_wctomb@PLT
	cmp	DWORD PTR RET_ILUNI[rip], eax
	je	.L1
	cmp	eax, 2
	je	.L16
	xor	eax, eax
	call	abort@PLT
.L16:
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	js	.L18
	movzx	ecx, BYTE PTR 7[rsp]
	test	cl, cl
	js	.L18
	cmp	QWORD PTR STATE_JISX0212[rip], r15
	je	.L19
	cmp	r13d, 5
	jle	.L30
	movzx	eax, BYTE PTR ESC[rip]
	mov	BYTE PTR 3[rbp], 68
	add	rbp, 4
	mov	BYTE PTR -4[rbp], al
	mov	eax, 10276
	mov	WORD PTR -3[rbp], ax
	mov	r15, QWORD PTR STATE_JISX0212[rip]
	mov	eax, 6
.L31:
	mov	BYTE PTR 0[rbp], dl
	mov	BYTE PTR 1[rbp], cl
	mov	QWORD PTR [rbx], r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 1
	test	r13d, r13d
	jle	.L30
	mov	BYTE PTR 0[rbp], dl
	mov	QWORD PTR [rbx], r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L61:
	movzx	eax, BYTE PTR ESC[rip]
	mov	r8d, 16936
	add	rbp, 3
	mov	WORD PTR -2[rbp], r8w
	mov	BYTE PTR -3[rbp], al
	mov	r15, QWORD PTR STATE_ASCII[rip]
	mov	eax, 4
	mov	BYTE PTR 0[rbp], dl
	mov	QWORD PTR [rbx], r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L64:
	xor	eax, eax
	call	abort@PLT
	movzx	edx, BYTE PTR 6[rsp]
	test	dl, dl
	jns	.L65
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR RET_ILUNI[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, 2
	cmp	r13d, 1
	jg	.L31
	jmp	.L30
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iso2022_jp1_wctomb, .-iso2022_jp1_wctomb
	.comm	STATE_JISX0212,8,8
	.comm	STATE_JISX0208,8,8
	.comm	STATE_JISX0201ROMAN,8,8
	.comm	STATE_ASCII,8,8
	.comm	RET_TOOSMALL,4,4
	.comm	RET_ILUNI,4,4
	.comm	ESC,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_iso2022_jp1.h_iso2022_jp1_wctomb.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iso2022_jp1_wctomb, %function
iso2022_jp1_wctomb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L67
	sub	sp, sp, #12
	mov	r5, r1
	mov	r7, r3
	mov	r1, sp
	mov	r3, #1
	mov	r4, r0
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	mov	r6, r2
	ldr	r9, [r0]
	bl	ascii_wctomb
	ldr	r8, .L67+4
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L2
	cmp	r0, #1
	bne	.L61
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L2
.L64:
	ldr	r2, .L67+8
	ldr	r1, [r2]
	cmp	r1, r9
	beq	.L9
	cmp	r7, #3
	bgt	.L62
.L30:
	ldr	r3, .L67+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L63
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r3, #1
	mov	r2, r6
	mov	r1, sp
	mov	r0, r4
	bl	jisx0201_wctomb
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L7
	cmp	r0, #1
	beq	.L8
	bl	abort
.L8:
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L7
	ldr	r2, .L67+16
	ldr	r1, [r2]
	cmp	r1, r9
	beq	.L9
	cmp	r7, #3
	ble	.L30
	mov	lr, #40
	mov	ip, #74
.L55:
	ldr	r1, .L67+20
	strb	lr, [r5, #1]
	ldrb	r1, [r1]	@ zero_extendqisi2
	strb	ip, [r5, #2]
	strb	r1, [r5]
	ldr	r9, [r2]
	add	r5, r5, #3
	strb	r3, [r5]
	mov	r0, #4
	str	r9, [r4]
	b	.L1
.L61:
	bl	abort
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	beq	.L64
	b	.L2
.L7:
	mov	r3, #2
	mov	r2, r6
	mov	r1, sp
	mov	r0, r4
	bl	jisx0208_wctomb
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L11
	cmp	r0, #2
	bne	.L65
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L11
.L66:
	ldrb	r2, [sp, #1]	@ zero_extendqisi2
	tst	r2, #128
	bne	.L11
	ldr	r1, .L67+24
	ldr	r0, [r1]
	cmp	r0, r9
	beq	.L19
	cmp	r7, #4
	ble	.L30
	mov	r6, #36
	mov	lr, #66
	ldr	ip, .L67+20
	strb	r6, [r5, #1]
	ldrb	ip, [ip]	@ zero_extendqisi2
	strb	lr, [r5, #2]
	strb	ip, [r5]
	mov	r0, #5
	ldr	r9, [r1]
	add	r5, r5, #3
	b	.L31
.L11:
	mov	r3, #2
	mov	r2, r6
	mov	r1, sp
	mov	r0, r4
	bl	jisx0212_wctomb
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L1
	cmp	r0, #2
	beq	.L16
	bl	abort
.L16:
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	bne	.L18
	ldrb	r2, [sp, #1]	@ zero_extendqisi2
	tst	r2, #128
	bne	.L18
	ldr	r1, .L67+28
	ldr	r0, [r1]
	cmp	r0, r9
	beq	.L19
	cmp	r7, #5
	ble	.L30
	mov	r7, #36
	mov	r6, #40
	mov	ip, #68
	mov	r0, #6
	ldr	lr, .L67+20
	strb	r7, [r5, #1]
	ldrb	lr, [lr]	@ zero_extendqisi2
	strb	r6, [r5, #2]
	strb	lr, [r5]
	strb	ip, [r5, #3]
	ldr	r9, [r1]
	add	r5, r5, #4
.L31:
	strb	r3, [r5]
	strb	r2, [r5, #1]
	str	r9, [r4]
	b	.L1
.L9:
	cmp	r7, #0
	movgt	r0, #1
	ble	.L30
	strb	r3, [r5]
	str	r9, [r4]
	b	.L1
.L62:
	mov	lr, #40
	mov	ip, #66
	b	.L55
.L65:
	bl	abort
	ldrb	r3, [sp]	@ zero_extendqisi2
	tst	r3, #128
	beq	.L66
	b	.L11
.L18:
	ldr	r0, [r8]
	b	.L1
.L19:
	cmp	r7, #1
	movgt	r0, #2
	bgt	.L31
	b	.L30
.L63:
	bl	__stack_chk_fail
.L68:
	.align	2
.L67:
	.word	.LC0
	.word	RET_ILUNI
	.word	STATE_ASCII
	.word	RET_TOOSMALL
	.word	STATE_JISX0201ROMAN
	.word	ESC
	.word	STATE_JISX0208
	.word	STATE_JISX0212
	.size	iso2022_jp1_wctomb, .-iso2022_jp1_wctomb
	.comm	STATE_JISX0212,4,4
	.comm	STATE_JISX0208,4,4
	.comm	STATE_JISX0201ROMAN,4,4
	.comm	STATE_ASCII,4,4
	.comm	RET_TOOSMALL,4,4
	.comm	RET_ILUNI,4,4
	.comm	ESC,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
