	.file	"810810.c"
	.intel_syntax noprefix
	.text
	.type	strendswith, @function
strendswith:
.LFB6:
	.cfi_startproc
	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 -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jb	.L2
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strendswith, .-strendswith
	.section	.rodata
.LC0:
	.string	"libc.so.6"
.LC1:
	.string	"execv"
.LC2:
	.string	"WINE64LDLIBRARY"
.LC3:
	.string	"wine64-preloader"
	.text
	.globl	execv
	.type	execv, @function
execv:
.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, 336
	mov	QWORD PTR -328[rbp], rdi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -336[rbp]
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR handle.1[rip]
	test	rax, rax
	jne	.L6
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	dlopen@PLT
	mov	QWORD PTR handle.1[rip], rax
	mov	rax, QWORD PTR handle.1[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR old_execv.0[rip], rax
.L6:
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L9
	mov	rcx, QWORD PTR old_execv.0[rip]
	mov	rdx, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L12
.L10:
	add	QWORD PTR -304[rbp], 8
.L9:
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR -304[rbp]
	sub	rax, QWORD PTR -336[rbp]
	add	rax, 16
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	sub	rax, QWORD PTR -336[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -288[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -336[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	QWORD PTR -280[rbp], 0
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -328[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strendswith
	test	eax, eax
	je	.L11
	mov	rdx, QWORD PTR -328[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1869572191
	mov	WORD PTR 4[rax], 107
	lea	rax, -272[rbp]
	mov	QWORD PTR -296[rbp], rax
.L11:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR old_execv.0[rip]
	mov	rdx, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	DWORD PTR -308[rbp], eax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -308[rbp]
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	execv, .-execv
	.local	handle.1
	.comm	handle.1,8,8
	.local	old_execv.0
	.comm	old_execv.0,8,8
	.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	"810810.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strendswith, %function
strendswith:
	@ 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	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bcc	.L2
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strendswith, .-strendswith
	.section	.rodata
	.align	2
.LC0:
	.ascii	"libc.so.6\000"
	.align	2
.LC1:
	.ascii	"execv\000"
	.align	2
.LC2:
	.ascii	"WINE64LDLIBRARY\000"
	.align	2
.LC3:
	.ascii	"wine64-preloader\000"
	.align	2
.LC4:
	.ascii	"_hook\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execv
	.syntax unified
	.arm
	.fpu softvfp
	.type	execv, %function
execv:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-292]
	str	r3, [fp, #-284]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	mov	r1, #1
	ldr	r0, .L14+8
	bl	dlopen
	mov	r3, r0
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r1, .L14+12
	mov	r0, r3
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+16
	str	r2, [r3]
.L6:
	ldr	r0, .L14+20
	bl	getenv
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r1, [fp, #-292]
	ldr	r0, [fp, #-288]
	blx	r3
	mov	r3, r0
	b	.L12
.L10:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	str	r3, [fp, #-284]
.L9:
	ldr	r3, [fp, #-284]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r2, [fp, #-284]
	ldr	r3, [fp, #-292]
	sub	r3, r2, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	add	r0, r3, #4
	ldr	r2, [fp, #-284]
	ldr	r3, [fp, #-292]
	sub	r3, r2, r3
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-292]
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L14+24
	ldr	r0, [fp, #-288]
	bl	strendswith
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #264
	ldr	r1, [fp, #-288]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #264
	add	r3, r3, r2
	ldr	r2, .L14+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #264
	str	r3, [fp, #-280]
.L11:
	ldr	r3, [fp, #-276]
	ldr	r2, [fp, #-280]
	str	r2, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-280]
	blx	r3
	str	r0, [fp, #-268]
	ldr	r0, [fp, #-276]
	bl	free
	ldr	r3, [fp, #-268]
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	handle.5318
	.word	.LC0
	.word	.LC1
	.word	old_execv.5319
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	execv, .-execv
	.local	handle.5318
	.comm	handle.5318,4,4
	.local	old_execv.5319
	.comm	old_execv.5319,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
