	.file	"extr_exmutex.c_acpi_ex_acquire_mutex_object.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ex_acquire_mutex_object
	.type	acpi_ex_acquire_mutex_object, @function
acpi_ex_acquire_mutex_object:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	mov	edi, DWORD PTR ex_acquire_mutex_object[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	.L12
.L2:
	cmp	QWORD PTR [rbx], rbp
	je	.L13
.L3:
	cmp	QWORD PTR acpi_gbl_global_lock_mutex[rip], rbx
	je	.L14
	mov	edi, DWORD PTR 32[rbx]
	mov	esi, r12d
	call	acpi_ex_system_wait_mutex@PLT
	mov	r12d, eax
.L5:
	mov	edi, r12d
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L15
.L6:
	mov	QWORD PTR [rbx], rbp
	mov	edi, DWORD PTR AE_OK[rip]
	mov	DWORD PTR 8[rbx], 1
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	return_ACPI_STATUS@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, r12d
	call	return_ACPI_STATUS@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, r12d
	call	acpi_ev_acquire_global_lock@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	add	DWORD PTR 8[rbx], 1
	mov	edi, DWORD PTR AE_OK[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR AE_BAD_PARAMETER[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	acpi_ex_acquire_mutex_object, .-acpi_ex_acquire_mutex_object
	.comm	ex_acquire_mutex_object,4,4
	.comm	acpi_gbl_global_lock_mutex,8,8
	.comm	AE_OK,4,4
	.comm	AE_BAD_PARAMETER,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_acpi_ex_acquire_mutex_object.c"
	.text
	.align	2
	.global	acpi_ex_acquire_mutex_object
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ex_acquire_mutex_object, %function
acpi_ex_acquire_mutex_object:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L17
	mov	r6, r0
	ldr	r0, [r3]
	mov	r5, r2
	bl	ACPI_FUNCTION_TRACE_PTR
	cmp	r4, #0
	beq	.L14
.L2:
	ldr	r3, [r4]
	cmp	r3, r5
	beq	.L11
	ldr	r7, .L17+4
.L3:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L15
	mov	r1, r6
	ldr	r0, [r4, #16]
	bl	acpi_ex_system_wait_mutex
	mov	r6, r0
.L5:
	mov	r0, r6
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L16
.L6:
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [r7]
	str	r5, [r4]
	str	r2, [r4, #4]
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	return_ACPI_STATUS
.L16:
	mov	r0, r6
	bl	return_ACPI_STATUS
	b	.L6
.L15:
	mov	r0, r6
	bl	acpi_ev_acquire_global_lock
	mov	r6, r0
	b	.L5
.L11:
	ldr	r3, [r4, #4]
	ldr	r7, .L17+4
	add	r3, r3, #1
	ldr	r0, [r7]
	str	r3, [r4, #4]
	bl	return_ACPI_STATUS
	b	.L3
.L14:
	ldr	r3, .L17+12
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L2
.L18:
	.align	2
.L17:
	.word	ex_acquire_mutex_object
	.word	AE_OK
	.word	acpi_gbl_global_lock_mutex
	.word	AE_BAD_PARAMETER
	.size	acpi_ex_acquire_mutex_object, .-acpi_ex_acquire_mutex_object
	.comm	ex_acquire_mutex_object,4,4
	.comm	acpi_gbl_global_lock_mutex,4,4
	.comm	AE_OK,4,4
	.comm	AE_BAD_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
