	.file	"extr_oslinuxtbl.c_osl_list_bios_tables.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	osl_list_bios_tables, @function
osl_list_bios_tables:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	osl_can_use_xsdt@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR gbl_xsdt[rip]
	call	ACPI_CAST8@PLT
	lea	rbx, 16[rax]
	mov	rax, QWORD PTR gbl_xsdt[rip]
	movsx	rax, DWORD PTR [rax]
	sub	rax, 4
	shr	rax, 2
.L3:
	test	eax, eax
	jle	.L4
	lea	ebp, -1[rax]
	mov	r13, rsp
	add	rbp, 1
	sal	rbp, 4
	add	rbp, rbx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	call	ACPI_CAST64@PLT
	mov	rdi, QWORD PTR [rax]
.L6:
	test	rdi, rdi
	je	.L7
	xor	esi, esi
	mov	rdx, r13
	call	osl_map_table@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR [rsp]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	osl_add_table_to_list@PLT
	mov	rdi, QWORD PTR [rsp]
	call	osl_unmap_table@PLT
.L7:
	add	rbx, 16
	cmp	rbx, rbp
	je	.L4
.L9:
	xor	eax, eax
	call	osl_can_use_xsdt@PLT
	mov	rdi, rbx
	test	rax, rax
	jne	.L17
	call	ACPI_CAST32@PLT
	mov	rdi, QWORD PTR [rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR AE_OK[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR gbl_rsdt[rip]
	call	ACPI_CAST8@PLT
	lea	rbx, 16[rax]
	mov	rax, QWORD PTR gbl_rsdt[rip]
	movsx	rax, DWORD PTR [rax]
	sub	rax, 4
	shr	rax, 2
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	osl_list_bios_tables, .-osl_list_bios_tables
	.comm	gbl_xsdt,8,8
	.comm	gbl_rsdt,8,8
	.comm	AE_OK,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_oslinuxtbl.c_osl_list_bios_tables.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	osl_list_bios_tables, %function
osl_list_bios_tables:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L23
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	osl_can_use_xsdt
	cmp	r0, #0
	ldrne	r5, .L23+4
	ldreq	r5, .L23+8
	ldr	r0, [r5]
	bl	ACPI_CAST8
	ldr	r3, [r5]
	add	r4, r0, #16
	ldr	r6, [r3]
	sub	r6, r6, #4
	lsr	r6, r6, #2
	cmp	r6, #0
	beq	.L4
	mov	r5, #0
	b	.L9
.L21:
	bl	ACPI_CAST64
	ldr	r0, [r0]
.L6:
	cmp	r0, #0
	beq	.L7
	mov	r1, #0
	mov	r2, sp
	bl	osl_map_table
	mov	r7, r0
	bl	ACPI_FAILURE
	subs	r1, r0, #0
	bne	.L1
	ldr	r3, [sp]
	ldr	r0, [r3]
	bl	osl_add_table_to_list
	ldr	r0, [sp]
	bl	osl_unmap_table
.L7:
	add	r5, r5, #1
	cmp	r6, r5
	add	r4, r4, #16
	beq	.L4
.L9:
	bl	osl_can_use_xsdt
	cmp	r0, #0
	mov	r0, r4
	bne	.L21
	bl	ACPI_CAST32
	ldr	r0, [r0]
	b	.L6
.L4:
	ldr	r3, .L23+12
	ldr	r7, [r3]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	gbl_xsdt
	.word	gbl_rsdt
	.word	AE_OK
	.size	osl_list_bios_tables, .-osl_list_bios_tables
	.comm	gbl_xsdt,4,4
	.comm	gbl_rsdt,4,4
	.comm	AE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
