	.file	"extr_evglock.c_acpi_ev_init_global_lock_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No response from Global Lock hardware, disabling lock"
	.text
	.p2align 4
	.globl	acpi_ev_init_global_lock_handler
	.type	acpi_ev_init_global_lock_handler, @function
acpi_ev_init_global_lock_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edi, DWORD PTR ev_init_global_lock_handler[rip]
	call	ACPI_FUNCTION_TRACE@PLT
	cmp	QWORD PTR acpi_gbl_reduced_hardware[rip], 0
	jne	.L10
.L2:
	mov	esi, DWORD PTR acpi_ev_global_lock_handler[rip]
	mov	edi, DWORD PTR ACPI_EVENT_GLOBAL[rip]
	xor	edx, edx
	call	acpi_install_fixed_event_handler@PLT
	mov	rdx, QWORD PTR FALSE[rip]
	cmp	QWORD PTR AE_NO_HARDWARE_RESPONSE[rip], rax
	mov	QWORD PTR acpi_gbl_global_lock_present[rip], rdx
	je	.L11
.L3:
	lea	rdi, acpi_gbl_global_lock_pending_lock[rip]
	call	acpi_os_create_lock@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L12
.L4:
	mov	rax, QWORD PTR FALSE[rip]
	mov	rdi, rbp
	mov	QWORD PTR acpi_gbl_global_lock_pending[rip], rax
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR acpi_gbl_global_lock_present[rip], rax
	call	return_ACPI_STATUS@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR AE_OK[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	return_ACPI_STATUS@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rax, .LC0[rip]
	lea	edi, [rax]
	call	ACPI_ERROR@PLT
	mov	rdi, QWORD PTR AE_OK[rip]
	call	return_ACPI_STATUS@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	acpi_ev_init_global_lock_handler, .-acpi_ev_init_global_lock_handler
	.comm	ev_init_global_lock_handler,4,4
	.comm	acpi_gbl_reduced_hardware,8,8
	.comm	acpi_gbl_global_lock_present,8,8
	.comm	acpi_gbl_global_lock_pending_lock,4,4
	.comm	acpi_gbl_global_lock_pending,8,8
	.comm	acpi_ev_global_lock_handler,4,4
	.comm	TRUE,8,8
	.comm	FALSE,8,8
	.comm	AE_OK,8,8
	.comm	AE_NO_HARDWARE_RESPONSE,8,8
	.comm	AE_INFO,4,4
	.comm	ACPI_EVENT_GLOBAL,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_evglock.c_acpi_ev_init_global_lock_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No response from Global Lock hardware, disabling lo"
	.ascii	"ck\000"
	.text
	.align	2
	.global	acpi_ev_init_global_lock_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ev_init_global_lock_handler, %function
acpi_ev_init_global_lock_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, lr}
	ldr	r0, [r3]
	bl	ACPI_FUNCTION_TRACE
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
.L2:
	ldr	r3, .L16+8
	ldr	r2, .L16+12
	ldr	r0, [r3]
	ldr	r1, [r2]
	mov	r2, #0
	bl	acpi_install_fixed_event_handler
	ldr	r3, .L16+16
	ldr	r6, .L16+20
	ldr	r2, [r3]
	ldr	r5, .L16+24
	ldr	r3, [r6]
	cmp	r2, r0
	str	r3, [r5]
	beq	.L14
.L3:
	ldr	r0, .L16+28
	bl	acpi_os_create_lock
	mov	r4, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L15
.L4:
	ldr	r3, .L16+32
	ldr	r1, [r6]
	ldr	r3, [r3]
	ldr	r2, .L16+36
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, lr}
	str	r1, [r2]
	b	return_ACPI_STATUS
.L13:
	ldr	r3, .L16+40
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L2
.L15:
	mov	r0, r4
	bl	return_ACPI_STATUS
	b	.L4
.L14:
	ldr	r0, .L16+44
	bl	ACPI_ERROR
	ldr	r3, .L16+40
	ldr	r0, [r3]
	bl	return_ACPI_STATUS
	b	.L3
.L17:
	.align	2
.L16:
	.word	ev_init_global_lock_handler
	.word	acpi_gbl_reduced_hardware
	.word	ACPI_EVENT_GLOBAL
	.word	acpi_ev_global_lock_handler
	.word	AE_NO_HARDWARE_RESPONSE
	.word	FALSE
	.word	acpi_gbl_global_lock_present
	.word	acpi_gbl_global_lock_pending_lock
	.word	TRUE
	.word	acpi_gbl_global_lock_pending
	.word	AE_OK
	.word	.LC0
	.size	acpi_ev_init_global_lock_handler, .-acpi_ev_init_global_lock_handler
	.comm	ev_init_global_lock_handler,4,4
	.comm	acpi_gbl_reduced_hardware,4,4
	.comm	acpi_gbl_global_lock_present,4,4
	.comm	acpi_gbl_global_lock_pending_lock,4,4
	.comm	acpi_gbl_global_lock_pending,4,4
	.comm	acpi_ev_global_lock_handler,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	AE_OK,4,4
	.comm	AE_NO_HARDWARE_RESPONSE,4,4
	.comm	AE_INFO,4,4
	.comm	ACPI_EVENT_GLOBAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
