	.file	"3642.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/proc/self/exe"
	.text
	.type	executable, @function
executable:
.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	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -32[rbp], 0
.L6:
	add	QWORD PTR -24[rbp], 32
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	cmp	QWORD PTR -32[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
.L3:
	mov	eax, 0
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	readlink@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	js	.L5
	mov	rax, QWORD PTR -24[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L6
.L5:
	cmp	QWORD PTR -16[rbp], 0
	js	.L7
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	executable, .-executable
	.section	.rodata
.LC1:
	.string	": "
.LC2:
	.string	""
.LC3:
	.string	"%s%s"
.LC4:
	.string	"the_stack_data/3642.c"
	.align 8
.LC5:
	.string	"cnt > 0 && (size_t)cnt < sizeof(buf)"
	.text
	.globl	setproctitle
	.type	setproctitle, @function
setproctitle:
.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, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L9
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L9:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -272[rbp], 0
	mov	DWORD PTR -268[rbp], 0
	cmp	QWORD PTR -280[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L10
	mov	DWORD PTR -268[rbp], 1
	mov	rax, QWORD PTR -280[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
.L10:
	cmp	QWORD PTR -280[rbp], 0
	je	.L12
	mov	eax, DWORD PTR -268[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	lea	rax, .LC1[rip]
	jmp	.L13
.L12:
	lea	rax, .LC2[rip]
.L13:
	mov	QWORD PTR -264[rbp], rax
	call	executable
	mov	QWORD PTR -256[rbp], rax
	cmp	QWORD PTR -256[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -264[rbp]
	lea	rax, -224[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, 32
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -272[rbp], eax
	mov	eax, DWORD PTR -272[rbp]
	cmp	eax, 31
	jbe	.L14
	mov	DWORD PTR -272[rbp], 31
.L14:
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	free@PLT
.L11:
	cmp	QWORD PTR -280[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -268[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L15
	mov	DWORD PTR -248[rbp], 8
	mov	DWORD PTR -244[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -240[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -232[rbp], rax
	mov	eax, DWORD PTR -268[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -280[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -272[rbp]
	cdqe
	mov	ecx, 32
	mov	rsi, rcx
	sub	rsi, rax
	mov	eax, DWORD PTR -272[rbp]
	cdqe
	lea	rcx, -224[rbp]
	lea	rdi, [rcx+rax]
	lea	rax, -248[rbp]
	mov	rcx, rax
	call	vsnprintf@PLT
	mov	DWORD PTR -272[rbp], eax
.L15:
	cmp	DWORD PTR -272[rbp], 0
	jle	.L21
	cmp	DWORD PTR -272[rbp], 0
	jle	.L17
	mov	eax, DWORD PTR -272[rbp]
	cmp	eax, 31
	jbe	.L20
.L17:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 82
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L20:
	lea	rax, -224[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	mov	eax, 0
	call	prctl@PLT
.L21:
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setproctitle, .-setproctitle
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 13
__PRETTY_FUNCTION__.0:
	.string	"setproctitle"
	.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	"3642.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/self/exe\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	executable, %function
executable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	realloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [fp, #-20]
	bl	free
.L3:
	mov	r3, #0
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L8
	bl	readlink
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L5
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L6
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L7
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	b	.L4
.L7:
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	executable, .-executable
	.section	.rodata
	.align	2
.LC1:
	.ascii	": \000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"%s%s\000"
	.align	2
.LC4:
	.ascii	"the_stack_data/3642.c\000"
	.align	2
.LC5:
	.ascii	"cnt > 0 && (size_t)cnt < sizeof(buf)\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setproctitle
	.syntax unified
	.arm
	.fpu softvfp
	.type	setproctitle, %function
setproctitle:
	@ args = 4, pretend = 16, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, [fp, #4]
	str	r3, [fp, #-64]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L11:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L23+4
	b	.L14
.L13:
	ldr	r3, .L23+8
.L14:
	str	r3, [fp, #-48]
	bl	executable
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L12
	ldr	r0, [fp, #-44]
	bl	__xpg_basename
	mov	r2, r0
	sub	r0, fp, #40
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L23+12
	mov	r1, #32
	bl	snprintf
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #31
	bls	.L15
	mov	r3, #31
	str	r3, [fp, #-56]
.L15:
	ldr	r0, [fp, #-44]
	bl	free
.L12:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	add	r3, fp, #8
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	sub	r2, fp, #40
	add	r0, r2, r3
	ldr	r3, [fp, #-56]
	rsb	r1, r3, #32
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-64]
	add	r2, r2, r3
	ldr	r3, [fp, #-60]
	bl	vsnprintf
	str	r0, [fp, #-56]
.L16:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L22
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	ble	.L18
	ldr	r3, [fp, #-56]
	cmp	r3, #31
	bls	.L21
.L18:
	ldr	r3, .L23+16
	mov	r2, #82
	ldr	r1, .L23+20
	ldr	r0, .L23+24
	bl	__assert_fail
.L21:
	sub	r1, fp, #40
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #15
	bl	prctl
.L22:
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L24:
	.align	2
.L23:
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5831
	.word	.LC4
	.word	.LC5
	.size	setproctitle, .-setproctitle
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5831, %object
	.size	__PRETTY_FUNCTION__.5831, 13
__PRETTY_FUNCTION__.5831:
	.ascii	"setproctitle\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
