	.file	"extr_bios.c_bios32_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_32_"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"bios32: Found BIOS32 Service Directory header at %p\n"
	.align 8
.LC2:
	.string	"bios32: Entry = 0x%x (%x)  Rev = %d  Len = %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"machdep.bios.pci"
.LC4:
	.string	"disable"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"bios32: Bad BIOS32 Service Directory"
	.section	.rodata.str1.1
.LC6:
	.string	"machdep.bios.pnp"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"pnpbios: Found PnP BIOS data at %p\n"
	.align 8
.LC8:
	.string	"pnpbios: Entry = %x:%x  Rev = %d.%d\n"
	.section	.rodata.str1.1
.LC9:
	.string	"pnpbios: Event flag at %x\n"
.LC10:
	.string	"pnpbios: OEM ID %x\n"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"pnpbios: Bad PnP BIOS data checksum"
	.section	.rodata.str1.1
.LC12:
	.string	"Other BIOS signatures found:"
.LC13:
	.string	"$PnP"
	.section	.rodata.str1.8
	.align 8
.LC14:
	.string	"pcibios: PCI BIOS entry at 0x%x+0x%x\n"
	.text
	.p2align 4
	.type	bios32_init, @function
bios32_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	r8d, r8d
	xor	edi, edi
	mov	ecx, 16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	edx, 4
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	bios_sigsearch@PLT
	test	eax, eax
	jne	.L40
.L3:
	lea	rdi, .LC6[rip]
	call	kern_getenv@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	rax, rax
	jne	.L11
.L19:
	mov	rdi, rbp
	call	freeenv@PLT
.L12:
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L41
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	r8d, r8d
	xor	edi, edi
	mov	ecx, 16
	mov	edx, 4
	lea	rsi, .LC13[rip]
	call	bios_sigsearch@PLT
	test	eax, eax
	je	.L19
.L22:
	mov	edi, eax
	call	BIOS_PADDRTOVADDR@PLT
	cdqe
	mov	edx, DWORD PTR [rax]
	mov	rbx, rax
	test	edx, edx
	jle	.L13
	lea	ecx, -1[rdx]
	lea	rdx, 8[rax]
	lea	rsi, [rdx+rcx*8]
	xor	ecx, ecx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L42:
	add	rdx, 8
.L14:
	add	rcx, QWORD PTR [rax]
	mov	rax, rdx
	cmp	rsi, rdx
	jne	.L42
	test	rcx, rcx
	jne	.L15
.L13:
	cmp	QWORD PTR bootverbose[rip], 0
	mov	QWORD PTR PnPBIOStable[rip], rbx
	jne	.L43
	test	rbp, rbp
	je	.L1
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, eax
	call	BIOS_PADDRTOVADDR@PLT
	cdqe
	mov	edx, DWORD PTR [rax]
	mov	rbx, rax
	sal	edx, 4
	test	edx, edx
	jle	.L4
	lea	ecx, -1[rdx]
	lea	rdx, 8[rax]
	lea	rsi, [rdx+rcx*8]
	xor	ecx, ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L44:
	add	rdx, 8
.L5:
	add	rcx, QWORD PTR [rax]
	mov	rax, rdx
	cmp	rdx, rsi
	jne	.L44
	test	rcx, rcx
	jne	.L6
