	.file	"extr_in6_ifattach.c_in6_nigroup0.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	in6_nigroup0, @function
in6_nigroup0:
.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, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 216
	.cfi_def_cfa_offset 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 200[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	sete	al
	cmp	edx, -1
	jne	.L27
	test	al, al
	jne	.L2
.L27:
	test	edx, edx
	je	.L59
	test	al, al
	jne	.L59
	movzx	eax, BYTE PTR [rsi]
	test	al, al
	je	.L59
	cmp	al, 46
	je	.L59
	movsx	rcx, edx
	test	rcx, rcx
	jle	.L59
	xor	ebx, ebx
.L23:
	mov	rdx, rsi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L61:
	test	al, al
	je	.L9
	mov	rax, rdx
	sub	rax, rsi
	cmp	rax, rcx
	jge	.L9
.L10:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	cmp	al, 46
	jne	.L61
.L9:
	cmp	rdx, rsi
	je	.L11
	sub	rdx, rsi
	cmp	rdx, 63
	ja	.L11
	lea	r14, 128[rsp]
	mov	BYTE PTR 31[rsp], dl
	mov	rdi, r14
	call	strncpy@PLT
	test	rbx, rbx
	je	.L14
	lea	rdi, 8[rbx]
	call	mtx_unlock@PLT
.L14:
	movsx	rax, BYTE PTR 31[rsp]
	mov	BYTE PTR 128[rsp+rax], 0
	movzx	eax, BYTE PTR 128[rsp]
	test	al, al
	je	.L15
	mov	rdx, r14
	.p2align 4,,10
	.p2align 3
.L17:
	lea	ecx, -65[rax]
	cmp	cl, 25
	ja	.L16
	add	eax, 32
	mov	BYTE PTR [rdx], al
.L16:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	test	al, al
	jne	.L17
.L15:
	lea	r15, 32[rsp]
	mov	esi, 24
	mov	rdi, r15
	call	bzero@PLT
	mov	rdi, r15
	call	MD5Init@PLT
	lea	rsi, 31[rsp]
	mov	edx, 1
	mov	rdi, r15
	call	MD5Update@PLT
	movsx	edx, BYTE PTR 31[rsp]
	mov	rsi, r14
	mov	rdi, r15
	lea	r14, 64[rsp]
	call	MD5Update@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	MD5Final@PLT
	mov	esi, 24
	mov	rdi, rbp
	call	bzero@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR IPV6_ADDR_INT16_MLL[rip]
	mov	rsi, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR 44[rsi], 2
	test	r13d, r13d
	je	.L62
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, 4
	mov	rdi, r14
	lea	rsi, 12[rax]
	call	bcopy@PLT
.L19:
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbp
	call	in6_setscope@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	neg	eax
.L1:
	mov	rbx, QWORD PTR 200[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L63
	add	rsp, 216
	.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
.L62:
	.cfi_restore_state
	mov	DWORD PTR 48[rsi], 255
	mov	edx, 3
	add	rsi, 52
	mov	rdi, r14
	call	bcopy@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	lea	r14, 8[rbx]
	mov	rdi, r14
	call	mtx_lock@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rsi
	mov	QWORD PTR 8[rsp], rsi
	call	strlen@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rsi, rsi
	je	.L22
	test	eax, eax
	je	.L22
	movzx	edx, BYTE PTR [rsi]
	test	dl, dl
	je	.L22
	cmp	dl, 46
	je	.L22
	movsx	rcx, eax
	test	rcx, rcx
	jg	.L23
.L22:
	mov	rdi, r14
	call	mtx_unlock@PLT
.L59:
	mov	eax, -1
	jmp	.L1
.L11:
	test	rbx, rbx
	je	.L59
	lea	r14, 8[rbx]
	jmp	.L22
.L63:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	in6_nigroup0, .-in6_nigroup0
	.comm	curthread,8,8
	.comm	IPV6_ADDR_INT16_MLL,4,4
	.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_in6_ifattach.c_in6_nigroup0.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	in6_nigroup0, %function
in6_nigroup0:
	@ args = 4, pretend = 0, frame = 152
	@ frame_needed = 0, uses_anonymous_args = 0
	cmn	r2, #1
	cmpeq	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	ldr	r3, .L43
	sub	sp, sp, #152
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #148]
	mov	r3,#0
	beq	.L2
	clz	r7, r1
	cmp	r2, #0
	lsr	r7, r7, #5
	moveq	r7, #1
	cmp	r7, #0
	bne	.L39
	ldrb	r3, [r1]	@ zero_extendqisi2
	mov	r6, r1
	cmp	r3, #46
	cmpne	r3, #0
	beq	.L39
	cmp	r2, #0
	ble	.L39
.L17:
	mov	ip, r6
	b	.L7
.L41:
	sub	r3, ip, r6
	cmp	r3, r2
	bge	.L6
.L7:
	ldrb	lr, [ip, #1]!	@ zero_extendqisi2
	cmp	lr, #46
	cmpne	lr, #0
	bne	.L41
.L6:
	cmp	ip, r6
	beq	.L8
	sub	ip, ip, r6
	cmp	ip, #63
	bhi	.L8
	and	r2, ip, #255
	mov	r1, r6
	add	r0, sp, #84
	strb	r2, [sp, #7]
	bl	strncpy
	cmp	r7, #0
	beq	.L11
	add	r0, r7, #4
	bl	mtx_unlock
.L11:
	mov	r2, #0
	ldrb	r3, [sp, #7]	@ zero_extendqisi2
	add	r1, sp, #152
	add	r3, r1, r3
	strb	r2, [r3, #-68]
	ldrb	r2, [sp, #84]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L12
	add	r3, sp, #84
.L14:
	sub	r1, r2, #65
	cmp	r1, #25
	addls	r2, r2, #32
	strbls	r2, [r3]
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L14
.L12:
	mov	r1, #12
	add	r0, sp, #8
	bl	bzero
	add	r0, sp, #8
	bl	MD5Init
	mov	r2, #1
	add	r1, sp, #7
	add	r0, sp, #8
	bl	MD5Update
	ldrb	r2, [sp, #7]	@ zero_extendqisi2
	add	r1, sp, #84
	add	r0, sp, #8
	bl	MD5Update
	add	r1, sp, #8
	add	r0, sp, #20
	bl	MD5Final
	mov	r1, #12
	mov	r0, r4
	bl	bzero
	mov	r3, #2
	ldr	r1, .L43+4
	ldr	ip, [sp, #176]
	ldr	r2, [r4, #8]
	ldr	r0, [r1]
	ldr	r1, [r4]
	cmp	ip, #0
	str	r0, [r2]
	str	r3, [r1, #44]
	moveq	r3, #255
	ldrne	r1, [r4, #4]
	streq	r3, [r1, #48]
	moveq	r2, #3
	movne	r2, #4
	addeq	r1, r1, #52
	addne	r1, r1, #12
	addeq	r0, sp, #20
	addne	r0, sp, #20
	bl	bcopy
	mov	r1, r5
	mov	r0, r4
	mov	r2, #0
	bl	in6_setscope
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [sp, #148]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	add	sp, sp, #152
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L43+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r7, [r3]
	add	r8, r7, #4
	mov	r0, r8
	bl	mtx_lock
	ldr	r6, [r7]
	mov	r0, r6
	bl	strlen
	subs	r2, r0, #0
	beq	.L18
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #46
	bne	.L17
.L18:
	mov	r0, r8
	bl	mtx_unlock
.L39:
	mvn	r0, #0
	b	.L1
.L42:
	bl	__stack_chk_fail
.L8:
	cmp	r7, #0
	beq	.L39
	add	r8, r7, #4
	b	.L18
.L44:
	.align	2
.L43:
	.word	.LC0
	.word	IPV6_ADDR_INT16_MLL
	.word	curthread
	.size	in6_nigroup0, .-in6_nigroup0
	.comm	curthread,4,4
	.comm	IPV6_ADDR_INT16_MLL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
