	.file	"extr_exec.c__sys_execve.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"execve(\"%s\", {"
.LC1:
	.string	"\"%s\", "
.LC2:
	.string	"})"
	.text
	.p2align 4
	.globl	_sys_execve
	.type	_sys_execve, @function
_sys_execve:
.LFB0:
	.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, edx
	push	r12
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	mov	edx, r8d
	mov	rsi, rsp
	mov	rbx, rsp
	call	user_read_string@PLT
	mov	r14d, DWORD PTR _EFAULT[rip]
	test	rax, rax
	je	.L29
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	lea	rsp, -40[rbp]
	mov	eax, r14d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edi, DWORD PTR ARGV_MAX[rip]
	mov	r14d, DWORD PTR _ENOMEM[rip]
	call	malloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR ARGV_MAX[rip]
	mov	rsi, rax
	mov	edi, r12d
	call	user_read_string_array@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L7
	mov	edi, DWORD PTR ARGV_MAX[rip]
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	mov	edx, DWORD PTR ARGV_MAX[rip]
	mov	rsi, rax
	mov	edi, r13d
	call	user_read_string_array@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L8
	xor	eax, eax
	mov	rsi, rsp
	lea	rdi, .LC0[rip]
	call	STRACE@PLT
	cmp	BYTE PTR [r15], 0
	je	.L9
	mov	r13, r15
	lea	r14, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, r13
	mov	rdi, r14
	xor	eax, eax
	call	STRACE@PLT
	mov	rdi, r13
	call	strlen@PLT
	lea	r13, 1[r13+rax]
	cmp	BYTE PTR 0[r13], 0
	jne	.L10
.L9:
	cmp	BYTE PTR [r12], 0
	je	.L11
	mov	r13, r12
	lea	r14, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, r13
	mov	rdi, r14
	xor	eax, eax
	call	STRACE@PLT
	mov	rdi, r13
	call	strlen@PLT
	lea	r13, 1[r13+rax]
	cmp	BYTE PTR 0[r13], 0
	jne	.L12
.L11:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	STRACE@PLT
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, rbx
	call	sys_execve@PLT
	mov	r14d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	call	free@PLT
.L7:
	mov	rdi, r15
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_sys_execve, .-_sys_execve
	.comm	_ENOMEM,4,4
	.comm	_EFAULT,4,4
	.comm	MAX_PATH,4,4
	.comm	ARGV_MAX,4,4
	.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_exec.c__sys_execve.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"execve(\"%s\", {\000"
	.align	2
.LC1:
	.ascii	"\"%s\", \000"
	.align	2
.LC2:
	.ascii	"})\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_sys_execve
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sys_execve, %function
_sys_execve:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L28
	mov	r6, r1
	ldr	r1, [r3]
	mov	r8, r2
	add	r3, r1, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L28+4
	mov	r2, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	user_read_string
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L28+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r9, .L28+12
	ldr	r3, .L28+16
	ldr	r10, [r9]
	ldr	r4, [r3]
	mov	r0, r10
	bl	malloc
	subs	r5, r0, #0
	beq	.L4
	mov	r2, r10
	mov	r0, r6
	mov	r1, r5
	bl	user_read_string_array
	subs	r4, r0, #0
	blt	.L4
	ldr	r9, [r9]
	mov	r0, r9
	bl	malloc
	subs	r6, r0, #0
	beq	.L5
	mov	r2, r9
	mov	r0, r8
	mov	r1, r6
	bl	user_read_string_array
	subs	r4, r0, #0
	blt	.L5
	mov	r1, sp
	ldr	r0, .L28+20
	bl	STRACE
	ldrb	r3, [r5]	@ zero_extendqisi2
	mov	r7, sp
	cmp	r3, #0
	beq	.L6
	mov	r4, r5
	ldr	r8, .L28+24
.L7:
	mov	r1, r4
	mov	r0, r8
	bl	STRACE
	mov	r0, r4
	bl	strlen
	add	r0, r0, #1
	ldrb	r3, [r4, r0]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
.L6:
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	mov	r4, r6
	ldr	r8, .L28+24
.L9:
	mov	r1, r4
	mov	r0, r8
	bl	STRACE
	mov	r0, r4
	bl	strlen
	add	r0, r0, #1
	ldrb	r3, [r4, r0]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r0, .L28+28
	bl	STRACE
	mov	r2, r6
	mov	r1, r5
	mov	r0, r7
	bl	sys_execve
	mov	r4, r0
	b	.L1
.L5:
	mov	r0, r6
	bl	free
.L4:
	mov	r0, r5
	bl	free
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	MAX_PATH
	.word	.LC3
	.word	_EFAULT
	.word	ARGV_MAX
	.word	_ENOMEM
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	_sys_execve, .-_sys_execve
	.comm	_ENOMEM,4,4
	.comm	_EFAULT,4,4
	.comm	MAX_PATH,4,4
	.comm	ARGV_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
