	.file	"384474.c"
	.intel_syntax noprefix
	.text
	.globl	socket_path
	.section	.rodata
.LC0:
	.string	""
	.string	"hidden"
	.section	.data.rel.local,"aw"
	.align 8
	.type	socket_path, @object
	.size	socket_path, 8
socket_path:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"Socket error"
.LC2:
	.string	"Connect error"
.LC3:
	.string	"partial write\n"
.LC4:
	.string	"Write error"
	.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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -244[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR socket_path[rip], rax
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -232[rbp], eax
	cmp	DWORD PTR -232[rbp], -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L3:
	lea	rax, -224[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -224[rbp], 1
	mov	rax, QWORD PTR socket_path[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	BYTE PTR -222[rbp], 0
	mov	rax, QWORD PTR socket_path[rip]
	lea	rcx, 1[rax]
	lea	rax, -224[rbp]
	add	rax, 2
	add	rax, 1
	mov	edx, 106
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR socket_path[rip]
	lea	rdx, -224[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 107
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
.L6:
	lea	rcx, -224[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -228[rbp]
	movsx	rdx, eax
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -228[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L8
	cmp	DWORD PTR -228[rbp], 0
	jle	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L8
.L9:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L11
.L8:
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], 0
	jg	.L10
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"384474.c"
	.text
	.global	socket_path
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000hidden\000"
	.data
	.align	2
	.type	socket_path, %object
	.size	socket_path, 4
socket_path:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Socket error\000"
	.align	2
.LC2:
	.ascii	"Connect error\000"
	.align	2
.LC3:
	.ascii	"partial write\012\000"
	.align	2
.LC4:
	.ascii	"Write error\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	str	r0, [fp, #-232]
	str	r1, [fp, #-236]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-232]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-236]
	ldr	r3, [r3, #4]
	ldr	r2, .L13+4
	str	r3, [r2]
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L13+8
	bl	perror
	mov	r3, #1
	b	.L11
.L3:
	sub	r3, fp, #220
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-220]	@ movhi
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	strb	r3, [fp, #-218]
	sub	r3, fp, #220
	add	r3, r3, #2
	add	r3, r3, #1
	ldr	r2, .L13+4
	ldr	r2, [r2]
	add	r1, r2, #1
	mov	r2, #106
	mov	r0, r3
	bl	strncpy
	b	.L6
.L5:
	ldr	r3, .L13+4
	ldr	r1, [r3]
	sub	r3, fp, #220
	add	r3, r3, #2
	mov	r2, #107
	mov	r0, r3
	bl	strncpy
.L6:
	sub	r3, fp, #220
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L13+12
	bl	perror
	mov	r3, #1
	b	.L11
.L10:
	ldr	r2, [fp, #-224]
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-228]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-224]
	cmp	r3, r2
	beq	.L8
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	ble	.L9
	ldr	r3, .L13+16
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L13+20
	bl	fwrite
	b	.L8
.L9:
	ldr	r0, .L13+24
	bl	perror
	mov	r3, #1
	b	.L11
.L8:
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bgt	.L10
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	socket_path
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
