	.file	"extr_ldconfig.c_dodir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.globl	dodir
	.type	dodir, @function
dodir:
.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, rdi
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPATHLEN[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L36:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L36
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L37
.L4:
	movsx	rax, DWORD PTR MAXDEWEY[rip]
	mov	rcx, rsp
	mov	rbx, rsp
	mov	r14, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L38:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L38
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L39
.L7:
	mov	rdi, r13
	mov	DWORD PTR -80[rbp], esi
	sal	r14d, 2
	mov	QWORD PTR -72[rbp], rsp
	call	opendir@PLT
	mov	esi, DWORD PTR -80[rbp]
	test	rax, rax
	mov	r12, rax
	je	.L40
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	readdir@PLT
	mov	r15, rax
	test	rax, rax
	je	.L41
	mov	rsi, QWORD PTR [r15]
	cmp	BYTE PTR [rsi], 108
	jne	.L9
	cmp	BYTE PTR 1[rsi], 105
	jne	.L9
	cmp	BYTE PTR 2[rsi], 98
	jne	.L9
	add	rsi, 3
	mov	rdi, rbx
	call	strcpy@PLT
	mov	rdi, rbx
	call	strlen@PLT
	cmp	eax, 3
	jle	.L9
	cdqe
	lea	rdx, -4[rbx+rax]
	cmp	rbx, rdx
	jb	.L17
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	sub	rdx, 1
	cmp	rbx, rdx
	je	.L9
.L17:
	cmp	BYTE PTR [rdx], 46
	jne	.L15
	cmp	BYTE PTR 1[rdx], 115
	jne	.L15
	cmp	BYTE PTR 2[rdx], 111
	jne	.L15
	cmp	BYTE PTR 3[rdx], 46
	jne	.L15
	cmp	rbx, rdx
	jnb	.L9
	mov	BYTE PTR [rdx], 0
	movsx	edi, BYTE PTR 4[rdx]
	mov	QWORD PTR -80[rbp], rdx
	call	isdigit@PLT
	test	eax, eax
	je	.L9
	mov	edi, DWORD PTR -72[rbp]
	mov	esi, r14d
	call	bzero@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR -72[rbp]
	lea	rsi, 4[rdx]
	call	getdewey@PLT
	mov	r8d, eax
	cmp	eax, 1
	jle	.L9
	mov	rcx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR [r15]
	mov	rdx, rbx
	mov	rdi, r13
	call	enter@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L37:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, r12
	call	closedir@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L42
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L40:
	.cfi_restore_state
	test	esi, esi
	je	.L10
	mov	rcx, QWORD PTR ENOENT[rip]
	xor	eax, eax
	cmp	QWORD PTR errno[rip], rcx
	je	.L1
.L10:
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	call	warn@PLT
	mov	eax, -1
	jmp	.L1
.L39:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dodir, .-dodir
	.comm	errno,8,8
	.comm	MAXPATHLEN,4,4
	.comm	MAXDEWEY,4,4
	.comm	ENOENT,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_ldconfig.c_dodir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dodir
	.syntax unified
	.arm
	.fpu softvfp
	.type	dodir, %function
dodir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r2, .L27
	ldr	r3, .L27+4
	ldr	r7, [r2]
	ldr	r3, [r3]
	lsl	r7, r7, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	add	r2, r7, #7
	sub	sp, sp, r3
	bic	r3, r2, #7
	add	r6, sp, #8
	sub	sp, sp, r3
	ldr	r3, .L27+8
	mov	r10, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r8, r0
	bl	opendir
	subs	r5, r0, #0
	beq	.L22
	mov	r10, #0
	add	r9, sp, #8
.L2:
	mov	r0, r5
	bl	readdir
	subs	r4, r0, #0
	beq	.L25
	ldr	r1, [r4]
	ldrb	r3, [r1]	@ zero_extendqisi2
	cmp	r3, #108
	bne	.L2
	ldrb	r3, [r1, #1]	@ zero_extendqisi2
	cmp	r3, #105
	bne	.L2
	ldrb	r3, [r1, #2]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L2
	add	r1, r1, #3
	mov	r0, r6
	bl	strcpy
	mov	r0, r6
	bl	strlen
	cmp	r0, #3
	ble	.L2
	sub	r3, r0, #4
	add	r3, r6, r3
	cmp	r6, r3
	bcc	.L10
	b	.L2
.L8:
	cmp	r3, r6
	beq	.L2
.L10:
	ldrb	r1, [r3]	@ zero_extendqisi2
	mov	r2, r3
	cmp	r1, #46
	sub	r3, r3, #1
	bne	.L8
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	cmp	r1, #115
	bne	.L8
	ldrb	r1, [r3, #3]	@ zero_extendqisi2
	cmp	r1, #111
	bne	.L8
	ldrb	r1, [r3, #4]	@ zero_extendqisi2
	cmp	r1, #46
	bne	.L8
	cmp	r6, r2
	bcs	.L2
	ldrb	r0, [r2, #4]	@ zero_extendqisi2
	strb	r10, [r2]
	str	r2, [fp, #-48]
	bl	isdigit
	cmp	r0, #0
	beq	.L2
	mov	r1, r7
	mov	r0, r9
	bl	bzero
	ldr	r2, [fp, #-48]
	mov	r0, r9
	add	r1, r2, #4
	bl	getdewey
	cmp	r0, #1
	ble	.L2
	ldr	r1, [r4]
	mov	r3, r9
	str	r0, [sp]
	mov	r2, r6
	mov	r0, r8
	bl	enter
	b	.L2
.L25:
	mov	r0, r5
	bl	closedir
	mov	r0, r4
.L1:
	ldr	r3, .L27+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	cmp	r10, #0
	beq	.L3
	ldr	r2, .L27+12
	ldr	r3, .L27+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r0, r5
	beq	.L1
.L3:
	mov	r1, r8
	ldr	r0, .L27+20
	bl	warn
	mvn	r0, #0
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	MAXDEWEY
	.word	MAXPATHLEN
	.word	.LC1
	.word	errno
	.word	ENOENT
	.word	.LC0
	.size	dodir, .-dodir
	.comm	errno,4,4
	.comm	MAXPATHLEN,4,4
	.comm	MAXDEWEY,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
