	.file	"471228.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	sock, @object
	.size	sock, 4
sock:
	.long	-1
	.section	.rodata
.LC0:
	.string	"this\n\t IS a test buffer"
.LC1:
	.string	"sock_srv"
	.text
	.type	test_socksrv_inet, @function
test_socksrv_inet:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 1
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sock[rip], eax
	mov	eax, DWORD PTR sock[rip]
	test	eax, eax
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L1
.L2:
	mov	eax, DWORD PTR sock[rip]
	lea	rdx, -44[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 8081
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR sock[rip]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L1
	lea	rdi, .LC1[rip]
	call	perror@PLT
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test_socksrv_inet, .-test_socksrv_inet
	.section	.rodata
.LC2:
	.string	"could not create socket.\n"
.LC3:
	.string	"could not bind socket.\n"
	.text
	.type	test_socksrv_unix, @function
test_socksrv_unix:
.LFB7:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR sock[rip], eax
	mov	eax, DWORD PTR sock[rip]
	test	eax, eax
	jns	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L7
.L8:
	lea	rax, -128[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -128[rbp], 1
	lea	rax, -128[rbp]
	add	rax, 2
	movabs	rdx, 7597138674256668020
	movabs	rcx, 8387227955863183224
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	BYTE PTR 16[rax], 0
	mov	eax, DWORD PTR sock[rip]
	lea	rcx, -128[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
.L7:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_socksrv_unix, .-test_socksrv_unix
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	test_socksrv_inet
	call	test_socksrv_unix
	mov	eax, DWORD PTR sock[rip]
	test	eax, eax
	jle	.L13
	mov	eax, DWORD PTR sock[rip]
	mov	edi, eax
	call	close@PLT
.L13:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"471228.c"
	.text
	.data
	.align	2
	.type	sock, %object
	.size	sock, 4
sock:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"this\012\011 IS a test buffer\000"
	.align	2
.LC1:
	.ascii	"sock_srv\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_socksrv_inet, %function
test_socksrv_inet:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L7+4
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L7+8
	str	r3, [r2]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L7+12
	bl	perror
	b	.L1
.L2:
	ldr	r3, .L7+8
	ldr	r0, [r3]
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	bl	setsockopt
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L7+16
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, .L7+8
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L1
	ldr	r0, .L7+12
	bl	perror
	nop
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	.LC0
	.word	sock
	.word	.LC1
	.word	8081
	.size	test_socksrv_inet, .-test_socksrv_inet
	.section	.rodata
	.align	2
.LC3:
	.ascii	"could not create socket.\012\000"
	.align	2
.LC4:
	.ascii	"test_unix_socket\000"
	.align	2
.LC5:
	.ascii	"could not bind socket.\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_socksrv_unix, %function
test_socksrv_unix:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	mov	r3, r0
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L14+12
	bl	fwrite
	b	.L9
.L10:
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	sub	r3, fp, #120
	add	r3, r3, #2
	ldr	r2, .L14+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #17
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L14+4
	ldr	r3, [r3]
	sub	r1, fp, #120
	mov	r2, #110
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L14+20
	bl	fwrite
.L9:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	sock
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	test_socksrv_unix, .-test_socksrv_unix
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	test_socksrv_inet
	bl	test_socksrv_unix
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L17:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	sock
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
