	.file	"extr_dsmethod.c_AcpiDsCallControlMethod.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AcpiDsCallControlMethod
	.type	AcpiDsCallControlMethod, @function
AcpiDsCallControlMethod:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR DsCallControlMethod[rip]
	call	ACPI_FUNCTION_TRACE_PTR@PLT
	mov	edi, ebp
	call	ACPI_DEBUG_PRINT@PLT
	mov	r14, QWORD PTR 40[rbp]
	test	r14, r14
	je	.L20
	mov	rdi, r14
	call	AcpiNsGetAttachedObject@PLT
	mov	r12, rax
	test	rax, rax
	je	.L21
.L3:
	mov	rdi, r14
	mov	rdx, rbp
	mov	rsi, r12
	call	AcpiDsBeginMethodExecution@PLT
	mov	rdi, rax
	mov	r13, rax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L22
.L4:
	mov	edi, DWORD PTR 32[r12]
	mov	rcx, r15
	mov	rdx, r12
	xor	esi, esi
	call	AcpiDsCreateWalkState@PLT
	mov	r13, rax
	test	rax, rax
	je	.L18
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 32[rbp]
	mov	edi, 8
	mov	QWORD PTR [rax+rdx*8], 0
	call	ACPI_ALLOCATE_ZEROED@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR 32[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 28[r12]
	mov	rdx, r14
	mov	r8d, DWORD PTR 24[r12]
	mov	r9, rbx
	xor	esi, esi
	mov	rdi, r13
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR ACPI_IMODE_EXECUTE[rip]
	push	rax
	.cfi_def_cfa_offset 80
	call	AcpiDsInitAmlWalk@PLT
	mov	rdi, rbx
	mov	r15, rax
	call	ACPI_FREE@PLT
	mov	rdi, r15
	call	ACPI_FAILURE@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR 8[rbp]
	add	eax, 1
	cmp	QWORD PTR [r12], 0
	mov	DWORD PTR 8[r13], eax
	je	.L12
	mov	rax, QWORD PTR 32[rbp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	AcpiUtRemoveReference@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR [rax+rbx*8], 0
	add	rbx, 1
	cmp	QWORD PTR [r12], rbx
	ja	.L11
.L12:
	mov	QWORD PTR 0[rbp], 0
	mov	edi, r13d
	call	ACPI_DEBUG_PRINT@PLT
	mov	esi, DWORD PTR TRUE[rip]
	mov	rdi, r14
	call	AcpiNsGetNormalizedPathname@PLT
	mov	edx, DWORD PTR TRUE[rip]
	mov	QWORD PTR 16[rbp], rax
	lea	rdi, 4[rax]
	mov	DWORD PTR 24[rbp], edx
	call	ACPI_DEBUG_PRINT_RAW@PLT
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR ACPI_METHOD_INTERNAL_ONLY[rip], eax
	je	.L10
	mov	rdi, r13
	call	[QWORD PTR 16[r12]]
	cmp	QWORD PTR AE_OK[rip], rax
	mov	r15, rax
	jne	.L10
	mov	r15, QWORD PTR AE_CTRL_TERMINATE[rip]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r15
	call	return_ACPI_STATUS@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r15, QWORD PTR AE_NO_MEMORY[rip]
.L6:
	mov	rsi, r13
	mov	rdi, r12
	call	AcpiDsTerminateControlMethod@PLT
	mov	rdi, r13
	call	AcpiDsDeleteWalkState@PLT
	mov	rdi, r15
	call	return_ACPI_STATUS@PLT
	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
.L22:
	.cfi_restore_state
	mov	rdi, r13
	call	return_ACPI_STATUS@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, QWORD PTR AE_NULL_ENTRY[rip]
	call	return_ACPI_STATUS@PLT
	mov	rdi, r14
	call	AcpiNsGetAttachedObject@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR AE_NULL_OBJECT[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	AcpiDsCallControlMethod, .-AcpiDsCallControlMethod
	.comm	TRUE,4,4
	.comm	DsCallControlMethod,4,4
	.comm	AE_OK,8,8
	.comm	AE_NULL_OBJECT,8,8
	.comm	AE_NULL_ENTRY,8,8
	.comm	AE_NO_MEMORY,8,8
	.comm	AE_CTRL_TERMINATE,8,8
	.comm	ACPI_METHOD_INTERNAL_ONLY,4,4
	.comm	ACPI_IMODE_EXECUTE,4,4
	.comm	ACPI_DB_EVALUATION,4,4
	.comm	ACPI_DB_DISPATCH,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_dsmethod.c_AcpiDsCallControlMethod.c"
	.text
	.align	2
	.global	AcpiDsCallControlMethod
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiDsCallControlMethod, %function
AcpiDsCallControlMethod:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	ldr	r3, .L23
	sub	sp, sp, #16
	mov	r7, r0
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_TRACE_PTR
	mov	r0, r6
	bl	ACPI_DEBUG_PRINT
	ldr	r8, [r6, #20]
	cmp	r8, #0
	beq	.L20
	mov	r0, r8
	bl	AcpiNsGetAttachedObject
	subs	r5, r0, #0
	beq	.L21
.L3:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r8
	bl	AcpiDsBeginMethodExecution
	mov	r4, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L22
.L4:
	mov	r3, r7
	mov	r2, r5
	mov	r1, #0
	ldr	r0, [r5, #20]
	bl	AcpiDsCreateWalkState
	subs	r7, r0, #0
	beq	.L18
	mov	r9, #0
	ldr	r2, [r6]
	ldr	r3, [r6, #16]
	mov	r0, #4
	str	r9, [r3, r2, lsl #2]
	bl	ACPI_ALLOCATE_ZEROED
	subs	r4, r0, #0
	beq	.L18
	ldr	r2, .L23+4
	ldr	r3, [r6, #16]
	ldr	r2, [r2]
	str	r3, [r4]
	ldr	r3, [r5, #16]
	str	r4, [sp, #4]
	str	r2, [sp, #8]
	ldr	r2, [r5, #12]
	mov	r1, r9
	str	r2, [sp]
	mov	r0, r7
	mov	r2, r8
	bl	AcpiDsInitAmlWalk
	mov	r9, r0
	mov	r0, r4
	bl	ACPI_FREE
	mov	r0, r9
	bl	ACPI_FAILURE
	subs	r4, r0, #0
	bne	.L6
	ldr	r3, [r6, #4]
	ldr	r2, [r5]
	add	r3, r3, #1
	cmp	r2, #0
	str	r3, [r7, #4]
	movne	r10, r4
	ldrne	r3, [r6, #16]
	beq	.L12
.L11:
	ldr	r0, [r3, r4, lsl #2]
	bl	AcpiUtRemoveReference
	ldr	r3, [r6, #16]
	ldr	r2, [r5]
	str	r10, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r2, r4
	bhi	.L11
.L12:
	mov	r3, #0
	ldr	r4, .L23+8
	str	r3, [r6]
	mov	r0, r7
	bl	ACPI_DEBUG_PRINT
	ldr	r1, [r4]
	mov	r0, r8
	bl	AcpiNsGetNormalizedPathname
	ldr	r3, [r4]
	str	r0, [r6, #8]
	str	r3, [r6, #12]
	add	r0, r0, #4
	bl	ACPI_DEBUG_PRINT_RAW
	ldr	r3, .L23+12
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L10
	ldr	r3, [r5, #8]
	mov	r0, r7
	blx	r3
	ldr	r3, .L23+16
	mov	r9, r0
	ldr	r3, [r3]
	cmp	r3, r0
	ldreq	r3, .L23+20
	ldreq	r9, [r3]
.L10:
	mov	r0, r9
	bl	return_ACPI_STATUS
	b	.L6
.L18:
	ldr	r3, .L23+24
	ldr	r9, [r3]
.L6:
	mov	r1, r7
	mov	r0, r5
	bl	AcpiDsTerminateControlMethod
	mov	r0, r7
	bl	AcpiDsDeleteWalkState
	mov	r0, r9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	return_ACPI_STATUS
.L22:
	mov	r0, r4
	bl	return_ACPI_STATUS
	b	.L4
.L20:
	ldr	r3, .L23+28
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	mov	r0, r8
	bl	AcpiNsGetAttachedObject
	subs	r5, r0, #0
	bne	.L3
.L21:
	ldr	r3, .L23+32
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L3
.L24:
	.align	2
.L23:
	.word	DsCallControlMethod
	.word	ACPI_IMODE_EXECUTE
	.word	TRUE
	.word	ACPI_METHOD_INTERNAL_ONLY
	.word	AE_OK
	.word	AE_CTRL_TERMINATE
	.word	AE_NO_MEMORY
	.word	AE_NULL_ENTRY
	.word	AE_NULL_OBJECT
	.size	AcpiDsCallControlMethod, .-AcpiDsCallControlMethod
	.comm	TRUE,4,4
	.comm	DsCallControlMethod,4,4
	.comm	AE_OK,4,4
	.comm	AE_NULL_OBJECT,4,4
	.comm	AE_NULL_ENTRY,4,4
	.comm	AE_NO_MEMORY,4,4
	.comm	AE_CTRL_TERMINATE,4,4
	.comm	ACPI_METHOD_INTERNAL_ONLY,4,4
	.comm	ACPI_IMODE_EXECUTE,4,4
	.comm	ACPI_DB_EVALUATION,4,4
	.comm	ACPI_DB_DISPATCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
