	.file	"extr_nbt.c_NetBTNodeStatusAnswerCallback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	NetBTNodeStatusAnswerCallback, @function
NetBTNodeStatusAnswerCallback:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L34
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 16[rdi], 0
	jne	.L3
	mov	r12, rcx
	test	rcx, rcx
	je	.L3
	mov	r15d, r8d
	test	r8d, r8d
	jle	.L3
	mov	edx, DWORD PTR NCBNAMSZ[rip]
	mov	ecx, DWORD PTR [rcx]
	lea	eax, 2[rdx]
	imul	eax, ecx
	cmp	eax, r8d
	jg	.L3
	mov	rax, QWORD PTR TRUE[rip]
	mov	rsi, QWORD PTR 8[rdi]
	lea	r13, 4[r12]
	mov	QWORD PTR 16[rdi], rax
	movsx	rax, r8d
	lea	rbp, 16[rsi]
	mov	DWORD PTR [rsi], ecx
	mov	QWORD PTR 8[rsp], rax
	test	ecx, ecx
	jle	.L14
	xor	r14d, r14d
	cmp	r8d, 1
	jne	.L6
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L13:
	movsx	rax, edx
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r13
	mov	r8d, DWORD PTR 0[r13+rax*4]
	mov	DWORD PTR 4[rsp], r8d
	call	memcpy@PLT
	mov	edx, DWORD PTR REGISTERING[rip]
	mov	r8d, DWORD PTR 4[rsp]
	mov	DWORD PTR 0[rbp], edx
	mov	eax, edx
	test	r8b, -128
	je	.L8
	or	eax, DWORD PTR GROUP_NAME[rip]
	mov	DWORD PTR 0[rbp], eax
.L8:
	test	r8b, 16
	je	.L9
	or	eax, DWORD PTR DEREGISTERED[rip]
	mov	DWORD PTR 0[rbp], eax
.L9:
	and	r8d, 8
	je	.L10
	or	eax, DWORD PTR DUPLICATE[rip]
	mov	DWORD PTR 0[rbp], eax
.L10:
	cmp	edx, eax
	jne	.L11
	mov	eax, DWORD PTR REGISTERED[rip]
	mov	DWORD PTR 0[rbp], eax
.L11:
	movsx	rax, DWORD PTR NCBNAMSZ[rip]
	mov	rsi, QWORD PTR 8[rbx]
	add	r14d, 1
	add	rbp, 8
	lea	r13, 8[r13+rax*4]
	mov	rdx, rax
	mov	rdi, r13
	sub	rdi, r12
	mov	rax, rdi
	sar	rax, 2
	mov	r8, rax
	cmp	DWORD PTR [rsi], r14d
	jle	.L5
	cmp	QWORD PTR 8[rsp], rax
	jle	.L31
.L6:
	mov	rax, rbp
	sub	rax, rsi
	sar	rax, 2
	cmp	QWORD PTR [rbx], rax
	ja	.L13
	mov	rdi, r13
	sub	rdi, r12
	mov	r8, rdi
	sar	r8, 2
.L5:
	mov	DWORD PTR 4[rsi], 254
	cmp	QWORD PTR 8[rsp], r8
	jg	.L38
.L3:
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 24
	.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
.L34:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR FALSE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	sar	rdi, 2
	mov	esi, 6
	sub	r15d, edi
	mov	edi, r15d
	call	min@PLT
	mov	rsi, r13
	mov	edx, eax
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 8[rax]
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L31:
	mov	DWORD PTR 4[rsi], 254
	jmp	.L3
.L14:
	mov	r8d, 1
	mov	edi, 4
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	NetBTNodeStatusAnswerCallback, .-NetBTNodeStatusAnswerCallback
	.comm	TRUE,8,8
	.comm	REGISTERING,4,4
	.comm	REGISTERED,4,4
	.comm	NCBNAMSZ,4,4
	.comm	GROUP_NAME,4,4
	.comm	FALSE,4,4
	.comm	DUPLICATE,4,4
	.comm	DEREGISTERED,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_nbt.c_NetBTNodeStatusAnswerCallback.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	NetBTNodeStatusAnswerCallback, %function
