	.file	"extr_appsearch.c_ACTION_RecurseSearchDirectory.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Searching directory %s for file %s, depth %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"found file, returning %s\n"
	.text
	.p2align 4
	.type	ACTION_RecurseSearchDirectory, @function
ACTION_RecurseSearchDirectory:
.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	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rcx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 88
	mov	QWORD PTR -104[rbp], rdi
	mov	rdi, rcx
	mov	r15, QWORD PTR ERROR_SUCCESS[rip]
	mov	DWORD PTR -84[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	lstrlenW@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	QWORD PTR -96[rbp], rax
	call	lstrlenW@PLT
	mov	rcx, rsp
	mov	r14, rax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L44:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L44
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L45
.L4:
	mov	rdi, QWORD PTR [rbx]
	mov	QWORD PTR -120[rbp], rsp
	call	debugstr_w@PLT
	mov	rdi, r12
	mov	DWORD PTR -112[rbp], eax
	call	debugstr_w@PLT
	mov	ecx, DWORD PTR -84[rbp]
	mov	edx, DWORD PTR -112[rbp]
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	TRACE@PLT
	mov	eax, DWORD PTR -84[rbp]
	test	eax, eax
	js	.L46
	mov	QWORD PTR 0[r13], 0
	lea	rdi, starDotStarW.1997[rip]
	call	strlenW@PLT
	mov	rdi, r14
	mov	esi, eax
	call	max@PLT
	mov	rcx, QWORD PTR -96[rbp]
	lea	edi, 2[rax+rcx]
	call	msi_alloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L47
	mov	rsi, r12
	mov	rdi, rax
	call	lstrcpyW@PLT
	mov	rdi, r14
	call	PathAddBackslashW@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r14
	call	lstrcatW@PLT
	lea	rax, -64[rbp]
	mov	rdi, r14
	mov	rsi, rax
	mov	QWORD PTR -96[rbp], rax
	call	FindFirstFileW@PLT
	cmp	QWORD PTR INVALID_HANDLE_VALUE[rip], rax
	mov	r8, rax
	je	.L8
	mov	eax, DWORD PTR -64[rbp]
	test	DWORD PTR FILE_ATTRIBUTE_DIRECTORY[rip], eax
	je	.L48
.L9:
	mov	rdi, r8
	call	FindClose@PLT
.L8:
	cmp	r15, QWORD PTR ERROR_SUCCESS[rip]
	mov	rax, QWORD PTR 0[r13]
	je	.L49
.L11:
	cmp	r14, rax
	je	.L1
	mov	rdi, r14
	call	msi_free@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L50
	lea	rsp, -40[rbp]
	mov	rax, r15
	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
.L46:
	.cfi_restore_state
	mov	r15, QWORD PTR ERROR_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rsi, QWORD PTR -96[rbp]
	lea	rcx, -72[rbp]
	mov	rdx, r14
	mov	rdi, rbx
	mov	QWORD PTR -112[rbp], r8
	call	ACTION_FileMatchesSig@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r8, QWORD PTR -112[rbp]
	mov	r15, rax
	jne	.L9
	cmp	QWORD PTR -72[rbp], 0
	je	.L9
	mov	rdi, r14
	call	debugstr_w@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	TRACE@PLT
	mov	QWORD PTR 0[r13], r14
	mov	r8, QWORD PTR -112[rbp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L47:
	mov	r15, QWORD PTR ERROR_OUTOFMEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L49:
	test	rax, rax
	jne	.L11
	mov	rsi, r12
	mov	rdi, r14
	call	lstrcpyW@PLT
	mov	rdi, r14
	call	PathAddBackslashW@PLT
	lea	rsi, starDotStarW.1997[rip]
	mov	rdi, r14
	call	lstrcatW@PLT
	mov	rsi, QWORD PTR -96[rbp]
	mov	rdi, r14
	call	FindFirstFileW@PLT
	cmp	QWORD PTR INVALID_HANDLE_VALUE[rip], rax
	mov	QWORD PTR -112[rbp], rax
	je	.L42
	mov	eax, DWORD PTR -64[rbp]
	test	DWORD PTR FILE_ATTRIBUTE_DIRECTORY[rip], eax
	jne	.L51
.L13:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	mov	DWORD PTR -84[rbp], eax
.L15:
	cmp	QWORD PTR ERROR_SUCCESS[rip], r15
	jne	.L18
	cmp	QWORD PTR 0[r13], 0
	jne	.L18
	mov	rsi, QWORD PTR -96[rbp]
	mov	rdi, QWORD PTR -112[rbp]
	call	FindNextFileW@PLT
	test	rax, rax
	je	.L18
	mov	esi, DWORD PTR szDot[rip]
	mov	edi, DWORD PTR -60[rbp]
	call	strcmpW@PLT
	test	rax, rax
	je	.L15
	mov	esi, DWORD PTR szDotDot[rip]
	mov	edi, DWORD PTR -60[rbp]
	call	strcmpW@PLT
	test	rax, rax
	je	.L15
	mov	rdi, QWORD PTR -120[rbp]
	mov	rsi, r12
	call	lstrcpyW@PLT
	mov	esi, DWORD PTR -60[rbp]
	mov	rdi, QWORD PTR -120[rbp]
	call	PathAppendW@PLT
	mov	eax, DWORD PTR -64[rbp]
	test	DWORD PTR FILE_ATTRIBUTE_DIRECTORY[rip], eax
	je	.L15
	mov	r8d, DWORD PTR -84[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, QWORD PTR -104[rbp]
	call	ACTION_RecurseSearchDirectory
	mov	r15, rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, QWORD PTR -112[rbp]
	call	FindClose@PLT
.L42:
	mov	rax, QWORD PTR 0[r13]
	jmp	.L11
.L51:
	mov	esi, DWORD PTR szDot[rip]
	mov	edi, DWORD PTR -60[rbp]
	call	strcmpW@PLT
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR szDotDot[rip]
	mov	edi, DWORD PTR -60[rbp]
	call	strcmpW@PLT
	test	rax, rax
	je	.L13
	mov	r15, QWORD PTR -120[rbp]
	mov	rsi, r12
	mov	rdi, r15
	call	lstrcpyW@PLT
	mov	esi, DWORD PTR -60[rbp]
	mov	rdi, r15
	call	PathAppendW@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	rdi, QWORD PTR -104[rbp]
	mov	rcx, r15
	mov	rdx, rbx
	mov	rsi, r13
	lea	r8d, -1[rax]
	call	ACTION_RecurseSearchDirectory
	mov	r15, rax
	jmp	.L13
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ACTION_RecurseSearchDirectory, .-ACTION_RecurseSearchDirectory
	.section	.rodata
	.type	starDotStarW.1997, @object
	.size	starDotStarW.1997, 4
starDotStarW.1997:
	.string	"*.*"
	.comm	szDotDot,4,4
	.comm	szDot,4,4
	.comm	MAX_PATH,4,4
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.comm	ERROR_SUCCESS,8,8
	.comm	ERROR_OUTOFMEMORY,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_appsearch.c_ACTION_RecurseSearchDirectory.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Searching directory %s for file %s, depth %d\012\000"
	.align	2
.LC1:
	.ascii	"found file, returning %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ACTION_RecurseSearchDirectory, %function
ACTION_RecurseSearchDirectory:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r3, r0
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r8, .L48
	str	r3, [fp, #-64]
	ldr	r3, .L48+4
	str	r1, [fp, #-56]
	mov	r0, r5
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r7, [r8]
	bl	lstrlenW
	mov	r6, r0
	ldr	r0, [r4]
	bl	lstrlenW
	ldr	r3, .L48+8
	mov	r9, r0
	ldr	r3, [r3]
	mov	r0, r5
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	debugstr_w
	mov	r10, r0
	ldr	r0, [r4]
	bl	debugstr_w
	ldr	r3, [fp, #4]
	mov	r2, r0
	mov	r1, r10
	ldr	r0, .L48+12
	bl	TRACE
	ldr	r3, [fp, #4]
	cmp	r3, #0
	add	r3, sp, #8
	str	r3, [fp, #-60]
	blt	.L42
	mov	r3, #0
	ldr	r2, [fp, #-56]
	ldr	r0, .L48+16
	str	r3, [r2]
	bl	strlenW
	mov	r1, r0
	mov	r0, r9
	bl	max
	add	r6, r6, #2
	add	r0, r6, r0
	bl	msi_alloc
	subs	r6, r0, #0
	beq	.L43
	mov	r1, r5
	bl	lstrcpyW
	mov	r0, r6
	bl	PathAddBackslashW
	ldr	r1, [r4]
	mov	r0, r6
	bl	lstrcatW
	mov	r0, r6
	sub	r1, fp, #48
	bl	FindFirstFileW
	ldr	r10, .L48+20
	mov	r9, r0
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L48+24
	ldr	r2, [fp, #-48]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L44
.L6:
	mov	r0, r9
	bl	FindClose
.L5:
	ldr	r2, [r8]
	ldr	r3, [fp, #-56]
	cmp	r7, r2
	ldr	r3, [r3]
	beq	.L45
.L8:
	cmp	r6, r3
	beq	.L1
	mov	r0, r6
	bl	msi_free
.L1:
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	ldr	r7, [r8]
	b	.L1
.L43:
	ldr	r3, .L48+28
	ldr	r7, [r3]
	b	.L1
.L44:
	sub	r3, fp, #52
	mov	r2, r6
	mov	r0, r4
	sub	r1, fp, #48
	bl	ACTION_FileMatchesSig
	ldr	r3, [r8]
	mov	r7, r0
	cmp	r3, r0
	bne	.L6
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L6
	mov	r0, r6
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L48+32
	bl	TRACE
	ldr	r3, [fp, #-56]
	str	r6, [r3]
	b	.L6
.L45:
	cmp	r3, #0
	bne	.L8
	mov	r1, r5
	mov	r0, r6
	bl	lstrcpyW
	mov	r0, r6
	bl	PathAddBackslashW
	ldr	r1, .L48+16
	mov	r0, r6
	bl	lstrcatW
	mov	r0, r6
	sub	r1, fp, #48
	bl	FindFirstFileW
	ldr	r3, [r10]
	mov	r9, r0
	cmp	r3, r0
	beq	.L40
	ldr	r3, .L48+24
	ldr	r2, [fp, #-48]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L47
.L10:
	ldr	r10, .L48+36
.L12:
	ldr	r3, [r8]
	cmp	r3, r7
	bne	.L15
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	mov	r0, r9
	sub	r1, fp, #48
	bl	FindNextFileW
	cmp	r0, #0
	beq	.L15
	ldr	r1, [r10]
	ldr	r0, [fp, #-44]
	bl	strcmpW
	cmp	r0, #0
	beq	.L12
	ldr	r3, .L48+40
	ldr	r0, [fp, #-44]
	ldr	r1, [r3]
	bl	strcmpW
	cmp	r0, #0
	beq	.L12
	mov	r1, r5
	ldr	r0, [fp, #-60]
	bl	lstrcpyW
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-60]
	bl	PathAppendW
	ldr	r3, .L48+24
	ldr	r2, [fp, #-48]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L12
	ldr	r3, [fp, #4]
	mov	r2, r4
	sub	r3, r3, #1
	str	r3, [sp]
	ldr	r1, [fp, #-56]
	ldr	r3, [fp, #-60]
	ldr	r0, [fp, #-64]
	bl	ACTION_RecurseSearchDirectory
	mov	r7, r0
	b	.L12
.L15:
	mov	r0, r9
	bl	FindClose
.L40:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	b	.L8
.L47:
	ldr	r3, .L48+36
	ldr	r0, [fp, #-44]
	ldr	r1, [r3]
	bl	strcmpW
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L48+40
	ldr	r0, [fp, #-44]
	ldr	r1, [r3]
	bl	strcmpW
	cmp	r0, #0
	beq	.L10
	ldr	r7, [fp, #-60]
	mov	r1, r5
	mov	r0, r7
	bl	lstrcpyW
	mov	r0, r7
	ldr	r1, [fp, #-44]
	bl	PathAppendW
	ldr	r3, [fp, #4]
	mov	r2, r4
	sub	r3, r3, #1
	str	r3, [sp]
	ldr	r1, [fp, #-56]
	mov	r3, r7
	ldr	r0, [fp, #-64]
	bl	ACTION_RecurseSearchDirectory
	mov	r7, r0
	b	.L10
.L46:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	ERROR_SUCCESS
	.word	.LC2
	.word	MAX_PATH
	.word	.LC0
	.word	.LANCHOR0
	.word	INVALID_HANDLE_VALUE
	.word	FILE_ATTRIBUTE_DIRECTORY
	.word	ERROR_OUTOFMEMORY
	.word	.LC1
	.word	szDot
	.word	szDotDot
	.size	ACTION_RecurseSearchDirectory, .-ACTION_RecurseSearchDirectory
	.comm	szDotDot,4,4
	.comm	szDot,4,4
	.comm	MAX_PATH,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	ERROR_OUTOFMEMORY,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	starDotStarW.4281, %object
	.size	starDotStarW.4281, 4
starDotStarW.4281:
	.ascii	"*.*\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
