	.file	"extr_utmutex.c_acpi_ut_acquire_mutex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ut_acquire_mutex
	.type	acpi_ut_acquire_mutex, @function
acpi_ut_acquire_mutex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ut_acquire_mutex[rip]
	call	ACPI_FUNCTION_NAME@PLT
	cmp	QWORD PTR ACPI_MAX_MUTEX[rip], rbp
	mov	r12d, DWORD PTR AE_BAD_PARAMETER[rip]
	jnb	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	mov	rbx, rbp
	call	acpi_os_get_thread_id@PLT
	mov	rdi, rbp
	sal	rbx, 4
	mov	r13, rax
	call	acpi_ut_get_mutex_name@PLT
	mov	edi, eax
	call	ACPI_DEBUG_PRINT@PLT
	mov	rax, QWORD PTR acpi_gbl_mutex_info[rip]
	mov	esi, DWORD PTR ACPI_WAIT_FOREVER[rip]
	mov	edi, DWORD PTR 12[rax+rbx]
	call	acpi_os_acquire_mutex@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_SUCCESS@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L4
	call	acpi_ut_get_mutex_name@PLT
	mov	edi, eax
	call	ACPI_DEBUG_PRINT@PLT
	add	rbx, QWORD PTR acpi_gbl_mutex_info[rip]
	mov	eax, r12d
	add	DWORD PTR 8[rbx], 1
	mov	QWORD PTR [rbx], r13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	acpi_ut_get_mutex_name@PLT
	mov	edi, ebp
	call	ACPI_EXCEPTION@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	acpi_ut_acquire_mutex, .-acpi_ut_acquire_mutex
	.comm	ut_acquire_mutex,4,4
	.comm	acpi_gbl_mutex_info,8,8
	.comm	AE_INFO,4,4
	.comm	AE_BAD_PARAMETER,4,4
	.comm	AE_ALREADY_ACQUIRED,4,4
	.comm	AE_ACQUIRE_DEADLOCK,4,4
	.comm	ACPI_WAIT_FOREVER,4,4
	.comm	ACPI_NUM_MUTEX,8,8
	.comm	ACPI_MAX_MUTEX,8,8
	.comm	ACPI_DB_MUTEX,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_utmutex.c_acpi_ut_acquire_mutex.c"
	.text
	.align	2
	.global	acpi_ut_acquire_mutex
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ut_acquire_mutex, %function
acpi_ut_acquire_mutex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L7
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_NAME
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	r3, r4
	bcs	.L2
	ldr	r3, .L7+8
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	acpi_os_get_thread_id
	ldr	r8, .L7+12
	mov	r7, r0
	mov	r0, r4
	bl	acpi_ut_get_mutex_name
	bl	ACPI_DEBUG_PRINT
	ldr	r2, [r8]
	add	r3, r4, r4, lsl #1
	ldr	r1, .L7+16
	add	r2, r2, r3, lsl #2
	ldr	r0, [r2, #8]
	ldr	r1, [r1]
	lsl	r6, r3, #2
	bl	acpi_os_acquire_mutex
	mov	r5, r0
	bl	ACPI_SUCCESS
	cmp	r0, #0
	mov	r0, r4
	beq	.L4
	bl	acpi_ut_get_mutex_name
	bl	ACPI_DEBUG_PRINT
	ldr	r2, [r8]
	mov	r0, r5
	add	r1, r2, r6
	ldr	r3, [r1, #4]
	add	r3, r3, #1
	str	r3, [r1, #4]
	str	r7, [r2, r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	acpi_ut_get_mutex_name
	mov	r0, r4
	bl	ACPI_EXCEPTION
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	ut_acquire_mutex
	.word	ACPI_MAX_MUTEX
	.word	AE_BAD_PARAMETER
	.word	acpi_gbl_mutex_info
	.word	ACPI_WAIT_FOREVER
	.size	acpi_ut_acquire_mutex, .-acpi_ut_acquire_mutex
	.comm	ut_acquire_mutex,4,4
	.comm	acpi_gbl_mutex_info,4,4
	.comm	AE_INFO,4,4
	.comm	AE_BAD_PARAMETER,4,4
	.comm	AE_ALREADY_ACQUIRED,4,4
	.comm	AE_ACQUIRE_DEADLOCK,4,4
	.comm	ACPI_WAIT_FOREVER,4,4
	.comm	ACPI_NUM_MUTEX,4,4
	.comm	ACPI_MAX_MUTEX,4,4
	.comm	ACPI_DB_MUTEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
