	.file	"598292.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 160
buf:
	.zero	160
	.text
	.globl	sub2
	.type	sub2, @function
sub2:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, buf[rip]
	mov	rcx, QWORD PTR 8[rdx]
	mov	rsi, QWORD PTR [rdx]
	xor	eax, eax
	rdsspq	rax
	sub	rax, QWORD PTR 16[rdx]
	test	rax, rax
	je	.L2
	neg	rax
	shr	rax, 3
	cmp	rax, 255
	jbe	.L3
	mov	edi, 255
.L4:
	incsspq	rdi
	sub	rax, 255
	cmp	rax, 255
	ja	.L4
.L3:
	incsspq	rax
.L2:
	mov	rsp, QWORD PTR 24[rdx]
	mov	rbp, rsi
	jmp	rcx
	.cfi_endproc
.LFE0:
	.size	sub2, .-sub2
	.section	.rodata
.LC0:
	.string	"test"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, 16
	sub	rax, 1
	add	rax, 28
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L6:
	cmp	rsp, rdx
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
.L7:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L8
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L8:
	mov	rax, rsp
	add	rax, 15
	shr	rax, 4
	sal	rax, 4
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], 1953719668
	mov	BYTE PTR 4[rax], 0
	lea	rax, buf[rip]
	mov	QWORD PTR [rax], rbp
	lea	rdx, .L9[rip]
	mov	QWORD PTR 8[rax], rdx
	xor	edx, edx
	rdsspq	rdx
	mov	QWORD PTR 16[rax], rdx
	mov	QWORD PTR 24[rax], rsp
	mov	eax, 0
	jmp	.L10
.L9:
	endbr64
	mov	eax, 1
.L10:
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L12
	call	abort@PLT
.L12:
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	sal	rax, 2
	lea	rdx, 8[rax]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L13:
	cmp	rsp, rdx
	je	.L14
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L13
.L14:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L15
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L15:
	mov	rax, rsp
	add	rax, 15
	shr	rax, 4
	sal	rax, 4
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -76[rbp], 1
.L16:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -76[rbp], eax
	jl	.L17
.L18:
	call	sub2
	jmp	.L18
	.cfi_endproc
.LFE1:
	.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	"598292.c"
	.text
	.comm	buf,80,4
	.align	2
	.global	sub2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sub2, %function
sub2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L2
	ldr	r2, [r3, #4]
	ldr	r1, [r3]
	ldr	sp, [r3, #8]
	mov	fp, r1
	mov	pc, r2	@ indirect register jump
.L3:
	.align	2
.L2:
	.word	buf
	.size	sub2, .-sub2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"test\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.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	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	sub	sp, sp, #24
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r2, .L13+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L13+8
	sub	r2, fp, #36
	str	r2, [r3]
	ldr	r2, .L13+12
	str	r2, [r3, #4]
	str	sp, [r3, #8]
	mov	r3, #0
	b	.L6
.L5:
	add	fp, fp, #36
	mov	r3, #1
.L6:
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L13+4
	ldr	r0, [fp, #-48]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	bl	abort
.L8:
	mov	r0, #0
	bl	exit
.L7:
	ldr	r3, [fp, #-48]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L9
.L10:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L9:
	ldr	r3, [fp, #-48]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	blt	.L10
.L11:
	bl	sub2
	b	.L11
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	buf
	.word	.L5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
