	.file	"685016.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"proot-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXX"
.LC1:
	.string	"socket"
.LC2:
	.string	"the_stack_data/685016.c"
	.align 8
.LC3:
	.string	"strlen(sockname) == sizeof(sockaddr.sun_path)"
.LC4:
	.string	"/tmp"
.LC5:
	.string	"bind"
	.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
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	strdup@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L2
	mov	eax, 125
	jmp	.L8
.L2:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	mktemp@PLT
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
	mov	eax, 125
	jmp	.L8
.L4:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], 0
	jns	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	WORD PTR -144[rbp], 1
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 108
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 41
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L6:
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -142[rbp], rcx
	mov	QWORD PTR -134[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -126[rbp], rcx
	mov	QWORD PTR -118[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -110[rbp], rcx
	mov	QWORD PTR -102[rbp], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR -94[rbp], rcx
	mov	QWORD PTR -86[rbp], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR -78[rbp], rcx
	mov	QWORD PTR -70[rbp], rbx
	mov	rcx, QWORD PTR 80[rax]
	mov	rbx, QWORD PTR 88[rax]
	mov	QWORD PTR -62[rbp], rcx
	mov	QWORD PTR -54[rbp], rbx
	mov	rdx, QWORD PTR 96[rax]
	mov	QWORD PTR -46[rbp], rdx
	mov	eax, DWORD PTR 104[rax]
	mov	DWORD PTR -38[rbp], eax
	lea	rdi, .LC4[rip]
	call	chdir@PLT
	lea	rax, -144[rbp]
	add	rax, 2
	mov	rdi, rax
	call	unlink@PLT
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -144[rbp]
	add	rax, 2
	mov	rdi, rax
	call	unlink@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"685016.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"proot-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
	.ascii	"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
	.ascii	"XXXXXX\000"
	.align	2
.LC1:
	.ascii	"socket\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/685016.c\000"
	.align	2
.LC3:
	.ascii	"strlen(sockname) == sizeof(sockaddr.sun_path)\000"
	.align	2
.LC4:
	.ascii	"/tmp\000"
	.align	2
.LC5:
	.ascii	"bind\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bne	.L2
	mov	r3, #125
	b	.L8
.L2:
	ldr	r0, [fp, #-132]
	bl	mktemp
	ldr	r3, [fp, #-132]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	mov	r3, #125
	b	.L8
.L4:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10+8
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #120
	mov	r0, r3
	mov	r3, #110
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	ldr	r0, [fp, #-132]
	bl	strlen
	mov	r3, r0
	cmp	r3, #108
	beq	.L6
	ldr	r3, .L10+12
	mov	r2, #41
	ldr	r1, .L10+16
	ldr	r0, .L10+20
	bl	__assert_fail
.L6:
	ldr	r2, [fp, #-132]
	sub	r3, fp, #118
	mov	r1, r2
	mov	r2, #108
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L10+24
	bl	chdir
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r0, r3
	bl	unlink
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	bind
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L10+28
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r0, r3
	bl	unlink
	mov	r0, #0
	bl	exit
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	__PRETTY_FUNCTION__.6227
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6227, %object
	.size	__PRETTY_FUNCTION__.6227, 5
__PRETTY_FUNCTION__.6227:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
