	.file	"extr_punycode.c_utf8toutf32.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ERROR input is null\n"
.LC1:
	.string	"ERROR: out of memory\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"ERROR in toutf32. Seems like input is invalid.\n"
	.text
	.p2align 4
	.globl	utf8toutf32
	.type	utf8toutf32, @function
utf8toutf32:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rdi, rdi
	je	.L16
	mov	rbx, rdi
	call	strlen@PLT
	mov	rdi, rbx
	mov	ebp, eax
	call	strlen@PLT
	mov	esi, 4
	lea	edi, 1[rax]
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rcx, rax
	xor	edx, edx
	test	ebp, ebp
	jg	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	add	edx, 1
.L7:
	mov	DWORD PTR [rcx], eax
	add	rcx, 4
	cmp	edx, ebp
	jge	.L1
.L11:
	movsx	rax, edx
	lea	rsi, 0[0+rax*4]
	mov	eax, DWORD PTR [rbx+rax*4]
	mov	edi, eax
	shr	edi, 7
	je	.L17
	mov	edi, eax
	sar	edi, 5
	cmp	edi, 6
	je	.L18
	mov	edi, eax
	sar	edi, 4
	cmp	edi, 14
	je	.L19
	mov	edi, eax
	sar	edi, 3
	cmp	edi, 30
	jne	.L10
	mov	edi, DWORD PTR 12[rbx+rsi]
	sal	eax, 18
	add	edx, 4
	add	rcx, 4
	and	eax, 1835008
	and	edi, 63
	or	eax, edi
	mov	edi, DWORD PTR 4[rbx+rsi]
	sal	edi, 12
	and	edi, 258048
	or	edi, eax
	mov	eax, DWORD PTR 8[rbx+rsi]
	sal	eax, 6
	and	eax, 4032
	or	eax, edi
	mov	DWORD PTR -4[rcx], eax
	cmp	edx, ebp
	jl	.L11
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbx+rsi]
	sal	eax, 6
	add	edx, 2
	and	eax, 1984
	and	esi, 63
	or	eax, esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 8[rbx+rsi]
	sal	eax, 12
	add	edx, 3
	movzx	eax, ax
	and	edi, 63
	or	edi, eax
	mov	eax, DWORD PTR 4[rbx+rsi]
	sal	eax, 6
	and	eax, 4032
	or	eax, edi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC2[rip]
	call	eprintf@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	eprintf@PLT
	jmp	.L1
.L4:
	lea	rdi, .LC1[rip]
	call	eprintf@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	utf8toutf32, .-utf8toutf32
	.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_punycode.c_utf8toutf32.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR input is null\012\000"
	.align	2
.LC1:
	.ascii	"ERROR: out of memory\012\000"
	.align	2
.LC2:
	.ascii	"ERROR in toutf32. Seems like input is invalid.\012\000"
	.text
	.align	2
	.global	utf8toutf32
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8toutf32, %function
utf8toutf32:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r0, #0
	beq	.L15
	bl	strlen
	mov	r1, #4
	mov	r5, r0
	add	r0, r0, #1
	bl	calloc
	subs	r6, r0, #0
	beq	.L4
	cmp	r5, #0
	movne	r1, #0
	ldrne	ip, .L17
	subne	r0, r6, #4
	bne	.L11
	b	.L1
.L8:
	cmp	r9, #14
	beq	.L16
	cmp	r10, #30
	bne	.L10
	ldr	r3, [r8, #12]
	ldr	r7, [r8, #4]
	ldr	r2, [r8, #8]
	and	r3, r3, #63
	lsl	r7, r7, #12
	orr	r3, r3, lr
	lsl	r2, r2, #6
	and	lr, r7, #258048
	orr	r3, r3, lr
	and	r2, r2, #4032
	add	r1, r1, #4
	orr	r3, r3, r2
.L7:
	cmp	r1, r5
	str	r3, [r0, #4]!
	bge	.L1
.L11:
	ldr	r3, [r4, r1, lsl #2]
	lsl	r2, r1, #2
	lsrs	lr, r3, #7
	asr	r7, r3, #5
	addeq	r1, r1, #1
	beq	.L7
	lsl	lr, r3, #18
	cmp	r7, #6
	add	r8, r4, r2
	and	lr, lr, #1835008
	asr	r9, r3, #4
	asr	r10, r3, #3
	bne	.L8
	ldr	r2, [r8, #4]
	lsl	r3, r3, #6
	and	r2, r2, #63
	and	r3, r3, #1984
	add	r1, r1, #2
	orr	r3, r2, r3
	cmp	r1, r5
	str	r3, [r0, #4]!
	blt	.L11
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	add	r2, r4, r2
	ldmib	r2, {r2, lr}
	and	r7, ip, r3, lsl #12
	and	lr, lr, #63
	lsl	r3, r2, #6
	and	r3, r3, #4032
	orr	r2, lr, r7
	add	r1, r1, #3
	orr	r3, r2, r3
	b	.L7
.L10:
	ldr	r0, .L17+4
	bl	eprintf
	mov	r0, r6
	mov	r6, #0
	bl	free
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r0, .L17+8
	mov	r6, r4
	bl	eprintf
	b	.L1
.L4:
	ldr	r0, .L17+12
	bl	eprintf
	b	.L1
.L18:
	.align	2
.L17:
	.word	65535
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	utf8toutf32, .-utf8toutf32
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
