	.file	"extr_......libvsprintf.c_ip6_compressed_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ip6_compressed_string, @function
ip6_compressed_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	lea	rbx, 32[rsp]
	mov	rdi, r12
	call	memcpy@PLT
	mov	rdi, r12
	call	ipv6_addr_v4mapped@PLT
	test	rax, rax
	je	.L46
.L2:
	mov	edx, 8
	xor	esi, esi
	mov	rdi, rbx
	mov	r13d, 6
	call	memset@PLT
	mov	DWORD PTR 12[rsp], 1
.L4:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, rbx
	xor	edi, edi
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, rdi
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR [rsi+rax*8], 0
	jne	.L9
	add	rax, 1
	add	BYTE PTR [rdx], 1
	cmp	r13d, eax
	jg	.L8
.L9:
	add	rdi, 1
	add	rdx, 1
	cmp	r13d, edi
	jg	.L5
	xor	eax, eax
	mov	r15d, -1
	mov	r14d, 1
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	edx, BYTE PTR [rbx+rax]
	cmp	edx, r14d
	jle	.L10
	mov	r15d, eax
	mov	r14d, edx
.L10:
	add	rax, 1
	cmp	r13d, eax
	jg	.L7
	test	r15d, r15d
	je	.L31
	xor	ebx, ebx
.L25:
	movsx	r12, ebx
	sal	r12, 3
.L24:
	mov	rdi, QWORD PTR [rsi+r12]
	add	ebx, 1
	call	ntohs@PLT
	mov	esi, eax
	movzx	r8d, al
	sar	esi, 8
	je	.L16
	mov	DWORD PTR 8[rsp], r8d
	cmp	esi, 15
	jle	.L17
	mov	rdi, rbp
	call	pack_hex_byte@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	rdi, rax
.L18:
	mov	esi, r8d
	call	pack_hex_byte@PLT
	cmp	r13d, ebx
	jle	.L20
.L44:
	mov	edx, 1
	cmp	r15d, ebx
	je	.L23
	mov	BYTE PTR [rax], 58
	lea	rbp, 1[rax]
	mov	rsi, QWORD PTR 16[rsp]
	add	r12, 8
	jmp	.L24
.L30:
	mov	rax, rbp
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rbp, 1[rax]
	test	ebx, ebx
	je	.L32
	test	edx, edx
	jne	.L32
	add	ebx, r14d
	mov	BYTE PTR [rax], 58
	cmp	r13d, ebx
	jle	.L47
.L14:
	xor	edx, edx
	cmp	r15d, ebx
	je	.L30
	mov	rsi, QWORD PTR 16[rsp]
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L16:
	test	al, -16
	jne	.L48
	mov	edi, r8d
	call	hex_asc_lo@PLT
	mov	r8, rax
	lea	rax, 1[rbp]
	mov	BYTE PTR 0[rbp], r8b
	cmp	r13d, ebx
	jg	.L44
.L20:
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	jne	.L49
.L27:
	mov	BYTE PTR [rax], 0
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L50
	add	rsp, 56
	.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
.L17:
	.cfi_restore_state
	mov	edi, esi
	call	hex_asc_lo@PLT
	mov	r8d, DWORD PTR 8[rsp]
	lea	rdi, 1[rbp]
	mov	BYTE PTR 0[rbp], al
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L32:
	mov	BYTE PTR [rax], 58
	lea	rdx, 2[rax]
	add	ebx, r14d
	mov	rax, rbp
	mov	BYTE PTR [rax], 58
	mov	rbp, rdx
	cmp	r13d, ebx
	jg	.L14
.L47:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L28
	mov	rax, rbp
	jmp	.L27
.L49:
	mov	BYTE PTR [rax], 58
	lea	rbp, 1[rax]
.L28:
	mov	rax, QWORD PTR 24[rsp]
	xor	edx, edx
	mov	rdi, rbp
	lea	rsi, 48[rax]
	call	ip4_string@PLT
	jmp	.L27
.L46:
	mov	rdi, r12
	call	ipv6_addr_is_isatap@PLT
	test	rax, rax
	jne	.L2
	mov	edx, 8
	xor	esi, esi
	mov	rdi, rbx
	mov	r13d, 8
	call	memset@PLT
	mov	DWORD PTR 12[rsp], 0
	jmp	.L4
.L31:
	xor	edx, edx
	xor	ebx, ebx
	mov	rax, rbp
	jmp	.L23
.L50:
	call	__stack_chk_fail@PLT
.L48:
	mov	rdi, rbp
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	ip6_compressed_string, .-ip6_compressed_string
	.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_......libvsprintf.c_ip6_compressed_string.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ip6_compressed_string, %function
