	.file	"extr_acpi_ec.c_acpi_ec_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	", ECDT"
.LC2:
	.string	", GLK"
.LC3:
	.string	"ec"
.LC4:
	.string	"_UID"
.LC5:
	.string	"_GLK"
.LC6:
	.string	"_GPE has invalid type %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"Embedded Controller: GPE %#x%s%s"
	.section	.rodata.str1.1
.LC8:
	.string	"can't evaluate _GPE - %s\n"
.LC9:
	.string	"_GPE"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB10:
	.text
.LHOTB10:
	.p2align 4
	.type	acpi_ec_probe, @function
acpi_ec_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 96
	.cfi_def_cfa_offset 144
	mov	r12d, DWORD PTR ENXIO[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	acpi_get_type@PLT
	cmp	rax, QWORD PTR ACPI_TYPE_DEVICE[rip]
	je	.L43
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	acpi_disabled@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	call	device_is_devclass_fixed@PLT
	mov	rdi, rbp
	mov	r13, rax
	test	rax, rax
	jne	.L45
	call	device_get_parent@PLT
	xor	ecx, ecx
	lea	rdx, ec_ids.2033[rip]
	mov	rsi, rbp
	mov	edi, eax
	call	ACPI_ID_PROBE@PLT
	mov	r12d, eax
	test	eax, eax
	jg	.L1
	mov	esi, DWORD PTR M_TEMP[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	edi, 32
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], 0
	mov	r14, rax
	mov	eax, DWORD PTR ACPI_ALLOCATE_BUFFER[rip]
	mov	DWORD PTR 8[rsp], eax
	call	acpi_get_handle@PLT
	lea	rdx, 24[r14]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	mov	r15d, eax
	call	acpi_GetInteger@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L6
	mov	r13, QWORD PTR 24[r14]
.L7:
	mov	edi, DWORD PTR acpi_ec_devclass[rip]
	mov	rsi, r13
	call	devclass_get_device@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L8
	call	device_is_alive@PLT
	test	rax, rax
	jne	.L46
.L8:
	mov	edi, r15d
	lea	rdx, 8[r14]
	lea	rsi, .LC5[rip]
	call	acpi_GetInteger@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L10
	mov	QWORD PTR 8[r14], 0
.L10:
	xor	edx, edx
	mov	edi, r15d
	lea	rsi, .LC9[rip]
	mov	rcx, rsp
	call	AcpiEvaluateObject@PLT
	mov	edi, eax
	mov	r13d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L47
	mov	r13, QWORD PTR [rsp]
	lea	r15, .LC0[rip]
	test	r13, r13
	je	.L4
	mov	edx, DWORD PTR 0[r13]
	cmp	edx, 128
	je	.L11
	cmp	edx, 129
	jne	.L12
	mov	eax, DWORD PTR 16[r13]
	mov	QWORD PTR 16[r14], 0
	mov	DWORD PTR [r14], eax
.L13:
	mov	rdi, rbp
	mov	rsi, r14
	call	acpi_set_private@PLT
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	jne	.L16
.L21:
	lea	r15, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR 8[r14], 0
	lea	r13, 16[rsp]
	mov	ecx, DWORD PTR [r14]
	mov	r9, r15
	lea	rax, .LC0[rip]
	mov	rdi, r13
	lea	r8, .LC2[rip]
	mov	esi, 64
	cmove	r8, rax
	lea	rdx, .LC7[rip]
	call	snprintf@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	device_set_desc_copy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	call	acpi_get_private@PLT
	mov	r14, rax
	test	rax, rax
	je	.L48
	xor	r12d, r12d
	lea	r15, .LC1[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L48:
	test	r12d, r12d
	jle	.L49
.L9:
	mov	esi, DWORD PTR M_TEMP[rip]
	mov	rdi, r14
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR 24[r14], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	device_printf@PLT
	jmp	.L4
.L11:
	mov	esi, 2
	mov	rdi, r13
	call	ACPI_PKG_VALID@PLT
	test	eax, eax
	je	.L4
	mov	rsi, QWORD PTR 8[r13]
	xor	edi, edi
	call	acpi_GetReference@PLT
	mov	QWORD PTR 16[r14], rax
	test	rax, rax
	je	.L4
	mov	rdx, r14
	mov	esi, 1
	mov	rdi, r13
	call	acpi_PkgInt32@PLT
	test	eax, eax
	je	.L13
	jmp	.L4
.L46:
	mov	rdi, rbp
	call	device_disable@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	test	r12d, r12d
	jg	.L9
	jmp	.L21
.L47:
	mov	edi, r13d
	lea	r15, .LC0[rip]
	call	AcpiFormatException@PLT
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	device_printf@PLT
	jmp	.L4
.L16:
	call	AcpiOsFree@PLT
	lea	r15, .LC0[rip]
	jmp	.L4
.L44:
	call	__stack_chk_fail@PLT
.L49:
	jmp	.L14
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	acpi_ec_probe.cold, @function
acpi_ec_probe.cold:
.LFSB0:
.L14:
	.cfi_def_cfa_offset 144
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	mov	rax, QWORD PTR ds:8
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	acpi_ec_probe, .-acpi_ec_probe
	.section	.text.unlikely
	.size	acpi_ec_probe.cold, .-acpi_ec_probe.cold
.LCOLDE10:
	.text
.LHOTE10:
	.section	.rodata.str1.1
.LC11:
	.string	"PNP0C09"
	.section	.data.rel.local,"aw"
	.align 16
	.type	ec_ids.2033, @object
	.size	ec_ids.2033, 16
ec_ids.2033:
	.quad	.LC11
	.quad	0
	.comm	acpi_ec_devclass,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_TEMP,4,4
	.comm	ENXIO,4,4
	.comm	ACPI_TYPE_DEVICE,8,8
	.comm	ACPI_ALLOCATE_BUFFER,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_acpi_ec.c_acpi_ec_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	", GLK\000"
	.align	2
.LC2:
	.ascii	", ECDT\000"
	.align	2
.LC3:
	.ascii	"ec\000"
	.align	2
.LC4:
	.ascii	"_UID\000"
	.align	2
.LC5:
	.ascii	"_GLK\000"
	.align	2
.LC6:
	.ascii	"_GPE\000"
	.align	2
.LC7:
	.ascii	"can't evaluate _GPE - %s\012\000"
	.align	2
.LC8:
	.ascii	"_GPE has invalid type %d\012\000"
	.align	2
.LC9:
	.ascii	"Embedded Controller: GPE %#x%s%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_ec_probe, %function
acpi_ec_probe:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L57
	ldr	r6, .L57+4
	sub	sp, sp, #92
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	mov	r5, r0
	ldr	r4, [r6]
	bl	acpi_get_type
	ldr	r3, .L57+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L51
.L1:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	mov	r0, r4
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L51:
	ldr	r0, .L57+12
	bl	acpi_disabled
	subs	r7, r0, #0
	bne	.L1
	mov	r0, r5
	bl	device_is_devclass_fixed
	subs	r8, r0, #0
	mov	r0, r5
	bne	.L53
	bl	device_get_parent
	mov	r3, r8
	mov	r1, r5
	ldr	r2, .L57+16
	bl	ACPI_ID_PROBE
	subs	r4, r0, #0
	bgt	.L1
	ldr	r2, .L57+20
	ldr	r3, .L57+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L57+28
	orr	r2, r1, r2
	mov	r0, #16
	ldr	r1, [r3]
	bl	malloc
	ldr	r3, .L57+32
	mov	r9, r0
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [sp, #16]
	str	r8, [sp, #12]
	bl	acpi_get_handle
	ldr	r1, .L57+36
	add	r2, r9, #12
	mov	r7, r0
	bl	acpi_GetInteger
	bl	ACPI_FAILURE
	ldr	r3, .L57+40
	cmp	r0, #0
	movne	r1, r8
	ldreq	r1, [r9, #12]
	strne	r8, [r9, #12]
	ldr	r0, [r3]
	bl	devclass_get_device
	cmp	r0, #0
	beq	.L8
	bl	device_is_alive
	cmp	r0, #0
	bne	.L54
.L8:
	ldr	r1, .L57+44
	add	r2, r9, #4
	mov	r0, r7
	bl	acpi_GetInteger
	bl	ACPI_FAILURE
	cmp	r0, #0
	movne	r3, #0
	mov	r0, r7
	strne	r3, [r9, #4]
	mov	r2, #0
	ldr	r1, .L57+48
	add	r3, sp, #12
	bl	AcpiEvaluateObject
	mov	r7, r0
	bl	ACPI_FAILURE
	subs	r6, r0, #0
	bne	.L55
	ldr	r7, [sp, #12]
	cmp	r7, #0
	beq	.L11
	ldr	r2, [r7]
	cmp	r2, #128
	beq	.L13
	cmp	r2, #129
	bne	.L14
	ldr	r3, [r7, #8]
	str	r6, [r9, #8]
	str	r3, [r9]
.L15:
	mov	r1, r9
	mov	r0, r5
	bl	acpi_set_private
	ldr	r0, [sp, #12]
	cmp	r0, #0
	beq	.L11
	bl	AcpiOsFree
.L11:
	ldr	r2, [r9, #4]
	ldr	r3, [r9]
	cmp	r2, #0
	bne	.L26
	ldr	r2, .L57+52
	mov	r0, r2
.L5:
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r1, #64
	ldr	r2, .L57+56
	add	r0, sp, #20
	bl	snprintf
	mov	r0, r5
	add	r1, sp, #20
	bl	device_set_desc_copy
	b	.L1
.L53:
	bl	acpi_get_private
	subs	r9, r0, #0
	beq	.L21
	ldm	r9, {r3, r4}
	cmp	r4, #0
	bne	.L22
	ldr	r2, .L57+52
	ldr	r0, .L57+60
	b	.L5
.L21:
	mov	r8, #1
.L4:
	cmp	r4, #0
	ble	.L56
	ldr	r3, .L57+28
	mov	r0, r9
	ldr	r1, [r3]
	bl	free
	b	.L1
.L22:
	mov	r4, r7
	ldr	r2, .L57+64
	ldr	r0, .L57+60
	b	.L5
.L26:
	ldr	r2, .L57+64
	ldr	r0, .L57+52
	b	.L5
.L14:
	mov	r0, r5
	ldr	r1, .L57+68
	bl	device_printf
	b	.L11
.L13:
	mov	r1, #2
	mov	r0, r7
	bl	ACPI_PKG_VALID
	cmp	r0, #0
	beq	.L11
	mov	r0, r6
	ldr	r1, [r7, #4]
	bl	acpi_GetReference
	cmp	r0, #0
	str	r0, [r9, #8]
	beq	.L11
	mov	r0, r7
	mov	r2, r9
	mov	r1, #1
	bl	acpi_PkgInt32
	cmp	r0, #0
	beq	.L15
	b	.L11
.L55:
	mov	r0, r7
	bl	AcpiFormatException
	ldr	r1, .L57+72
	mov	r2, r0
	mov	r0, r5
	bl	device_printf
	b	.L11
.L54:
	mov	r0, r5
	bl	device_disable
	ldr	r4, [r6]
	b	.L4
.L52:
	bl	__stack_chk_fail
.L56:
	ldr	ip, [r9, #4]
	ldr	r1, .L57+52
	cmp	ip, #0
	ldr	r2, .L57+64
	moveq	r2, r1
	cmp	r8, #0
	ldr	r0, .L57+60
	ldr	r3, [r9]
	moveq	r0, r1
	b	.L5
.L58:
	.align	2
.L57:
	.word	.LC10
	.word	ENXIO
	.word	ACPI_TYPE_DEVICE
	.word	.LC3
	.word	.LANCHOR0
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_TEMP
	.word	ACPI_ALLOCATE_BUFFER
	.word	.LC4
	.word	acpi_ec_devclass
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.word	.LC9
	.word	.LC2
	.word	.LC1
	.word	.LC8
	.word	.LC7
	.size	acpi_ec_probe, .-acpi_ec_probe
	.section	.rodata.str1.4
	.align	2
.LC11:
	.ascii	"PNP0C09\000"
	.comm	acpi_ec_devclass,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_TEMP,4,4
	.comm	ENXIO,4,4
	.comm	ACPI_TYPE_DEVICE,4,4
	.comm	ACPI_ALLOCATE_BUFFER,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ec_ids.4317, %object
	.size	ec_ids.4317, 8
ec_ids.4317:
	.word	.LC11
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