.L4:
	mov	edi, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR BIOS_START[rip]
	cmp	edi, eax
	jl	.L6
	add	eax, DWORD PTR BIOS_SIZE[rip]
	cmp	edi, eax
	jl	.L45
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L41:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC12[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	puts@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	r8d, r8d
	xor	edi, edi
	mov	ecx, 16
	mov	edx, 4
	lea	rsi, .LC13[rip]
	call	bios_sigsearch@PLT
	test	eax, eax
	je	.L12
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L18:
	test	rbp, rbp
	je	.L12
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	call	BIOS_PADDRTOVADDR@PLT
	cmp	QWORD PTR bootverbose[rip], 0
	mov	DWORD PTR bios32_SDCI[rip], eax
	jne	.L46
.L7:
	lea	rdi, .LC3[rip]
	call	kern_getenv@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	rax, rax
	je	.L25
	lea	rdi, PCIbios[rip]
	mov	DWORD PTR PCIbios[rip+8], 1229148196
	call	bios32_SDlookup@PLT
	test	eax, eax
	jne	.L25
	cmp	QWORD PTR bootverbose[rip], 0
	je	.L25
	mov	edx, DWORD PTR PCIbios[rip+4]
	mov	esi, DWORD PTR PCIbios[rip]
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	printf@PLT
.L25:
	mov	rdi, rbp
	call	freeenv@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rsi, rbx
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	printf@PLT
	mov	r8d, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR 8[rbx]
	xor	eax, eax
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, .LC8[rip]
	mov	ecx, r8d
	and	r8d, 15
	sar	ecx, 4
	call	printf@PLT
	mov	eax, DWORD PTR 16[rbx]
	and	eax, 3
	cmp	eax, 1
	je	.L47
.L17:
	mov	esi, DWORD PTR 24[rbx]
	test	esi, esi
	je	.L18
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L18
.L46:
	mov	rsi, rbx
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 4[rbx]
	xor	eax, eax
	mov	r8d, DWORD PTR [rbx]
	mov	edx, DWORD PTR bios32_SDCI[rip]
	lea	rdi, .LC2[rip]
	call	printf@PLT
	jmp	.L7
.L8:
	lea	rdi, PCIbios[rip]
	mov	DWORD PTR PCIbios[rip+8], 1229148196
	call	bios32_SDlookup@PLT
	test	eax, eax
	jne	.L3
	cmp	QWORD PTR bootverbose[rip], 0
	je	.L3
	mov	edx, DWORD PTR PCIbios[rip+4]
	mov	esi, DWORD PTR PCIbios[rip]
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, DWORD PTR 20[rbx]
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	bios32_init, .-bios32_init
	.comm	bootverbose,8,8
	.comm	bios32_SDCI,4,4
	.comm	PnPBIOStable,8,8
	.comm	PCIbios,12,8
	.comm	BIOS_START,4,4
	.comm	BIOS_SIZE,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_bios.c_bios32_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_32_\000"
	.align	2
.LC1:
	.ascii	"bios32: Found BIOS32 Service Directory header at %p"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"bios32: Entry = 0x%x (%x)  Rev = %d  Len = %d\012\000"
	.align	2
.LC3:
	.ascii	"machdep.bios.pci\000"
	.align	2
.LC4:
	.ascii	"disable\000"
	.align	2
.LC5:
	.ascii	"bios32: Bad BIOS32 Service Directory\000"
	.align	2
.LC6:
	.ascii	"machdep.bios.pnp\000"
	.align	2
.LC7:
	.ascii	"pnpbios: Found PnP BIOS data at %p\012\000"
	.align	2
.LC8:
	.ascii	"pnpbios: Entry = %x:%x  Rev = %d.%d\012\000"
	.align	2
.LC9:
	.ascii	"pnpbios: Event flag at %x\012\000"
	.align	2
.LC10:
	.ascii	"pnpbios: OEM ID %x\012\000"
	.align	2
.LC11:
	.ascii	"pnpbios: Bad PnP BIOS data checksum\000"
	.align	2
.LC12:
	.ascii	"Other BIOS signatures found:\000"
	.align	2
.LC13:
	.ascii	"$PnP\000"
	.align	2
.LC14:
	.ascii	"pcibios: PCI BIOS entry at 0x%x+0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bios32_init, %function
bios32_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	sub	sp, sp, #8
	mov	r3, #16
	mov	r0, r4
	mov	r2, #4
	ldr	r1, .L51
	str	r4, [sp]
	bl	bios_sigsearch
	cmp	r0, r4
	bne	.L2
.L42:
	ldr	r5, .L51+4
.L3:
	ldr	r0, .L51+8
	bl	kern_getenv
	subs	r4, r0, #0
	beq	.L11
	ldr	r1, .L51+12
	bl	strcmp
	cmp	r0, #0
	bne	.L12
.L21:
	mov	r0, r4
	bl	freeenv
.L13:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L44
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, #0
	mov	r3, #16
	mov	r2, #4
	ldr	r1, .L51+16
	str	r0, [sp]
	bl	bios_sigsearch
	cmp	r0, #0
	beq	.L21
.L24:
	bl	BIOS_PADDRTOVADDR
	ldr	r2, [r0]
	mov	r6, r0
	cmp	r2, #0
	ble	.L14
	mov	r1, #0
	add	r3, r0, #4
	add	ip, r0, r2, lsl #2
	b	.L16
.L45:
	ldr	r2, [r3], #4
.L16:
	cmp	r3, ip
	add	r1, r1, r2
	bne	.L45
	cmp	r1, #0
	bne	.L17
.L14:
	ldr	r2, [r5]
	ldr	r3, .L51+20
	cmp	r2, #0
	str	r6, [r3]
	bne	.L46
	cmp	r4, #0
	beq	.L1
	b	.L21
.L2:
	bl	BIOS_PADDRTOVADDR
	ldr	ip, [r0]
	mov	r6, r0
	lsl	r3, ip, #4
	cmp	r3, #0
	ble	.L4
	mov	r3, r4
	add	r2, r0, #4
	add	lr, r0, ip, lsl #6
	b	.L6
.L47:
	ldr	ip, [r2], #4
.L6:
	cmp	lr, r2
	add	r3, r3, ip
	bne	.L47
	cmp	r3, #0
	bne	.L7
.L4:
	ldr	r3, .L51+24
	ldr	r0, [r6, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L7
	ldr	r2, .L51+28
	ldr	r2, [r2]
	add	r3, r3, r2
	cmp	r0, r3
	blt	.L48
.L7:
	ldr	r0, .L51+32
	bl	puts
	b	.L42
.L44:
	ldr	r0, .L51+36
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	puts
.L11:
	mov	r3, #16
	mov	r2, #4
	ldr	r1, .L51+16
	str	r4, [sp]
	bl	bios_sigsearch
	cmp	r0, #0
	beq	.L13
	b	.L24
.L17:
	ldr	r0, .L51+40
	bl	puts
.L20:
	cmp	r4, #0
	beq	.L13
	b	.L21
.L48:
	bl	BIOS_PADDRTOVADDR
	ldr	r5, .L51+4
	ldr	r4, .L51+44
	ldr	r3, [r5]
	str	r0, [r4]
	cmp	r3, #0
	bne	.L49
.L8:
	ldr	r0, .L51+48
	bl	kern_getenv
	subs	r4, r0, #0
	beq	.L9
	ldr	r1, .L51+12
	bl	strcmp
	cmp	r0, #0
	beq	.L27
	ldr	r6, .L51+52
	ldr	r3, .L51+56
	mov	r0, r6
	str	r3, [r6, #8]
	bl	bios32_SDlookup
	cmp	r0, #0
	bne	.L27
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L27
	ldm	r6, {r1, r2}
	ldr	r0, .L51+60
	bl	printf
.L27:
	mov	r0, r4
	bl	freeenv
	b	.L3
.L46:
	mov	r1, r6
	ldr	r0, .L51+64
	bl	printf
	ldmib	r6, {r1, r2, r3}
	and	r0, r3, #15
	str	r0, [sp]
	asr	r3, r3, #4
	ldr	r0, .L51+68
	bl	printf
	ldr	r3, [r6, #16]
	and	r3, r3, #3
	cmp	r3, #1
	beq	.L50
.L19:
	ldr	r1, [r6, #24]
	cmp	r1, #0
	beq	.L20
	ldr	r0, .L51+72
	bl	printf
	b	.L20
.L49:
	mov	r1, r6
	ldr	r0, .L51+76
	bl	printf
	ldm	r6, {r0, r1, r3}
	ldr	r2, [r4]
	str	r0, [sp]
	ldr	r0, .L51+80
	bl	printf
	b	.L8
.L50:
	ldr	r1, [r6, #20]
	ldr	r0, .L51+84
	bl	printf
	b	.L19
.L9:
	ldr	r4, .L51+52
	ldr	r3, .L51+56
	mov	r0, r4
	str	r3, [r4, #8]
	bl	bios32_SDlookup
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L3
	ldm	r4, {r1, r2}
	ldr	r0, .L51+60
	bl	printf
	b	.L3
.L52:
	.align	2
.L51:
	.word	.LC0
	.word	bootverbose
	.word	.LC6
	.word	.LC4
	.word	.LC13
	.word	PnPBIOStable
	.word	BIOS_START
	.word	BIOS_SIZE
	.word	.LC5
	.word	.LC12
	.word	.LC11
	.word	bios32_SDCI
	.word	.LC3
	.word	PCIbios
	.word	1229148196
	.word	.LC14
	.word	.LC7
	.word	.LC8
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC9
	.size	bios32_init, .-bios32_init
	.comm	bootverbose,4,4
	.comm	bios32_SDCI,4,4
	.comm	PnPBIOStable,4,4
	.comm	PCIbios,12,4
	.comm	BIOS_START,4,4
	.comm	BIOS_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
