	.file	"extr_46445.c_make_socket.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"getaddrinfo: %s\n"
.LC1:
	.string	"No connection could be made\n"
.LC2:
	.string	"[Connected -> %s:%s]\n"
	.text
	.p2align 4
	.globl	make_socket
	.type	make_socket, @function
make_socket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 32
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r15, 16[rsp]
	mov	rdi, r15
	call	memset@PLT
	lea	rcx, 8[rsp]
	mov	rdx, r15
	mov	rsi, r14
	mov	eax, DWORD PTR AF_UNSPEC[rip]
	mov	rdi, r13
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR SOCK_STREAM[rip]
	mov	DWORD PTR 28[rsp], eax
	call	getaddrinfo@PLT
	test	eax, eax
	jne	.L28
.L2:
	mov	rbx, QWORD PTR 8[rsp]
	test	rbx, rbx
	je	.L3
.L6:
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 16[rbx]
	call	socket@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L4
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	je	.L29
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L8
	call	freeaddrinfo@PLT
.L8:
	mov	edi, DWORD PTR stderr[rip]
	xor	eax, eax
	mov	rcx, r14
	mov	rdx, r13
	lea	rsi, .LC2[rip]
	call	fprintf@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.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
.L29:
	.cfi_restore_state
	mov	edi, r12d
	call	close@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rbx, QWORD PTR 24[rbx]
	test	rbx, rbx
	jne	.L6
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L3
	call	freeaddrinfo@PLT
.L3:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, eax
	call	gai_strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L2
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	make_socket, .-make_socket
	.comm	stderr,4,4
	.comm	SOCK_STREAM,4,4
	.comm	AF_UNSPEC,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_46445.c_make_socket.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC1:
	.ascii	"No connection could be made\012\000"
	.align	2
.LC2:
	.ascii	"[Connected -> %s:%s]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_socket, %function
make_socket:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, #0
	ldr	r2, .L30
	ldr	r3, .L30+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	ip, .L30+8
	sub	sp, sp, #36
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	add	r2, sp, #4
	mov	r3, sp
	mov	r6, r0
	mov	r7, r1
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #24]
	bl	getaddrinfo
	cmp	r0, r4
	ldr	r8, .L30+12
	bne	.L23
.L2:
	ldr	r4, [sp]
	cmp	r4, #0
	beq	.L3
.L6:
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	bl	socket
	cmn	r0, #1
	mov	r5, r0
	beq	.L4
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	bl	connect
	cmn	r0, #1
	beq	.L28
.L5:
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L8
	bl	freeaddrinfo
.L8:
	mov	r3, r7
	mov	r2, r6
	ldr	r0, [r8]
	ldr	r1, .L30+16
	bl	fprintf
	ldr	r3, .L30+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L28:
	mov	r0, r5
	bl	close
.L4:
	ldr	r4, [r4, #20]
	cmp	r4, #0
	bne	.L6
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L3
	bl	freeaddrinfo
.L3:
	ldr	r1, .L30+20
	ldr	r0, [r8]
	bl	fprintf
	mov	r0, #0
	bl	exit
	b	.L5
.L23:
	ldr	r9, [r8]
	bl	gai_strerror
	ldr	r1, .L30+24
	mov	r2, r0
	mov	r0, r9
	bl	fprintf
	mov	r0, r4
	bl	exit
	b	.L2
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	AF_UNSPEC
	.word	SOCK_STREAM
	.word	.LC3
	.word	stderr
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	make_socket, .-make_socket
	.comm	stderr,4,4
	.comm	SOCK_STREAM,4,4
	.comm	AF_UNSPEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
