	.file	"extr_exmutex.c_AcpiExAcquireMutex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AcpiExAcquireMutex
	.type	AcpiExAcquireMutex, @function
AcpiExAcquireMutex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, DWORD PTR ExAcquireMutex[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	ACPI_FUNCTION_TRACE_PTR@PLT
	test	rbx, rbx
	je	.L9
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L10
.L3:
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rdi], rax
	jg	.L11
.L4:
	call	ACPI_DEBUG_PRINT@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 40[r12]
	mov	rsi, rbx
	mov	edx, DWORD PTR 8[rax]
	call	AcpiExAcquireMutexObject@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_SUCCESS@PLT
	mov	edi, DWORD PTR 8[rbx]
	test	rax, rax
	je	.L6
	cmp	edi, 1
	je	.L12
.L6:
	call	ACPI_DEBUG_PRINT@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	return_ACPI_STATUS@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 32[rbx]
	call	AcpiUtGetNodeName@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax]
	call	ACPI_ERROR@PLT
	mov	edi, DWORD PTR AE_AML_MUTEX_ORDER[rip]
	call	return_ACPI_STATUS@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbx
	mov	rax, QWORD PTR [rsi]
	mov	QWORD PTR 24[rbx], rsi
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [rsi], rax
	call	AcpiExLinkMutex@PLT
	mov	edi, DWORD PTR 8[rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR AE_BAD_PARAMETER[rip]
	call	return_ACPI_STATUS@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 32[rbx]
	call	AcpiUtGetNodeName@PLT
	mov	edi, eax
	call	ACPI_ERROR@PLT
	mov	edi, DWORD PTR AE_AML_INTERNAL[rip]
	call	return_ACPI_STATUS@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	AcpiExAcquireMutex, .-AcpiExAcquireMutex
	.comm	ExAcquireMutex,4,4
	.comm	AE_INFO,4,4
	.comm	AE_BAD_PARAMETER,4,4
	.comm	AE_AML_MUTEX_ORDER,4,4
	.comm	AE_AML_INTERNAL,4,4
	.comm	ACPI_DB_EXEC,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_exmutex.c_AcpiExAcquireMutex.c"
	.text
	.align	2
	.global	AcpiExAcquireMutex
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiExAcquireMutex, %function
AcpiExAcquireMutex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L13
	mov	r6, r0
	ldr	r0, [r3]
	mov	r5, r2
	bl	ACPI_FUNCTION_TRACE_PTR
	cmp	r4, #0
	beq	.L9
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L10
.L3:
	ldr	r2, [r0]
	ldr	r3, [r4]
	cmp	r2, r3
	bgt	.L11
.L4:
	bl	ACPI_DEBUG_PRINT
	ldr	r3, [r5]
	mov	r1, r4
	ldr	r0, [r6, #20]
	ldr	r2, [r3, #4]
	bl	AcpiExAcquireMutexObject
	mov	r6, r0
	bl	ACPI_SUCCESS
	cmp	r0, #0
	ldr	r0, [r4, #4]
	beq	.L6
	cmp	r0, #1
	beq	.L12
.L6:
	bl	ACPI_DEBUG_PRINT
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	return_ACPI_STATUS
.L11:
	ldr	r0, [r4, #16]
	bl	AcpiUtGetNodeName
	ldr	r3, [r5]
	ldr	r0, [r3]
	bl	ACPI_ERROR
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r0, [r5]
	b	.L4
.L12:
	ldr	r1, [r5]
	ldr	r3, [r4]
	ldr	r2, [r1]
	mov	r0, r4
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r1]
	bl	AcpiExLinkMutex
	ldr	r0, [r4, #4]
	bl	ACPI_DEBUG_PRINT
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	return_ACPI_STATUS
.L9:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L3
.L10:
	ldr	r0, [r4, #16]
	bl	AcpiUtGetNodeName
	bl	ACPI_ERROR
	ldr	r3, .L13+12
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	ldr	r0, [r5]
	b	.L3
.L14:
	.align	2
.L13:
	.word	ExAcquireMutex
	.word	AE_AML_MUTEX_ORDER
	.word	AE_BAD_PARAMETER
	.word	AE_AML_INTERNAL
	.size	AcpiExAcquireMutex, .-AcpiExAcquireMutex
	.comm	ExAcquireMutex,4,4
	.comm	AE_INFO,4,4
	.comm	AE_BAD_PARAMETER,4,4
	.comm	AE_AML_MUTEX_ORDER,4,4
	.comm	AE_AML_INTERNAL,4,4
	.comm	ACPI_DB_EXEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
