	.file	"880788.c"
	.intel_syntax noprefix
	.text
	.globl	loop_delay
	.type	loop_delay, @function
loop_delay:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax, 30000000
	cmp	QWORD PTR -8[rbp], rax
	jl	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	loop_delay, .-loop_delay
	.section	.rodata
.LC0:
	.string	"Use: %s <url> <loops>\n"
.LC1:
	.string	"url:   %s\n"
.LC2:
	.string	"loops: %d\n"
.LC3:
	.string	"%[^:]://%[^/]%s"
.LC4:
	.string	"method: %s\n"
.LC5:
	.string	"server: %s\n"
.LC6:
	.string	"path:   %s\n"
.LC7:
	.string	"Making connection..."
.LC8:
	.string	"FAILURE: fopen_http(): %s\n"
.LC9:
	.string	"Getting data..."
	.align 8
.LC10:
	.string	"FAILURE: stream has an error: %s\n"
.LC11:
	.string	">>> %s"
.LC12:
	.string	"Closing connection..."
.LC13:
	.string	"SUCCESS"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 912
	mov	DWORD PTR -900[rbp], edi
	mov	QWORD PTR -912[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -900[rbp], 3
	je	.L5
	mov	rax, QWORD PTR -912[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L13
.L5:
	mov	rax, QWORD PTR -912[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -880[rbp], rax
	mov	rax, QWORD PTR -912[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -884[rbp], eax
	mov	rax, QWORD PTR -880[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -884[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -272[rbp]
	lea	rcx, -528[rbp]
	lea	rdx, -784[rbp]
	mov	rax, QWORD PTR -880[rbp]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	lea	rax, -784[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -892[rbp], 0
	jmp	.L7
.L12:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdx, -272[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen_http
	mov	QWORD PTR -872[rbp], rax
	cmp	QWORD PTR -872[rbp], 0
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L13
.L8:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -888[rbp], 0
	jmp	.L9
.L11:
	mov	rdx, QWORD PTR -872[rbp]
	lea	rax, -864[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -872[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L13
.L10:
	lea	rax, -864[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	loop_delay
	add	DWORD PTR -888[rbp], 1
.L9:
	cmp	DWORD PTR -888[rbp], 4
	jle	.L11
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -872[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	loop_delay
	add	DWORD PTR -892[rbp], 1
.L7:
	mov	eax, DWORD PTR -892[rbp]
	cmp	eax, DWORD PTR -884[rbp]
	jl	.L12
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC14:
	.string	"r+"
.LC15:
	.string	"FAILURE: fdopen(): %s\n"
.LC16:
	.string	"GET %s HTTP/1.0\n\n"
	.text
	.globl	fopen_http
	.type	fopen_http, @function
fopen_http:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	open_tcp
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L17
.L19:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	jne	.L17
	mov	rax, QWORD PTR -104[rbp]
	jmp	.L20
.L17:
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -96[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fopen_http, .-fopen_http
	.section	.rodata
	.align 8
.LC17:
	.string	"FAILURE: getaddrinfo failed: h_errno = %d\n"
	.align 8
.LC18:
	.string	"FAILURE: getaddrinfo returned NULL result"
.LC19:
	.string	"FAILURE: socket(): %s\n"
.LC20:
	.string	"FAILURE: connect(): %s\n"
	.text
	.globl	open_tcp
	.type	open_tcp, @function
open_tcp:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L23
	call	__h_errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L24
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	open_tcp, .-open_tcp
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"880788.c"
	.text
	.align	2
	.global	loop_delay
	.syntax unified
	.arm
	.fpu softvfp
	.type	loop_delay, %function
loop_delay:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r1, [fp, #-16]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #7
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	loop_delay, .-loop_delay
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Use: %s <url> <loops>\012\000"
	.align	2
.LC1:
	.ascii	"url:   %s\012\000"
	.align	2
.LC2:
	.ascii	"loops: %d\012\000"
	.align	2
.LC3:
	.ascii	"%[^:]://%[^/]%s\000"
	.align	2
.LC4:
	.ascii	"method: %s\012\000"
	.align	2
.LC5:
	.ascii	"server: %s\012\000"
	.align	2
.LC6:
	.ascii	"path:   %s\012\000"
	.align	2
.LC7:
	.ascii	"Making connection...\000"
	.align	2
.LC8:
	.ascii	"FAILURE: fopen_http(): %s\012\000"
	.align	2
.LC9:
	.ascii	"Getting data...\000"
	.align	2
.LC10:
	.ascii	"FAILURE: stream has an error: %s\012\000"
	.align	2
.LC11:
	.ascii	">>> %s\000"
	.align	2
.LC12:
	.ascii	"Closing connection...\000"
	.align	2
.LC13:
	.ascii	"SUCCESS\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 880
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #888
	str	r0, [fp, #-880]
	str	r1, [fp, #-884]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-880]
	cmp	r3, #3
	beq	.L5
	ldr	r3, [fp, #-884]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	mov	r3, #1
	b	.L13
.L5:
	ldr	r3, [fp, #-884]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-868]
	ldr	r3, [fp, #-884]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-864]
	ldr	r1, [fp, #-868]
	ldr	r0, .L15+8
	bl	printf
	ldr	r1, [fp, #-864]
	ldr	r0, .L15+12
	bl	printf
	sub	r1, fp, #520
	sub	r2, fp, #776
	sub	r3, fp, #264
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L15+16
	ldr	r0, [fp, #-868]
	bl	__isoc99_sscanf
	sub	r3, fp, #776
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L15+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-876]
	b	.L7
.L12:
	ldr	r0, .L15+32
	bl	puts
	sub	r2, fp, #264
	sub	r3, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	fopen_http
	str	r0, [fp, #-860]
	ldr	r3, [fp, #-860]
	cmp	r3, #0
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	mvn	r3, #0
	b	.L13
.L8:
	ldr	r0, .L15+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-872]
	b	.L9
.L11:
	sub	r3, fp, #856
	ldr	r2, [fp, #-860]
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-860]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+44
	bl	printf
	mvn	r3, #0
	b	.L13
.L10:
	sub	r3, fp, #856
	mov	r1, r3
	ldr	r0, .L15+48
	bl	printf
	mov	r0, #1
	bl	loop_delay
	ldr	r3, [fp, #-872]
	add	r3, r3, #1
	str	r3, [fp, #-872]
.L9:
	ldr	r3, [fp, #-872]
	cmp	r3, #4
	ble	.L11
	ldr	r0, .L15+52
	bl	puts
	ldr	r0, [fp, #-860]
	bl	fclose
	mov	r0, #1
	bl	loop_delay
	ldr	r3, [fp, #-876]
	add	r3, r3, #1
	str	r3, [fp, #-876]
.L7:
	ldr	r2, [fp, #-876]
	ldr	r3, [fp, #-864]
	cmp	r2, r3
	blt	.L12
	ldr	r0, .L15+56
	bl	puts
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"r+\000"
	.align	2
.LC16:
	.ascii	"FAILURE: fdopen(): %s\012\000"
	.align	2
.LC17:
	.ascii	"GET %s HTTP/1.0\012\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fopen_http
	.syntax unified
	.arm
	.fpu softvfp
	.type	fopen_http, %function
fopen_http:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #80
	ldr	r0, [fp, #-104]
	bl	open_tcp
	str	r0, [fp, #-96]
	ldr	r1, .L24+4
	ldr	r0, [fp, #-96]
	bl	fdopen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+8
	bl	printf
	ldr	r0, [fp, #-96]
	bl	close
	mov	r0, #1
	bl	exit
.L18:
	ldr	r2, [fp, #-108]
	ldr	r1, .L24+12
	ldr	r0, [fp, #-92]
	bl	fprintf
	ldr	r0, [fp, #-92]
	bl	fflush
	b	.L19
.L21:
	sub	r3, fp, #88
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	bne	.L19
	ldr	r3, [fp, #-92]
	b	.L22
.L19:
	sub	r3, fp, #88
	ldr	r2, [fp, #-92]
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-92]
	bl	fclose
	mov	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC18
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	fopen_http, .-fopen_http
	.section	.rodata
	.align	2
.LC19:
	.ascii	"FAILURE: getaddrinfo failed: h_errno = %d\012\000"
	.align	2
.LC20:
	.ascii	"FAILURE: getaddrinfo returned NULL result\000"
	.align	2
.LC21:
	.ascii	"FAILURE: socket(): %s\012\000"
	.align	2
.LC22:
	.ascii	"FAILURE: connect(): %s\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_tcp
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_tcp, %function
open_tcp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	getaddrinfo
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L27
	bl	__h_errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+4
	bl	printf
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L33+8
	bl	puts
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L33+12
	bl	printf
	mov	r0, #1
	bl	exit
.L29:
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L33+16
	bl	printf
	ldr	r0, [fp, #-12]
	bl	close
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-12]
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC23
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	open_tcp, .-open_tcp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
