	.file	"extr_utresrc.c_acpi_ut_walk_aml_resources.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ut_walk_aml_resources
	.type	acpi_ut_walk_aml_resources, @function
acpi_ut_walk_aml_resources:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	movsx	rbx, edx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR ut_walk_aml_resources[rip]
	mov	QWORD PTR 24[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 48[rsp], 121
	call	ACPI_FUNCTION_TRACE@PLT
	cmp	ebx, 3
	jbe	.L29
.L2:
	lea	rax, [r14+rbx*4]
	xor	r12d, r12d
	mov	QWORD PTR 8[rsp], rax
	cmp	r14, rax
	jnb	.L3
	lea	r15, 44[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	movsx	rax, ebx
	add	r12d, ebx
	lea	r14, [r14+rax*4]
	cmp	QWORD PTR 8[rsp], r14
	jbe	.L3
.L11:
	mov	rdi, r13
	mov	rdx, r15
	mov	rsi, r14
	call	acpi_ut_validate_resource@PLT
	mov	edi, eax
	mov	ebx, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L30
.L4:
	mov	rdi, r14
	call	acpi_ut_get_descriptor_length@PLT
	mov	ebx, eax
	test	rbp, rbp
	je	.L6
	mov	r8, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 44[rsp]
	mov	edx, r12d
	mov	esi, eax
	mov	rdi, r14
	call	rbp
	mov	edi, eax
	mov	DWORD PTR 20[rsp], eax
	call	ACPI_FAILURE@PLT
	mov	edi, DWORD PTR 20[rsp]
	test	rax, rax
	jne	.L31
.L6:
	mov	rdi, r14
	call	acpi_ut_get_resource_type@PLT
	cmp	rax, QWORD PTR ACPI_RESOURCE_NAME_END_TAG[rip]
	jne	.L8
	lea	rax, 4[r14]
	cmp	QWORD PTR 8[rsp], rax
	jbe	.L32
	test	rbp, rbp
	je	.L33
.L10:
	mov	edi, DWORD PTR AE_OK[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, ebx
	call	return_ACPI_STATUS@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	call	return_ACPI_STATUS@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	test	rbp, rbp
	je	.L13
	lea	r15, 48[rsp]
	lea	rdx, 44[rsp]
	mov	rdi, r13
	mov	rsi, r15
	call	acpi_ut_validate_resource@PLT
	mov	rdi, r15
	mov	r8, QWORD PTR 24[rsp]
	mov	edx, r12d
	mov	ecx, DWORD PTR 44[rsp]
	mov	esi, 2
	call	rbp
	mov	edi, eax
	mov	ebp, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L34
.L13:
	mov	edi, DWORD PTR AE_AML_NO_RESOURCE_END_TAG[rip]
	call	return_ACPI_STATUS@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 72
	.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
.L32:
	.cfi_restore_state
	mov	edi, DWORD PTR AE_AML_NO_RESOURCE_END_TAG[rip]
	call	return_ACPI_STATUS@PLT
	test	rbp, rbp
	jne	.L10
.L33:
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR AE_AML_NO_RESOURCE_END_TAG[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, ebp
	call	return_ACPI_STATUS@PLT
	jmp	.L13
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_ut_walk_aml_resources, .-acpi_ut_walk_aml_resources
	.comm	ut_walk_aml_resources,4,4
	.comm	AE_OK,4,4
	.comm	AE_AML_NO_RESOURCE_END_TAG,4,4
	.comm	ACPI_RESOURCE_NAME_END_TAG,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_utresrc.c_acpi_ut_walk_aml_resources.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpi_ut_walk_aml_resources
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ut_walk_aml_resources, %function
acpi_ut_walk_aml_resources:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, #121
	mov	r9, r2
	mov	r2, #0
	mov	r7, r3
	ldr	r3, .L36
	sub	sp, sp, #36
	ldr	lr, .L36+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r3, [sp, #72]
	mov	r10, r0
	ldr	r0, [lr]
	str	r3, [sp, #8]
	mov	r4, r1
	str	ip, [sp, #20]
	str	r2, [sp, #24]
	bl	ACPI_FUNCTION_TRACE
	ldr	r3, .L36+8
	cmp	r9, #3
	str	r3, [sp, #12]
	bls	.L28
.L2:
	add	r9, r4, r9, lsl #2
	cmp	r4, r9
	mov	r6, #0
	bcs	.L3
	ldr	fp, .L36+12
	b	.L11
.L8:
	add	r4, r4, r5, lsl #2
	cmp	r9, r4
	add	r6, r6, r5
	bls	.L3
.L11:
	mov	r1, r4
	add	r2, sp, #16
	mov	r0, r10
	bl	acpi_ut_validate_resource
	mov	r5, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L31
.L4:
	mov	r0, r4
	bl	acpi_ut_get_descriptor_length
	cmp	r7, #0
	mov	r5, r0
	beq	.L6
	ldr	r3, [sp, #8]
	mov	r1, r0
	mov	r2, r6
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [sp, #16]
	blx	r7
	mov	r8, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L32
.L6:
	mov	r0, r4
	bl	acpi_ut_get_resource_type
	ldr	r3, [fp]
	cmp	r0, r3
	bne	.L8
	add	r3, r4, #4
	cmp	r9, r3
	bls	.L33
.L9:
	cmp	r7, #0
	ldreq	r3, [sp, #8]
	add	r6, r6, r5
	streq	r4, [r3]
	ldr	r3, .L36+16
	add	r4, r4, r5, lsl #2
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	cmp	r9, r4
	bhi	.L11
.L3:
	cmp	r7, #0
	beq	.L13
	add	r1, sp, #20
	add	r2, sp, #16
	mov	r0, r10
	bl	acpi_ut_validate_resource
	ldr	r3, [sp, #8]
	mov	r2, r6
	mov	r1, #2
	str	r3, [sp]
	add	r0, sp, #20
	ldr	r3, [sp, #16]
	blx	r7
	mov	r4, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L34
.L13:
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	mov	r0, r5
	bl	return_ACPI_STATUS
	b	.L4
.L32:
	mov	r0, r8
	bl	return_ACPI_STATUS
	b	.L6
.L33:
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L9
.L28:
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L2
.L34:
	mov	r0, r4
	bl	return_ACPI_STATUS
	b	.L13
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	ut_walk_aml_resources
	.word	AE_AML_NO_RESOURCE_END_TAG
	.word	ACPI_RESOURCE_NAME_END_TAG
	.word	AE_OK
	.size	acpi_ut_walk_aml_resources, .-acpi_ut_walk_aml_resources
	.comm	ut_walk_aml_resources,4,4
	.comm	AE_OK,4,4
	.comm	AE_AML_NO_RESOURCE_END_TAG,4,4
	.comm	ACPI_RESOURCE_NAME_END_TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
