	.file	"extr_msocket.c_test_udp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"FAIL: test_udp: socket(PF_INET, SOCK_DGRAM)"
	.align 8
.LC1:
	.string	"FAIL: test_udp: fcntl(F_SETFL, O_NONBLOCK)"
	.align 8
.LC2:
	.string	"FAIL: test_udp: bind(udp_sock, 127.0.0.1:%d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"127.0.0.1"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"test_udp: setsockopt(IPPROTO_IP, IP_MULTICAST_IF)"
	.section	.rodata.str1.1
.LC5:
	.string	"udp_sock"
.LC6:
	.string	"test_udp: sendto"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"test_udp: sendto: expected to send %d, instead %d"
	.section	.rodata.str1.1
.LC8:
	.string	"test_udp: recvfrom"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"test_udp: recvfrom: len %d != message len %d"
	.align 8
.LC10:
	.string	"test_udp: recvfrom: expected 'A', got '%c'"
	.text
	.p2align 4
	.type	test_udp, @function
test_udp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	edx, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR SOCK_DGRAM[rip]
	mov	edi, DWORD PTR PF_INET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	socket@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L23
.L2:
	mov	edx, DWORD PTR O_NONBLOCK[rip]
	mov	esi, DWORD PTR F_SETFL[rip]
	mov	edi, ebp
	call	fcntl@PLT
	test	rax, rax
	js	.L24
.L3:
	lea	rbx, 16[rsp]
	mov	esi, 32
	mov	rdi, rbx
	call	bzero@PLT
	mov	rax, QWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR UDP_PORT[rip]
	mov	DWORD PTR 16[rsp], 32
	mov	QWORD PTR 40[rsp], rax
	call	htons@PLT
	mov	rdi, QWORD PTR TEST_MADDR[rip]
	mov	QWORD PTR 32[rsp], rax
	call	inet_addr@PLT
	mov	edx, 32
	mov	rsi, rbx
	mov	edi, ebp
	mov	QWORD PTR 24[rsp], rax
	call	bind@PLT
	test	rax, rax
	js	.L25
.L4:
	mov	rdi, QWORD PTR TEST_MADDR[rip]
	call	inet_addr@PLT
	lea	rdi, .LC3[rip]
	mov	r12, rax
	call	inet_addr@PLT
	lea	rdi, .LC3[rip]
	mov	r13, rax
	call	inet_addr@PLT
	mov	edx, DWORD PTR IP_MULTICAST_IF[rip]
	lea	rcx, 8[rsp]
	mov	edi, ebp
	mov	esi, DWORD PTR IPPROTO_IP[rip]
	mov	r8d, 8
	mov	QWORD PTR 8[rsp], rax
	call	setsockopt@PLT
	test	rax, rax
	js	.L26
.L5:
	xor	r8d, r8d
	mov	rdx, r13
	mov	rcx, r12
	mov	edi, ebp
	lea	rsi, .LC5[rip]
	lea	r14, 3[rsp]
	call	test_add_multi@PLT
	mov	esi, 32
	mov	rdi, rbx
	call	bzero@PLT
	mov	rax, QWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR UDP_PORT[rip]
	mov	DWORD PTR 16[rsp], 32
	mov	QWORD PTR 40[rsp], rax
	call	htons@PLT
	mov	rdi, QWORD PTR TEST_MADDR[rip]
	mov	QWORD PTR 32[rsp], rax
	call	inet_addr@PLT
	xor	ecx, ecx
	mov	r9d, 32
	mov	r8, rbx
	mov	edx, 1
	mov	rsi, r14
	mov	edi, ebp
	mov	QWORD PTR 24[rsp], rax
	mov	BYTE PTR 3[rsp], 65
	mov	DWORD PTR 4[rsp], 1
	call	sendto@PLT
	mov	DWORD PTR 4[rsp], eax
	mov	ecx, eax
	test	eax, eax
	js	.L27
.L6:
	cmp	ecx, 1
	je	.L7
	mov	edx, 1
	lea	rsi, .LC7[rip]
	mov	edi, -1
	xor	eax, eax
	call	errx@PLT
.L7:
	lea	r9, 4[rsp]
	mov	r8, rbx
	xor	ecx, ecx
	mov	edx, 1
	mov	rsi, r14
	mov	edi, ebp
	mov	BYTE PTR 3[rsp], 66
	mov	DWORD PTR 4[rsp], 32
	call	recvfrom@PLT
	mov	DWORD PTR 4[rsp], eax
	test	eax, eax
	js	.L28