ip6_compressed_string:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L52
	sub	sp, sp, #36
	mov	r2, #8
	mov	r5, r0
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	memcpy
	add	r0, sp, #12
	bl	ipv6_addr_v4mapped
	cmp	r0, #0
	beq	.L45
.L2:
	mov	r3, #0
	mov	r2, #1
	mov	r4, #6
	add	r6, sp, #20
	str	r3, [sp, #20]
	str	r2, [sp, #4]
	str	r3, [r6, #4]
.L4:
	ldr	lr, [sp, #12]
	mov	r0, r6
	mov	r8, lr
	mov	r10, #0
.L5:
	mov	ip, r8
	mov	r1, r10
.L8:
	ldr	r3, [ip], #4
	cmp	r3, #0
	bne	.L9
	ldrb	r3, [r0]	@ zero_extendqisi2
	add	r1, r1, #1
	add	r3, r3, #1
	cmp	r4, r1
	strb	r3, [r0]
	bgt	.L8
.L9:
	add	r7, r10, #1
	cmp	r4, r7
	add	r0, r0, #1
	add	r8, r8, #4
	movne	r10, r7
	bne	.L5
.L46:
	mvn	r1, #0
	mov	r0, #1
	mov	r3, #0
	b	.L7
.L30:
	mov	r3, ip
.L7:
	ldrb	r4, [r6], #1	@ zero_extendqisi2
	add	ip, r3, #1
	cmp	r4, r0
	movle	r8, r1
	movgt	r8, r3
	movle	r4, r0
	cmp	r10, r3
	mov	r1, r8
	mov	r0, r4
	bne	.L30
	cmp	r8, #0
	movne	r6, #0
	beq	.L47
.L23:
	ldr	r0, [lr, r6, lsl #2]
	bl	ntohs
	asrs	r1, r0, #8
	and	fp, r0, #255
	add	r9, r6, #1
	beq	.L15
	cmp	r1, #15
	ble	.L16
	mov	r0, r5
	bl	pack_hex_byte
.L17:
	mov	r1, fp
	bl	pack_hex_byte
	cmp	r6, r10
	mov	r3, r0
	bge	.L19
.L42:
	cmp	r8, r9
	mov	r1, #1
	beq	.L20
	mov	r5, r3
	mov	r3, #58
	mov	r6, r9
	strb	r3, [r5], #1
.L43:
	ldr	lr, [sp, #12]
	b	.L23
.L15:
	tst	r0, #240
	bne	.L48
	mov	r0, fp
	bl	hex_asc_lo
	mov	r3, r5
	cmp	r6, r10
	strb	r0, [r3], #1
	blt	.L42
.L19:
	ldr	r2, [sp, #4]
	cmp	r2, #0
	bne	.L49
.L26:
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [sp, #28]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L50
	mov	r0, r3
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r0, r1
	bl	hex_asc_lo
	mov	r1, r0
	mov	r0, r5
	strb	r1, [r0], #1
	b	.L17
.L47:
	mov	r3, r5
	mov	r9, r1
.L20:
	mov	r0, #58
.L22:
	cmp	r9, #0
	moveq	r1, #1
	cmp	r1, #0
	movne	r1, r3
	add	r5, r3, #1
	movne	r3, r5
	strbne	r0, [r1], #2
	add	r6, r4, r9
	movne	r5, r1
	cmp	r7, r6
	strb	r0, [r3]
	ble	.L51
	cmp	r8, r6
	mov	r1, #0
	bne	.L43
	mov	r3, r5
	mov	r9, r8
	b	.L22
.L49:
	mov	r5, r3
	mov	r3, #58
	strb	r3, [r5], #1
.L27:
	ldr	r1, [sp, #16]
	mov	r0, r5
	mov	r2, #0
	add	r1, r1, #48
	bl	ip4_string
	mov	r3, r0
	b	.L26
.L45:
	add	r0, sp, #12
	bl	ipv6_addr_is_isatap
	subs	r3, r0, #0
	str	r3, [sp, #4]
	bne	.L2
	ldr	r3, [sp, #4]
	add	r6, sp, #20
	str	r3, [sp, #20]
	mov	r4, #8
	str	r3, [r6, #4]
	b	.L4
.L51:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	moveq	r3, r5
	bne	.L27
	b	.L26
.L48:
	mov	r0, r5
	b	.L17
.L50:
	bl	__stack_chk_fail
.L53:
	.align	2
.L52:
	.word	.LC0
	.size	ip6_compressed_string, .-ip6_compressed_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
