	.file	"extr_test_vfs_select.c_socket_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"80"
.LC1:
	.string	"localhost"
.LC2:
	.string	"Socket connection failed"
	.text
	.p2align 4
	.type	socket_init, @function
socket_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	sub	rsp, 64
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR SOCK_DGRAM[rip]
	lea	rcx, 8[rsp]
	lea	rdx, 16[rsp]
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR AF_INET[rip]
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 28[rsp], eax
	call	getaddrinfo@PLT
	xor	esi, esi
	mov	edi, eax
	call	TEST_ASSERT_EQUAL@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	TEST_ASSERT_NOT_NULL@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	esi, DWORD PTR 8[rax]
	mov	edi, DWORD PTR 12[rax]
	call	socket@PLT
	mov	edi, eax
	mov	r12d, eax
	not	edi
	shr	edi, 31
	call	TEST_ASSERT@PLT
	mov	eax, DWORD PTR PF_INET[rip]
	mov	edi, 80
	mov	DWORD PTR 40[rsp], eax
	call	htons@PLT
	mov	edi, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 36[rsp], eax
	call	htonl@PLT
	lea	rsi, 32[rsp]
	mov	edx, 16
	mov	edi, r12d
	mov	DWORD PTR 32[rsp], eax
	call	bind@PLT
	not	eax
	mov	edi, eax
	shr	edi, 31
	call	TEST_ASSERT@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, r12d
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	call	connect@PLT
	xor	esi, esi
	lea	rdx, .LC2[rip]
	mov	edi, eax
	call	TEST_ASSERT_EQUAL_MESSAGE@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	freeaddrinfo@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	socket_init, .-socket_init
	.comm	SOCK_DGRAM,4,4
	.comm	PF_INET,4,4
	.comm	INADDR_ANY,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
	.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_test_vfs_select.c_socket_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"80\000"
	.align	2
.LC1:
	.ascii	"localhost\000"
	.align	2
.LC2:
	.ascii	"Socket connection failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_init, %function
socket_init:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, #0
	ldr	r2, .L6
	ldr	r3, .L6+4
	ldr	ip, .L6+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	sub	sp, sp, #44
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	mov	r3, sp
	add	r2, sp, #4
	str	r1, [sp, #12]
	str	r0, [sp, #16]
	ldr	r1, .L6+12
	ldr	r0, .L6+16
	str	r4, [sp, #4]
	str	r4, [sp, #20]
	str	r4, [sp, #8]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	str	r4, [sp, #32]
	bl	getaddrinfo
	mov	r1, r4
	bl	TEST_ASSERT_EQUAL
	ldr	r0, [sp]
	bl	TEST_ASSERT_NOT_NULL
	ldr	r3, [sp]
	mov	r2, r4
	ldr	r1, [r3, #8]
	ldr	r0, [r3, #12]
	bl	socket
	cmp	r0, r4
	mov	r5, r0
	movlt	r0, #0
	movge	r0, #1
	bl	TEST_ASSERT
	ldr	r3, .L6+20
	mov	r0, #80
	ldr	r3, [r3]
	str	r3, [sp, #28]
	bl	htons
	ldr	r3, .L6+24
	str	r0, [sp, #24]
	ldr	r0, [r3]
	bl	htonl
	mov	r3, r0
	mov	r2, #16
	add	r1, sp, #20
	mov	r0, r5
	str	r3, [sp, #20]
	bl	bind
	cmp	r0, r4
	movlt	r0, #0
	movge	r0, #1
	bl	TEST_ASSERT
	ldr	r3, [sp]
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	bl	connect
	ldr	r2, .L6+28
	mov	r1, r4
	bl	TEST_ASSERT_EQUAL_MESSAGE
	ldr	r0, [sp]
	bl	freeaddrinfo
	ldr	r3, .L6+8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	SOCK_DGRAM
	.word	AF_INET
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	PF_INET
	.word	INADDR_ANY
	.word	.LC2
	.size	socket_init, .-socket_init
	.comm	SOCK_DGRAM,4,4
	.comm	PF_INET,4,4
	.comm	INADDR_ANY,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