.L8:
	cmp	eax, 1
	je	.L9
	movsx	edx, al
	mov	ecx, 1
	lea	rsi, .LC9[rip]
	xor	eax, eax
	mov	edi, -1
	call	errx@PLT
.L9:
	movsx	edx, BYTE PTR 3[rsp]
	cmp	dl, 65
	je	.L10
	lea	rsi, .LC10[rip]
	mov	edi, -1
	xor	eax, eax
	call	errx@PLT
.L10:
	xor	r8d, r8d
	mov	rdx, r13
	mov	rcx, r12
	mov	edi, ebp
	lea	rsi, .LC5[rip]
	call	test_drop_multi@PLT
	mov	edi, ebp
	call	close@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rsi, .LC8[rip]
	mov	edi, -1
	xor	eax, eax
	call	err@PLT
	mov	eax, DWORD PTR 4[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rsi, .LC6[rip]
	mov	edi, -1
	xor	eax, eax
	call	err@PLT
	mov	ecx, DWORD PTR 4[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC4[rip]
	mov	edi, -1
	xor	eax, eax
	call	err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR UDP_PORT[rip]
	lea	rsi, .LC2[rip]
	mov	edi, -1
	xor	eax, eax
	call	err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC1[rip]
	mov	edi, -1
	xor	eax, eax
	call	err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC0[rip]
	mov	edi, -1
	xor	eax, eax
	call	err@PLT
	jmp	.L2
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_udp, .-test_udp
	.comm	UDP_PORT,4,4
	.comm	TEST_MADDR,8,8
	.comm	SOCK_DGRAM,4,4
	.comm	PF_INET,4,4
	.comm	O_NONBLOCK,4,4
	.comm	IP_MULTICAST_IF,4,4
	.comm	IPPROTO_IP,4,4
	.comm	F_SETFL,4,4
	.comm	AF_INET,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_msocket.c_test_udp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FAIL: test_udp: socket(PF_INET, SOCK_DGRAM)\000"
	.align	2
.LC1:
	.ascii	"FAIL: test_udp: fcntl(F_SETFL, O_NONBLOCK)\000"
	.align	2
.LC2:
	.ascii	"FAIL: test_udp: bind(udp_sock, 127.0.0.1:%d\000"
	.align	2
.LC3:
	.ascii	"127.0.0.1\000"
	.align	2
.LC4:
	.ascii	"test_udp: setsockopt(IPPROTO_IP, IP_MULTICAST_IF)\000"
	.align	2
.LC5:
	.ascii	"udp_sock\000"
	.align	2
.LC6:
	.ascii	"test_udp: sendto\000"
	.align	2
.LC7:
	.ascii	"test_udp: sendto: expected to send %d, instead %d\000"
	.align	2
.LC8:
	.ascii	"test_udp: recvfrom\000"
	.align	2
.LC9:
	.ascii	"test_udp: recvfrom: len %d != message len %d\000"
	.align	2
.LC10:
	.ascii	"test_udp: recvfrom: expected 'A', got '%c'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_udp, %function
test_udp:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L30
	ldr	r2, .L30+4
	ldr	r0, [r3]
	ldr	r3, .L30+8
	ldr	r1, [r2]
	sub	sp, sp, #48
	mov	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	socket
	subs	r4, r0, #0
	blt	.L23
.L2:
	ldr	r3, .L30+12
	ldr	r2, .L30+16
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	fcntl
	cmp	r0, #0
	blt	.L24
.L3:
	mov	r5, #16
	ldr	r10, .L30+20
	mov	r1, r5
	ldr	r7, .L30+24
	add	r0, sp, #28
	bl	bzero
	ldr	r3, [r10]
	ldr	r0, [r7]
	str	r3, [sp, #40]
	str	r5, [sp, #28]
	bl	htons
	ldr	r6, .L30+28
	str	r0, [sp, #36]
	ldr	r0, [r6]
	bl	inet_addr
	mov	r3, r0
	mov	r2, r5
	mov	r0, r4
	add	r1, sp, #28
	str	r3, [sp, #32]
	bl	bind
	cmp	r0, #0
	blt	.L25
.L4:
	ldr	r0, [r6]
	bl	inet_addr
	mov	r3, r0
	ldr	r0, .L30+32
	str	r3, [sp, #24]
	bl	inet_addr
	mov	r3, r0
	ldr	r0, .L30+32
	str	r3, [sp, #20]
	bl	inet_addr
	mov	r1, #4
	mov	ip, r0
	ldr	r3, .L30+36
	ldr	r2, .L30+40
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	add	r3, sp, #12
	str	ip, [sp, #12]
	bl	setsockopt
	cmp	r0, #0
	blt	.L26
.L5:
	mov	r8, #0
	mov	r9, #16
	str	r8, [sp]
	add	r5, sp, #20
	ldm	r5, {r2, r3}
	ldr	r1, .L30+44
	mov	r0, r4
	bl	test_add_multi
	mov	r1, r9
	add	r0, sp, #28
	bl	bzero
	ldr	r3, [r10]
	ldr	r0, [r7]
	str	r3, [sp, #40]
	str	r9, [sp, #28]
	bl	htons
	mov	r3, r0
	ldr	r0, [r6]
	str	r3, [sp, #36]
	bl	inet_addr
	mov	r2, #1
	mov	lr, r0
	mov	ip, #65
	add	r1, sp, #28
	str	r1, [sp]
	mov	r3, r8
	mov	r0, r4
	str	r9, [sp, #4]
	add	r1, sp, #11
	str	lr, [sp, #32]
	str	r2, [sp, #16]
	strb	ip, [sp, #11]
	bl	sendto
	cmp	r0, r8
	str	r0, [sp, #16]
	blt	.L27
.L6:
	cmp	r0, #1
	beq	.L7
	mov	r3, r0
	mov	r2, #1
	mvn	r0, #0
	ldr	r1, .L30+48
	bl	errx
.L7:
	mov	ip, #16
	mov	r0, #66
	add	r3, sp, ip
	add	r2, sp, #28
	str	r2, [sp]
	str	r3, [sp, #4]
	strb	r0, [sp, #11]
	mov	r3, #0
	mov	r2, #1
	mov	r0, r4
	add	r1, sp, #11
	str	ip, [sp, #16]
	bl	recvfrom
	cmp	r0, #0
	str	r0, [sp, #16]
	blt	.L28
.L8:
	cmp	r0, #1
	beq	.L9
	and	r2, r0, #255
	mov	r3, #1
	mvn	r0, #0
	ldr	r1, .L30+52
	bl	errx
.L9:
	ldrb	r2, [sp, #11]	@ zero_extendqisi2
	cmp	r2, #65
	beq	.L10
	mvn	r0, #0
	ldr	r1, .L30+56
	bl	errx
.L10:
	ldm	r5, {r2, r3}
	mov	r0, #0
	ldr	r1, .L30+44
	str	r0, [sp]
	mov	r0, r4
	bl	test_drop_multi
	mov	r0, r4
	bl	close
	ldr	r3, .L30+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L28:
	mvn	r0, #0
	ldr	r1, .L30+60
	bl	err
	ldr	r0, [sp, #16]
	b	.L8
.L27:
	mvn	r0, #0
	ldr	r1, .L30+64
	bl	err
	ldr	r0, [sp, #16]
	b	.L6
.L26:
	ldr	r1, .L30+68
	mvn	r0, #0
	bl	err
	b	.L5
.L25:
	ldr	r2, [r7]
	ldr	r1, .L30+72
	mvn	r0, #0
	bl	err
	b	.L4
.L24:
	ldr	r1, .L30+76
	mvn	r0, #0
	bl	err
	b	.L3
.L23:
	ldr	r1, .L30+80
	mvn	r0, #0
	bl	err
	b	.L2
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	PF_INET
	.word	SOCK_DGRAM
	.word	.LC11
	.word	F_SETFL
	.word	O_NONBLOCK
	.word	AF_INET
	.word	UDP_PORT
	.word	TEST_MADDR
	.word	.LC3
	.word	IPPROTO_IP
	.word	IP_MULTICAST_IF
	.word	.LC5
	.word	.LC7
	.word	.LC9
	.word	.LC10
	.word	.LC8
	.word	.LC6
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	test_udp, .-test_udp
	.comm	UDP_PORT,4,4
	.comm	TEST_MADDR,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	PF_INET,4,4
	.comm	O_NONBLOCK,4,4
	.comm	IP_MULTICAST_IF,4,4
	.comm	IPPROTO_IP,4,4
	.comm	F_SETFL,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
