	.file	"200143021.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cannot create socket"
.LC1:
	.string	"51.81.17.217"
.LC2:
	.string	"connect failed"
.LC3:
	.string	"GET / HTTP/1.0\r\n\r\n"
.LC4:
	.string	"Wrote: %d\n"
.LC5:
	.string	"Read: %d\n"
.LC6:
	.string	"Got: %.*s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -1048576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1048608[rbp], 0
	mov	QWORD PTR -1048600[rbp], 0
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1048628[rbp], eax
	cmp	DWORD PTR -1048628[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	WORD PTR -1048608[rbp], 2
	mov	edi, 443
	call	htons@PLT
	mov	WORD PTR -1048606[rbp], ax
	lea	rax, -1048608[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 2
	call	inet_pton@PLT
	lea	rcx, -1048608[rbp]
	mov	eax, DWORD PTR -1048628[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	tls_connect@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -1048628[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -1048616[rbp], rax
	mov	rax, QWORD PTR -1048616[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -1048616[rbp]
	mov	eax, DWORD PTR -1048628[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -1048624[rbp], eax
	mov	eax, DWORD PTR -1048624[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -1048592[rbp]
	mov	eax, DWORD PTR -1048628[rbp]
	mov	edx, 1048576
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1048620[rbp], eax
	mov	eax, DWORD PTR -1048620[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1048592[rbp]
	mov	rdx, rax
	mov	esi, 1048576
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1048628[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR -1048628[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"200143021.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cannot create socket\000"
	.align	2
.LC1:
	.ascii	"51.81.17.217\000"
	.align	2
.LC2:
	.ascii	"connect failed\000"
	.align	2
.LC3:
	.ascii	"GET / HTTP/1.0\015\012\015\012\000"
	.align	2
.LC4:
	.ascii	"Wrote: %d\012\000"
	.align	2
.LC5:
	.ascii	"Read: %d\012\000"
	.align	2
.LC6:
	.ascii	"Got: %.*s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048616
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1048576
	sub	sp, sp, #44
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-36]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L6+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-20]	@ movhi
	ldr	r0, .L6+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	strh	r2, [r3, #-18]	@ movhi
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #20
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L6+12
	mov	r0, #2
	bl	inet_pton
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-36]
	bl	tls_connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L6+16
	bl	perror
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	close
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L6+20
	str	r3, [r2, #-32]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-32]
	ldr	r0, [r0, #-36]
	bl	write
	str	r0, [r4, #-28]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r1, [r3, #-28]
	ldr	r0, .L6+24
	bl	printf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1048576
	mov	r1, r3
	ldr	r0, [r0, #-36]
	bl	read
	str	r0, [r4, #-24]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r1, [r3, #-24]
	ldr	r0, .L6+28
	bl	printf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #1048576
	ldr	r0, .L6+32
	bl	printf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r1, #2
	ldr	r0, [r3, #-36]
	bl	shutdown
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	close
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC7
	.word	.LC0
	.word	443
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
