	.file	"extr_map.c_adfs_map_lookup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid fragment 0x%04x (zone = %d, max = %d)"
	.align 8
.LC1:
	.string	"fragment 0x%04x at offset %d not found in map"
	.text
	.p2align 4
	.globl	adfs_map_lookup
	.type	adfs_map_lookup, @function
adfs_map_lookup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	ADFS_SB@PLT
	cmp	DWORD PTR ADFS_ROOT_FRAG[rip], r12d
	mov	rbx, rax
	je	.L9
	mov	eax, r12d
	xor	edx, edx
	mov	r8d, DWORD PTR [rbx]
	div	DWORD PTR 4[rbx]
	mov	r14d, eax
.L3:
	cmp	r8d, r14d
	jbe	.L10
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, r13d
	neg	esi
	call	signed_asl@PLT
	lea	rdi, adfs_map_lock[rip]
	mov	r15d, eax
	call	read_lock@PLT
	mov	esi, r14d
	mov	rdi, rbx
	mov	ecx, r15d
	mov	edx, r12d
	call	scan_map@PLT
	lea	rdi, adfs_map_lock[rip]
	mov	r14d, eax
	call	read_unlock@PLT
	test	r14d, r14d
	jg	.L11
	mov	ecx, r13d
	mov	edx, r12d
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	adfs_error@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, r15d
	call	signed_asl@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, r14d
	mov	ebp, eax
	call	signed_asl@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	add	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	sub	eax, ebp
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	ecx, r14d
	mov	edx, r12d
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	adfs_error@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r8d, DWORD PTR [rax]
	mov	r14d, r8d
	sar	r14d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	adfs_map_lookup, .-adfs_map_lookup
	.comm	adfs_map_lock,4,4
	.comm	ADFS_ROOT_FRAG,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_map.c_adfs_map_lookup.c"
	.text
	.global	__aeabi_uidiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid fragment 0x%04x (zone = %d, max = %d)\000"
	.align	2
.LC1:
	.ascii	"fragment 0x%04x at offset %d not found in map\000"
	.text
	.align	2
	.global	adfs_map_lookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	adfs_map_lookup, %function
adfs_map_lookup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r1
	sub	sp, sp, #12
	mov	r6, r2
	mov	r8, r0
	bl	ADFS_SB
	ldr	r3, .L12
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L9
	ldr	r1, [r0, #4]
	mov	r0, r5
	bl	__aeabi_uidiv
	mov	r7, r0
	ldr	r3, [r4]
.L3:
	cmp	r3, r7
	bls	.L10
	ldr	r1, [r4, #8]
	mov	r0, r6
	rsb	r1, r1, #0
	bl	signed_asl
	mov	r9, r0
	ldr	r0, .L12+4
	bl	read_lock
	mov	r1, r7
	mov	r3, r9
	mov	r2, r5
	mov	r0, r4
	bl	scan_map
	mov	r7, r0
	ldr	r0, .L12+4
	bl	read_unlock
	cmp	r7, #0
	bgt	.L11
	mov	r3, r6
	mov	r2, r5
	mov	r0, r8
	ldr	r1, .L12+8
	bl	adfs_error
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	ldr	r1, [r4, #8]
	mov	r0, r9
	bl	signed_asl
	mov	r2, r0
	ldr	r1, [r4, #8]
	mov	r0, r7
	mov	r4, r2
	bl	signed_asl
	add	r6, r0, r6
	sub	r0, r6, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	str	r3, [sp]
	mov	r2, r5
	mov	r3, r7
	mov	r0, r8
	ldr	r1, .L12+12
	bl	adfs_error
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	ldr	r3, [r0]
	asr	r7, r3, #1
	b	.L3
.L13:
	.align	2
.L12:
	.word	ADFS_ROOT_FRAG
	.word	adfs_map_lock
	.word	.LC1
	.word	.LC0
	.size	adfs_map_lookup, .-adfs_map_lookup
	.comm	adfs_map_lock,4,4
	.comm	ADFS_ROOT_FRAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
