	.file	"770482.c"
	.intel_syntax noprefix
	.text
	.globl	_brk_start
	.bss
	.align 8
	.type	_brk_start, @object
	.size	_brk_start, 8
_brk_start:
	.zero	8
	.globl	_brk_end
	.align 8
	.type	_brk_end, @object
	.size	_brk_end, 8
_brk_end:
	.zero	8
	.section	.rodata
.LC0:
	.string	"wrong1"
	.text
	.globl	extend_brk
	.type	extend_brk, @function
extend_brk:
.LFB0:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR _brk_start[rip]
	test	rax, rax
	sete	al
	movzx	eax, al
	test	rax, rax
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L2:
	mov	rdx, QWORD PTR _brk_end[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	not	rax
	and	rax, rdx
	mov	QWORD PTR _brk_end[rip], rax
	mov	rax, QWORD PTR _brk_end[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR _brk_end[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR _brk_end[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	extend_brk, .-extend_brk
	.section	.rodata
.LC1:
	.string	"wrong2"
.LC2:
	.string	"okay"
	.text
	.type	get_args, @function
get_args:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 1
	je	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L7
.L5:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	get_args, .-get_args
	.globl	bla
	.type	bla, @function
bla:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 42
	cmp	DWORD PTR -4[rbp], 0
	setne	al
	movzx	eax, al
	mov	esi, 4
	mov	edi, eax
	call	get_args
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bla, .-bla
	.globl	chk
	.type	chk, @function
chk:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	chk, .-chk
	.section	.rodata
.LC3:
	.string	"wrong4"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR _brk_start[rip], 1024
	mov	QWORD PTR _brk_end[rip], 1024
	mov	esi, 16
	mov	edi, 4096
	call	extend_brk
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L13
.L12:
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L13:
	call	bla
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"770482.c"
	.text
	.comm	_brk_start,4,4
	.comm	_brk_end,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wrong1\000"
	.text
	.align	2
	.global	extend_brk
	.syntax unified
	.arm
	.fpu softvfp
	.type	extend_brk, %function
extend_brk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L4+4
	bl	puts
.L2:
	ldr	r3, .L4+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	mvn	r3, r3
	and	r3, r3, r2
	ldr	r2, .L4+8
	str	r3, [r2]
	ldr	r3, .L4+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L4+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L4+8
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	_brk_start
	.word	.LC0
	.word	_brk_end
	.size	extend_brk, .-extend_brk
	.section	.rodata
	.align	2
.LC1:
	.ascii	"wrong2\000"
	.align	2
.LC2:
	.ascii	"okay\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_args, %function
get_args:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L7
	ldr	r0, .L10
	bl	puts
	b	.L9
.L7:
	ldr	r0, .L10+4
	bl	puts
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC2
	.size	get_args, .-get_args
	.align	2
	.global	bla
	.syntax unified
	.arm
	.fpu softvfp
	.type	bla, %function
bla:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #42
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, #4
	mov	r0, r3
	bl	get_args
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bla, .-bla
	.align	2
	.global	chk
	.syntax unified
	.arm
	.fpu softvfp
	.type	chk, %function
chk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	chk, .-chk
	.section	.rodata
	.align	2
.LC3:
	.ascii	"wrong4\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L19
	mov	r2, #1024
	str	r2, [r3]
	ldr	r3, .L19+4
	mov	r2, #1024
	str	r2, [r3]
	mov	r1, #16
	mov	r0, #4096
	bl	extend_brk
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L19+8
	bl	puts
	b	.L17
.L16:
	ldr	r0, .L19+12
	bl	puts
.L17:
	bl	bla
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	_brk_start
	.word	_brk_end
	.word	.LC3
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
