	.file	"extr_amt.c_amt_rcv_relay_mem_query.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"AMT relay membership query receive time-out"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"length less than zero"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Nonces are different rcvd: %x glob: %x"
	.text
	.p2align 4
	.type	amt_rcv_relay_mem_query, @function
amt_rcv_relay_mem_query:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	edx, r8d
	xor	esi, esi
	mov	rdi, rsp
	call	memset@PLT
	mov	rbx, QWORD PTR [r12]
	lea	rdi, -48[rbp]
	mov	esi, 1
	mov	eax, DWORD PTR 80[rbx]
	mov	edx, DWORD PTR 84[rbx]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR POLLIN[rip]
	mov	DWORD PTR -48[rbp], eax
	call	vlc_poll_i11e@PLT
	mov	r13d, eax
	cmp	eax, -1
	je	.L12
	test	eax, eax
	jne	.L6
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	msg_Err@PLT
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -24[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 80[rbx]
	mov	edx, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	xor	ecx, ecx
	mov	rsi, rsp
	call	recv@PLT
	test	rax, rax
	js	.L7
	movsx	rdx, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	cmp	rdx, rax
	je	.L8
.L7:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	r13d, r13d
	call	msg_Err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR MSG_TYPE_LEN[rip]
	lea	rdi, 56[rbx]
	mov	rsi, rsp
	call	memcpy@PLT
	mov	rax, QWORD PTR AMT_HDR_LEN[rip]
	mov	rdi, QWORD PTR 64[rbx]
	mov	edx, DWORD PTR MAC_LEN[rip]
	lea	rsi, [rsp+rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR MAC_LEN[rip]
	mov	edx, DWORD PTR NONCE_LEN[rip]
	lea	rdi, 72[rbx]
	lea	rsi, [rsp+rax]
	add	rsi, QWORD PTR AMT_HDR_LEN[rip]
	call	memcpy@PLT
	mov	rdx, QWORD PTR 72[rbx]
	mov	rcx, QWORD PTR [rbx]
	cmp	rdx, rcx
	je	.L9
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	xor	r13d, r13d
	call	msg_Warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12, QWORD PTR MAC_LEN[rip]
	add	r12, QWORD PTR AMT_HDR_LEN[rip]
	xor	edi, edi
	add	r12, QWORD PTR NONCE_LEN[rip]
	add	r12, QWORD PTR IP_HDR_IGMP_LEN[rip]
	movzx	eax, BYTE PTR [rsp+r12]
	movsx	rdx, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	lea	r13, 2[r12]
	mov	BYTE PTR 8[rbx], al
	lea	rax, 1[r12]
	cmp	rdx, rax
	seta	dil
	call	assert@PLT
	movzx	eax, BYTE PTR 1[rsp+r12]
	xor	edi, edi
	mov	BYTE PTR 9[rbx], al
	movsx	rax, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	cmp	rax, r13
	seta	dil
	call	assert@PLT
	lea	rsi, [rsp+r13]
	mov	edx, 2
	lea	rdi, 16[rbx]
	call	memcpy@PLT
	movsx	rax, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	lea	r13, 4[r12]
	xor	edi, edi
	cmp	rax, r13
	seta	dil
	call	assert@PLT
	lea	rsi, [rsp+r13]
	lea	rdi, 24[rbx]
	mov	edx, 4
	call	memcpy@PLT
	movsx	rdx, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	lea	rax, 8[r12]
	xor	edi, edi
	mov	r13d, 1
	cmp	rdx, rax
	seta	dil
	call	assert@PLT
	movzx	eax, BYTE PTR 8[rsp+r12]
	movsx	rdx, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	xor	edi, edi
	mov	BYTE PTR 32[rbx], al
	lea	rax, 9[r12]
	cmp	rdx, rax
	seta	dil
	call	assert@PLT
	movsx	eax, BYTE PTR 9[rsp+r12]
	mov	edx, 125
	test	al, al
	cmove	eax, edx
	add	r12, 10
	xor	edi, edi
	mov	DWORD PTR 36[rbx], eax
	movsx	rax, DWORD PTR RELAY_QUERY_MSG_LEN[rip]
	cmp	rax, r12
	seta	dil
	call	assert@PLT
	lea	rsi, [rsp+r12]
	mov	edx, 2
	lea	rdi, 40[rbx]
	call	memcpy@PLT
	movsx	edi, BYTE PTR 36[rbx]
	call	VLC_TICK_FROM_SEC@PLT
	mov	edi, DWORD PTR 48[rbx]
	xor	ecx, ecx
	xor	esi, esi
	mov	edx, eax
	call	vlc_timer_schedule@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	amt_rcv_relay_mem_query, .-amt_rcv_relay_mem_query
	.comm	RELAY_QUERY_MSG_LEN,4,4
	.comm	POLLIN,4,4
	.comm	NONCE_LEN,8,8
	.comm	MSG_TYPE_LEN,4,4
	.comm	MAC_LEN,8,8
	.comm	IP_HDR_IGMP_LEN,8,8
	.comm	AMT_HDR_LEN,8,8
	.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_amt.c_amt_rcv_relay_mem_query.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AMT relay membership query receive time-out\000"
	.align	2
.LC1:
	.ascii	"length less than zero\000"
	.align	2
.LC2:
	.ascii	"Nonces are different rcvd: %x glob: %x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amt_rcv_relay_mem_query, %function
amt_rcv_relay_mem_query:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r6, .L13
	ldr	r3, .L13+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, #0
	mov	r0, sp
	bl	memset
	ldr	r7, [r5]
	ldr	r3, .L13+8
	ldr	r0, [r7, #44]
	ldr	r3, [r3]
	str	r0, [fp, #-36]
	mov	r1, #1
	ldr	r2, [r7, #48]
	sub	r0, fp, #40
	str	r3, [fp, #-40]
	bl	vlc_poll_i11e
	cmn	r0, #1
	moveq	r4, #0
	beq	.L1
	cmp	r0, #0
	mov	r4, r0
	bne	.L3
	mov	r0, r5
	ldr	r1, .L13+12
	bl	msg_Err
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L3:
	mov	r3, #0
	mov	r1, sp
	ldr	r2, [r6]
	ldr	r0, [r7, #44]
	bl	recv
	cmp	r0, #0
	blt	.L4
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L5
.L4:
	mov	r0, r5
	ldr	r1, .L13+16
	bl	msg_Err
	mov	r4, #0
	b	.L1
.L5:
	ldr	r3, .L13+20
	ldr	r8, .L13+24
	ldr	r2, [r3]
	mov	r1, sp
	add	r0, r7, #32
	bl	memcpy
	ldr	r4, .L13+28
	ldr	r1, [r8]
	ldr	r2, [r4]
	add	r1, sp, r1
	ldr	r0, [r7, #36]
	bl	memcpy
	ldr	r2, .L13+32
	ldr	r9, [r8]
	ldr	r3, [r4]
	ldr	r8, [r2]
	add	r9, r9, r3
	mov	r2, r8
	add	r1, sp, r9
	add	r0, r7, #40
	bl	memcpy
	ldr	r2, [r7, #40]
	ldr	r3, [r7]
	cmp	r2, r3
	beq	.L6
	mov	r0, r5
	ldr	r1, .L13+36
	bl	msg_Warn
	mov	r4, #0
	b	.L1
.L6:
	mov	r4, #1
	ldr	r3, .L13+40
	ldr	r0, [r6]
	ldr	r5, [r3]
	add	r5, r8, r5
	add	r5, r5, r9
	ldrb	r3, [sp, r5]	@ zero_extendqisi2
	add	r8, r5, r4
	cmp	r0, r8
	movls	r0, #0
	movhi	r0, #1
	strb	r3, [r7, #4]
	bl	assert
	ldr	r0, [r6]
	ldrb	r3, [sp, r8]	@ zero_extendqisi2
	add	r8, r5, #2
	cmp	r0, r8
	strb	r3, [r7, #5]
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	add	r1, sp, r8
	mov	r2, #2
	add	r0, r7, #8
	bl	memcpy
	ldr	r0, [r6]
	add	r8, r5, #4
	cmp	r0, r8
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	add	r1, sp, r8
	mov	r2, #4
	add	r0, r7, #12
	bl	memcpy
	ldr	r0, [r6]
	add	r8, r5, #8
	cmp	r0, r8
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	ldr	r0, [r6]
	ldrb	r3, [sp, r8]	@ zero_extendqisi2
	add	r8, r5, #9
	cmp	r0, r8
	movls	r0, #0
	movhi	r0, #1
	strb	r3, [r7, #16]
	bl	assert
	ldrb	r3, [sp, r8]	@ zero_extendqisi2
	ldr	r0, [r6]
	cmp	r3, #0
	moveq	r3, #125
	add	r5, r5, #10
	cmp	r0, r5
	str	r3, [r7, #20]
	movls	r0, #0
	movhi	r0, #1
	bl	assert
	add	r1, sp, r5
	mov	r2, #2
	add	r0, r7, #24
	bl	memcpy
	ldrb	r0, [r7, #20]	@ zero_extendqisi2
	ldr	r5, [r7, #28]
	bl	VLC_TICK_FROM_SEC
	mov	r3, #0
	mov	r2, r0
	mov	r1, r3
	mov	r0, r5
	bl	vlc_timer_schedule
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	RELAY_QUERY_MSG_LEN
	.word	.LC3
	.word	POLLIN
	.word	.LC0
	.word	.LC1
	.word	MSG_TYPE_LEN
	.word	AMT_HDR_LEN
	.word	MAC_LEN
	.word	NONCE_LEN
	.word	.LC2
	.word	IP_HDR_IGMP_LEN
	.size	amt_rcv_relay_mem_query, .-amt_rcv_relay_mem_query
	.comm	RELAY_QUERY_MSG_LEN,4,4
	.comm	POLLIN,4,4
	.comm	NONCE_LEN,4,4
	.comm	MSG_TYPE_LEN,4,4
	.comm	MAC_LEN,4,4
	.comm	IP_HDR_IGMP_LEN,4,4
	.comm	AMT_HDR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
