	.file	"extr_39924.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%x\n"
.LC1:
	.string	"invalid address"
.LC2:
	.string	"no space"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	mach_task_self@PLT
	xor	esi, esi
	mov	edx, 4096
	mov	edi, eax
	call	vm_deallocate@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	je	.L2
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
.L2:
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	mach_task_self@PLT
	xor	ecx, ecx
	lea	rsi, 4[rsp]
	mov	edx, 4096
	mov	edi, eax
	call	vm_allocate@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	mov	rbp, rax
	je	.L3
	cmp	QWORD PTR KERN_INVALID_ADDRESS[rip], rax
	je	.L12
.L4:
	cmp	QWORD PTR KERN_NO_SPACE[rip], rbp
	je	.L13
.L5:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
.L3:
	xor	eax, eax
.L6:
	mov	BYTE PTR [rax], 65
	add	rax, 1
	cmp	rax, 4096
	jne	.L6
.L7:
	xor	eax, eax
	call	poc@PLT
	xor	eax, eax
	call	poc@PLT
	jmp	.L7
.L12:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L4
.L13:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	KERN_SUCCESS,8,8
	.comm	KERN_NO_SPACE,8,8
	.comm	KERN_INVALID_ADDRESS,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_39924.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%x\012\000"
	.align	2
.LC1:
	.ascii	"invalid address\000"
	.align	2
.LC2:
	.ascii	"no space\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L14
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mach_task_self
	mov	r2, #4096
	mov	r1, #0
	bl	vm_deallocate
	ldr	r5, .L14+4
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L2
	mov	r1, r0
	ldr	r0, .L14+8
	bl	printf
.L2:
	mov	r4, #0
	str	r4, [sp]
	bl	mach_task_self
	mov	r3, r4
	mov	r2, #4096
	mov	r1, sp
	bl	vm_allocate
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r0
	beq	.L3
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L12
.L4:
	ldr	r3, .L14+16
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L13
.L5:
	mov	r1, r4
	ldr	r0, .L14+8
	bl	printf
.L3:
	mov	r3, #0
	mov	r2, #65
.L6:
	strb	r2, [r3], #1
	cmp	r3, #4096
	bne	.L6
.L7:
	bl	poc
	bl	poc
	b	.L7
.L12:
	ldr	r0, .L14+20
	bl	puts
	b	.L4
.L13:
	ldr	r0, .L14+24
	bl	puts
	b	.L5
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	KERN_SUCCESS
	.word	.LC0
	.word	KERN_INVALID_ADDRESS
	.word	KERN_NO_SPACE
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_NO_SPACE,4,4
	.comm	KERN_INVALID_ADDRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