NetBTNodeStatusAnswerCallback:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r4, r0, #0
	beq	.L3
	ldr	r8, [r4, #8]
	cmp	r8, #0
	bne	.L3
	mov	r6, r3
	ldr	r3, [sp, #40]
	cmp	r6, #0
	cmpne	r3, #0
	ble	.L3
	ldr	fp, .L29
	ldr	r0, [r6]
	ldr	r2, [fp]
	add	r2, r2, #2
	mul	r2, r0, r2
	cmp	r2, r3
	bgt	.L3
	ldr	r2, .L29+4
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	cmp	r0, #0
	str	r2, [r4, #8]
	add	r7, r6, #4
	str	r0, [r1]
	ble	.L14
	cmp	r3, #1
	beq	.L6
	mov	r3, r4
	mov	r2, r1
	mov	r4, r7
	ldr	r10, .L29+8
	mov	r7, r3
	add	r5, r1, #24
	b	.L7
.L13:
	ldr	r2, [fp]
	mov	r1, r4
	ldr	r0, [r5, #-4]
	ldr	r9, [r4, r2, lsl #2]
	bl	memcpy
	ldr	r2, [r10]
	tst	r9, #128
	moveq	r3, r2
	ldrne	r3, .L29+12
	str	r2, [r5, #-8]
	ldrne	r3, [r3]
	add	r8, r8, #1
	orrne	r3, r2, r3
	strne	r3, [r5, #-8]
	tst	r9, #16
	ldrne	r1, .L29+16
	ldrne	r0, [r1]
	orrne	r3, r3, r0
	strne	r3, [r5, #-8]
	tst	r9, #8
	ldrne	r1, .L29+20
	ldrne	r0, [r1]
	orrne	r3, r3, r0
	strne	r3, [r5, #-8]
	cmp	r2, r3
	ldreq	r3, .L29+24
	ldr	r2, [r7, #4]
	ldreq	r3, [r3]
	streq	r3, [r5, #-8]
	ldr	r3, [fp]
	ldr	ip, [r2]
	add	r3, r3, #2
	add	r4, r4, r3, lsl #2
	sub	r0, r4, r6
	cmp	ip, r8
	asr	r3, r0, #2
	mov	ip, r3
	ble	.L26
	ldr	r1, [sp, #40]
	add	r5, r5, #8
	cmp	r1, r3
	ble	.L12
.L7:
	ldr	r0, [r7]
	sub	r3, r5, #8
	sub	r3, r3, r2
	cmp	r0, r3, asr #2
	bhi	.L13
	mov	r1, r2
	mov	r7, r4
	sub	r0, r4, r6
	asr	ip, r0, #2
.L5:
	mov	r3, #254
	ldr	r2, [sp, #40]
	str	r3, [r1, #4]
	cmp	r2, ip
	ble	.L3
	ldr	r4, [r1, #8]
	sub	r0, r2, r0, asr #2
	mov	r1, #6
	bl	min
	mov	r1, r7
	mov	r2, r0
	mov	r0, r4
	bl	memcpy
.L3:
	ldr	r3, .L29+28
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r1, r2
	mov	r7, r4
	b	.L5
.L12:
	mov	r3, #254
	str	r3, [r2, #4]
	b	.L3
.L14:
	mov	ip, #1
	mov	r0, #4
	b	.L5
.L6:
	mov	r3, #254
	str	r3, [r1, #4]
	b	.L3
.L30:
	.align	2
.L29:
	.word	NCBNAMSZ
	.word	TRUE
	.word	REGISTERING
	.word	GROUP_NAME
	.word	DEREGISTERED
	.word	DUPLICATE
	.word	REGISTERED
	.word	FALSE
	.size	NetBTNodeStatusAnswerCallback, .-NetBTNodeStatusAnswerCallback
	.comm	TRUE,4,4
	.comm	REGISTERING,4,4
	.comm	REGISTERED,4,4
	.comm	NCBNAMSZ,4,4
	.comm	GROUP_NAME,4,4
	.comm	FALSE,4,4
	.comm	DUPLICATE,4,4
	.comm	DEREGISTERED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
