	.file	"123443.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s host port\n"
.LC1:
	.string	"client_socket: Failed.\n"
.LC2:
	.string	"Hello!!"
.LC3:
	.string	"write"
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	cmp	DWORD PTR -20[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	client_socket
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 7
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"getaddrinfo: %s\n"
.LC5:
	.string	"%s: Could not connect\n"
	.text
	.type	client_socket, @function
client_socket:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 2
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L17
.L7:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L9
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	je	.L19
	mov	DWORD PTR -92[rbp], 1
	lea	rdx, -92[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	je	.L20
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L21
	jmp	.L13
.L20:
	nop
.L13:
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L11
.L19:
	nop
.L11:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L9:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L15
	jmp	.L14
.L21:
	nop
.L14:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __FUNCTION__.0[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -88[rbp]
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	client_socket, .-client_socket
	.section	.rodata
	.align 8
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 14
__FUNCTION__.0:
	.string	"client_socket"
	.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	"123443.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s host port\012\000"
	.align	2
.LC1:
	.ascii	"client_socket: Failed.\012\000"
	.align	2
.LC2:
	.ascii	"Hello!!\000"
	.align	2
.LC3:
	.ascii	"write\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L6+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	client_socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L6+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #7
	ldr	r1, .L6+16
	ldr	r0, [fp, #-8]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L6+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stdout
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC5:
	.ascii	"%s: Could not connect\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_socket, %function
client_socket:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #2
	str	r3, [fp, #-40]
	sub	r3, fp, #64
	sub	r2, fp, #48
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-72]
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L24+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L24+8
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L19
.L9:
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-56]
	b	.L11
.L17:
	ldr	r3, [fp, #-56]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L21
	mov	r3, #1
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	setsockopt
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	beq	.L22
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-60]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	b	.L15
.L22:
	nop
.L15:
	ldr	r0, [fp, #-60]
	bl	close
	b	.L13
.L21:
	nop
.L13:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-56]
.L11:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L17
	b	.L16
.L23:
	nop
.L16:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, .L24+12
	ldr	r1, .L24+16
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L19
.L18:
	ldr	r3, [fp, #-60]
.L19:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	stderr
	.word	.LC4
	.word	__FUNCTION__.6554
	.word	.LC5
	.size	client_socket, .-client_socket
	.section	.rodata
	.align	2
	.type	__FUNCTION__.6554, %object
	.size	__FUNCTION__.6554, 14
__FUNCTION__.6554:
	.ascii	"client_socket\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
