	.file	"extr_nsrepair2.c_acpi_ns_check_sorted_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acpi_ns_check_sorted_list, @function
acpi_ns_check_sorted_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR ns_check_sorted_list[rip]
	call	ACPI_FUNCTION_NAME@PLT
	mov	rdi, QWORD PTR ACPI_TYPE_PACKAGE[rip]
	cmp	QWORD PTR [r15], rdi
	jne	.L7
	test	rdi, rdi
	je	.L8
	cmp	rdi, r14
	jle	.L8
	mov	ecx, DWORD PTR ACPI_SORT_DESCENDING[rip]
	mov	rax, QWORD PTR 8[r15]
	mov	r10, rdi
	mov	esi, 0
	sub	r10, r14
	mov	r8, QWORD PTR ACPI_TYPE_INTEGER[rip]
	lea	r11, 0[0+r12*8]
	cmp	ecx, r13d
	cmove	rsi, QWORD PTR ACPI_UINT32_MAX[rip]
	lea	r9, [rax+r14*8]
	cmp	DWORD PTR ACPI_SORT_ASCENDING[rip], r13d
	sete	r14b
	xor	eax, eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, rdx
.L12:
	mov	rdx, QWORD PTR [r9+rax*8]
	cmp	rdi, QWORD PTR [rdx]
	jne	.L7
	cmp	rdi, rbp
	jl	.L8
	mov	rdx, QWORD PTR 8[rdx]
	mov	rdx, QWORD PTR [rdx+r11]
	mov	rdx, QWORD PTR [rdx]
	cmp	rdx, r8
	jne	.L7
	cmp	r8, rsi
	jge	.L15
	test	r14b, r14b
	jne	.L9
.L15:
	cmp	ecx, r13d
	jne	.L11
	cmp	rdx, rsi
	jg	.L9
.L11:
	add	rax, 1
	cmp	r10, rax
	jne	.L14
	mov	eax, DWORD PTR AE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR AE_AML_OPERAND_TYPE[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR AE_AML_PACKAGE_LIMIT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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	rdi, r9
	mov	ecx, r13d
	mov	rdx, r12
	mov	rsi, r10
	call	acpi_ns_sort_list@PLT
	mov	eax, DWORD PTR ACPI_OBJECT_REPAIRED[rip]
	or	DWORD PTR 4[rbx], eax
	mov	edi, DWORD PTR 64[rsp]
	call	ACPI_DEBUG_PRINT@PLT
	mov	eax, DWORD PTR AE_OK[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	acpi_ns_check_sorted_list, .-acpi_ns_check_sorted_list
	.comm	ns_check_sorted_list,4,4
	.comm	AE_OK,4,4
	.comm	AE_AML_PACKAGE_LIMIT,4,4
	.comm	AE_AML_OPERAND_TYPE,4,4
	.comm	ACPI_UINT32_MAX,8,8
	.comm	ACPI_TYPE_PACKAGE,8,8
	.comm	ACPI_TYPE_INTEGER,8,8
	.comm	ACPI_SORT_DESCENDING,4,4
	.comm	ACPI_SORT_ASCENDING,4,4
	.comm	ACPI_OBJECT_REPAIRED,4,4
	.comm	ACPI_DB_REPAIR,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_nsrepair2.c_acpi_ns_check_sorted_list.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ns_check_sorted_list, %function
acpi_ns_check_sorted_list:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, .L15
	sub	sp, sp, #12
	mov	r7, r0
	ldr	r0, [r1]
	mov	r6, r2
	mov	r8, r3
	ldr	r9, [sp, #52]
	bl	ACPI_FUNCTION_NAME
	ldr	r2, .L15+4
	ldr	r3, [r4]
	ldr	r5, [r2]
	cmp	r3, r5
	bne	.L6
	cmp	r5, r6
	movgt	ip, #0
	movle	ip, #1
	cmp	r5, #0
	moveq	ip, #1
	cmp	ip, #0
	bne	.L7
	ldr	r3, .L15+8
	ldr	r0, [r4, #4]
	ldr	r10, [r3]
	add	r3, r0, r6, lsl #2
	cmp	r10, r9
	str	r3, [sp, #4]
	ldreq	r3, .L15+12
	ldr	r0, [sp, #48]
	ldreq	ip, [r3]
	ldr	r3, .L15+16
	ldr	r2, .L15+20
	ldr	r3, [r3]
	lsl	fp, r0, #2
	sub	r3, r3, r9
	clz	r3, r3
	ldr	r0, [sp, #4]
	sub	r1, r5, r6
	mov	lr, #0
	ldr	r2, [r2]
	lsr	r3, r3, #5
	sub	r6, r0, #4
	b	.L10
.L12:
	mov	ip, r2
.L10:
	ldr	r0, [r6, #4]!
	add	lr, lr, #1
	ldr	r4, [r0]
	cmp	r5, r4
	bne	.L6
	cmp	r5, r8
	blt	.L7
	ldr	r0, [r0, #4]
	ldr	r0, [r0, fp]
	ldr	r0, [r0]
	cmp	r0, r2
	bne	.L6
	cmp	r2, ip
	movge	r0, #0
	andlt	r0, r3, #1
	cmp	r0, #0
	bne	.L8
	sub	r0, r10, r9
	clz	r0, r0
	cmp	r2, ip
	lsr	r0, r0, #5
	movle	r0, #0
	cmp	r0, #0
	bne	.L8
	cmp	r1, lr
	bne	.L12
	ldr	r3, .L15+24
	ldr	r0, [r3]
	b	.L1
.L6:
	ldr	r3, .L15+28
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L15+32
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r3, r9
	ldr	r2, [sp, #48]
	ldr	r0, [sp, #4]
	bl	acpi_ns_sort_list
	ldr	r2, .L15+36
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	ldr	r0, [sp, #56]
	orr	r3, r3, r2
	str	r3, [r7, #4]
	bl	ACPI_DEBUG_PRINT
	ldr	r3, .L15+24
	ldr	r0, [r3]
	b	.L1
.L16:
	.align	2
.L15:
	.word	ns_check_sorted_list
	.word	ACPI_TYPE_PACKAGE
	.word	ACPI_SORT_DESCENDING
	.word	ACPI_UINT32_MAX
	.word	ACPI_SORT_ASCENDING
	.word	ACPI_TYPE_INTEGER
	.word	AE_OK
	.word	AE_AML_OPERAND_TYPE
	.word	AE_AML_PACKAGE_LIMIT
	.word	ACPI_OBJECT_REPAIRED
	.size	acpi_ns_check_sorted_list, .-acpi_ns_check_sorted_list
	.comm	ns_check_sorted_list,4,4
	.comm	AE_OK,4,4
	.comm	AE_AML_PACKAGE_LIMIT,4,4
	.comm	AE_AML_OPERAND_TYPE,4,4
	.comm	ACPI_UINT32_MAX,4,4
	.comm	ACPI_TYPE_PACKAGE,4,4
	.comm	ACPI_TYPE_INTEGER,4,4
	.comm	ACPI_SORT_DESCENDING,4,4
	.comm	ACPI_SORT_ASCENDING,4,4
	.comm	ACPI_OBJECT_REPAIRED,4,4
	.comm	ACPI_DB_REPAIR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
