	.file	"extr_utosi.c_acpi_ut_interface_terminate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_ut_interface_terminate
	.type	acpi_ut_interface_terminate, @function
acpi_ut_interface_terminate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR acpi_gbl_osi_mutex[rip]
	mov	esi, DWORD PTR ACPI_WAIT_FOREVER[rip]
	call	acpi_os_acquire_mutex@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L1
	mov	rbp, QWORD PTR acpi_gbl_supported_interfaces[rip]
	.p2align 4,,10
	.p2align 3
.L12:
	test	rbp, rbp
	je	.L14
.L3:
	mov	rcx, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR acpi_gbl_supported_interfaces[rip], rcx
	test	DWORD PTR ACPI_OSI_DYNAMIC[rip], eax
	jne	.L15
	mov	edx, DWORD PTR ACPI_OSI_INVALID[rip]
	test	DWORD PTR ACPI_OSI_DEFAULT_INVALID[rip], eax
	je	.L6
	or	eax, edx
	mov	DWORD PTR 0[rbp], eax
	mov	rbp, rcx
	test	rbp, rbp
	jne	.L3
.L14:
	mov	edi, DWORD PTR acpi_gbl_osi_mutex[rip]
	call	acpi_os_release_mutex@PLT
	mov	r12d, DWORD PTR AE_OK[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	not	edx
	and	eax, edx
	mov	DWORD PTR 0[rbp], eax
	mov	rbp, rcx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 8[rbp]
	call	ACPI_FREE@PLT
	mov	rdi, rbp
	call	ACPI_FREE@PLT
	mov	rbp, QWORD PTR acpi_gbl_supported_interfaces[rip]
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	acpi_ut_interface_terminate, .-acpi_ut_interface_terminate
	.comm	acpi_gbl_supported_interfaces,8,8
	.comm	acpi_gbl_osi_mutex,4,4
	.comm	AE_OK,4,4
	.comm	ACPI_WAIT_FOREVER,4,4
	.comm	ACPI_OSI_INVALID,4,4
	.comm	ACPI_OSI_DYNAMIC,4,4
	.comm	ACPI_OSI_DEFAULT_INVALID,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_utosi.c_acpi_ut_interface_terminate.c"
	.text
	.align	2
	.global	acpi_ut_interface_terminate
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ut_interface_terminate, %function
acpi_ut_interface_terminate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L12
	ldr	r6, .L12+4
	ldr	r1, [r3]
	ldr	r0, [r6]
	bl	acpi_os_acquire_mutex
	mov	r4, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L1
	ldr	r5, .L12+8
	ldr	r4, [r5]
	cmp	r4, #0
	beq	.L7
	ldr	r7, .L12+12
	ldr	r9, .L12+16
	ldr	r8, .L12+20
	b	.L3
.L4:
	ldr	r0, [r8]
	ldr	r1, [r9]
	tst	r3, r0
	orr	r0, r3, r1
	bic	r3, r3, r1
	strne	r0, [r4]
	streq	r3, [r4]
	mov	r4, r2
	cmp	r4, #0
	beq	.L7
.L3:
	ldr	r3, [r4]
	ldr	r1, [r7]
	ldr	r2, [r4, #8]
	tst	r3, r1
	str	r2, [r5]
	beq	.L4
	ldr	r0, [r4, #4]
	bl	ACPI_FREE
	mov	r0, r4
	bl	ACPI_FREE
	ldr	r4, [r5]
	cmp	r4, #0
	bne	.L3
.L7:
	ldr	r0, [r6]
	bl	acpi_os_release_mutex
	ldr	r3, .L12+24
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	ACPI_WAIT_FOREVER
	.word	acpi_gbl_osi_mutex
	.word	acpi_gbl_supported_interfaces
	.word	ACPI_OSI_DYNAMIC
	.word	ACPI_OSI_INVALID
	.word	ACPI_OSI_DEFAULT_INVALID
	.word	AE_OK
	.size	acpi_ut_interface_terminate, .-acpi_ut_interface_terminate
	.comm	acpi_gbl_supported_interfaces,4,4
	.comm	acpi_gbl_osi_mutex,4,4
	.comm	AE_OK,4,4
	.comm	ACPI_WAIT_FOREVER,4,4
	.comm	ACPI_OSI_INVALID,4,4
	.comm	ACPI_OSI_DYNAMIC,4,4
	.comm	ACPI_OSI_DEFAULT_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
