	.file	"extr_acer-wmi.c_wmid3_set_device_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown buffer length %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Get Current Device Status failed: 0x%x - 0x%x\n"
	.align 8
.LC2:
	.string	"Set Device Status failed: 0x%x - 0x%x\n"
	.text
	.p2align 4
	.type	wmid3_set_device_status, @function
wmid3_set_device_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	edx, DWORD PTR commun_func_bitmap[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR commun_fn_key_number[rip]
	movaps	XMMWORD PTR 80[rsp], xmm0
	lea	rcx, 24[rsp]
	movaps	XMMWORD PTR 48[rsp], xmm0
	lea	r8, 112[rsp]
	mov	DWORD PTR 32[rsp], eax
	mov	DWORD PTR 44[rsp], eax
	lea	rax, 36[rsp]
	mov	QWORD PTR 88[rsp], rax
	mov	eax, DWORD PTR ACPI_ALLOCATE_BUFFER[rip]
	movaps	XMMWORD PTR 112[rsp], xmm0
	movaps	XMMWORD PTR 144[rsp], xmm0
	mov	DWORD PTR 28[rsp], edx
	mov	QWORD PTR 56[rsp], rcx
	lea	rcx, 48[rsp]
	mov	DWORD PTR 40[rsp], edx
	mov	edx, 2
	mov	DWORD PTR 112[rsp], eax
	mov	DWORD PTR 144[rsp], eax
	mov	DWORD PTR 24[rsp], 1
	mov	QWORD PTR 64[rsp], 0
	mov	DWORD PTR 48[rsp], 12
	mov	DWORD PTR 36[rsp], 2
	mov	QWORD PTR 96[rsp], 0
	mov	DWORD PTR 80[rsp], 12
	mov	QWORD PTR 128[rsp], 0
	mov	QWORD PTR 160[rsp], 0
	mov	edi, DWORD PTR WMID_GUID3[rip]
	call	wmi_evaluate_method@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L1
	mov	r13, QWORD PTR 120[rsp]
	test	r13, r13
	je	.L18
	mov	rax, QWORD PTR ACPI_TYPE_BUFFER[rip]
	cmp	QWORD PTR 0[r13], rax
	jne	.L21
	mov	esi, DWORD PTR 0[r13]
	cmp	esi, 8
	jne	.L22
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, r13
	mov	rdx, QWORD PTR 8[rax]
	mov	r15, QWORD PTR 16[rax]
	mov	r14d, DWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rdx
	call	kfree@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rax, rdx
	or	rax, r15
	jne	.L23
	mov	eax, ebx
	not	ebx
	mov	edi, DWORD PTR WMID_GUID3[rip]
	lea	rcx, 80[rsp]
	or	eax, r14d
	and	ebx, r14d
	test	rbp, rbp
	mov	edx, 1
	cmovne	ebx, eax
	lea	r8, 144[rsp]
	xor	esi, esi
	mov	DWORD PTR 40[rsp], ebx
	call	wmi_evaluate_method@PLT
	mov	edi, eax
	mov	r12d, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L1
	mov	rbp, QWORD PTR 152[rsp]
	test	rbp, rbp
	je	.L18
	mov	rax, QWORD PTR ACPI_TYPE_BUFFER[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L19
	mov	esi, DWORD PTR 0[rbp]
	cmp	esi, 4
	je	.L11
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_warn@PLT
.L19:
	mov	rdi, rbp
	call	kfree@PLT
.L18:
	mov	r12d, DWORD PTR AE_ERROR[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 168[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 184
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	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
.L22:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_warn@PLT
	mov	rdi, r13
	call	kfree@PLT
	mov	r12d, DWORD PTR AE_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r13
	call	kfree@PLT
	mov	r12d, DWORD PTR AE_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, r15d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 16[rax]
	call	kfree@PLT
	mov	rax, r13
	or	rax, rbx
	je	.L1
	mov	rdx, r13
	mov	esi, ebx
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_warn@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wmid3_set_device_status, .-wmid3_set_device_status
	.comm	commun_func_bitmap,4,4
	.comm	commun_fn_key_number,4,4
	.comm	WMID_GUID3,4,4
	.comm	AE_ERROR,4,4
	.comm	ACPI_TYPE_BUFFER,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_acer-wmi.c_wmid3_set_device_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown buffer length %d\012\000"
	.align	2
.LC1:
	.ascii	"Get Current Device Status failed: 0x%x - 0x%x\012\000"
	.align	2
.LC2:
	.ascii	"Set Device Status failed: 0x%x - 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wmid3_set_device_status, %function
wmid3_set_device_status:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r3, #0
	mov	r7, #12
	mov	r2, #2
	mov	r9, #1
	ldr	ip, .L25
	mov	r6, r1
	ldr	r4, .L25+4
	ldr	r1, .L25+8
	ldr	lr, .L25+12
	sub	sp, sp, #92
	ldr	ip, [ip]
	ldr	r8, .L25+16
	ldr	r1, [r1]
	str	r1, [sp, #84]
	mov	r1,#0
	ldr	r4, [r4]
	ldr	lr, [lr]
	mov	r1, r3
	str	r3, [sp, #32]
	str	r3, [sp, #56]
	str	r3, [sp, #64]
	str	r3, [sp, #76]
	str	r3, [sp, #68]
	str	r3, [sp, #80]
	mov	r5, r0
	add	r3, sp, r7
	add	r0, sp, #60
	str	ip, [sp, #60]
	str	ip, [sp, #72]
	str	r0, [sp]
	add	ip, sp, #36
	str	r3, [sp, #28]
	ldr	r0, [r8]
	add	r3, sp, #24
	str	r4, [sp, #16]
	str	r4, [sp, #40]
	str	lr, [sp, #20]
	str	lr, [sp, #44]
	str	r2, [sp, #36]
	str	ip, [sp, #52]
	str	r9, [sp, #12]
	str	r7, [sp, #24]
	str	r7, [sp, #48]
	bl	wmi_evaluate_method
	mov	r4, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L1
	ldr	r7, [sp, #64]
	cmp	r7, #0
	beq	.L18
	ldr	r9, .L25+20
	ldr	r1, [r7]
	ldr	r3, [r9]
	cmp	r1, r3
	bne	.L21
	cmp	r1, #8
	bne	.L22
	ldr	r3, [r7, #4]
	mov	r0, r7
	ldr	fp, [r3, #4]
	ldr	r10, [r3, #8]
	ldr	r7, [r3]
	bl	kfree
	orrs	r3, fp, r10
	bne	.L23
	cmp	r5, #0
	add	r3, sp, #72
	orrne	r6, r6, r7
	biceq	r6, r7, r6
	mov	r2, #1
	mov	r1, #0
	str	r3, [sp]
	ldr	r0, [r8]
	add	r3, sp, #48
	str	r6, [sp, #40]
	bl	wmi_evaluate_method
	mov	r4, r0
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L1
	ldr	r5, [sp, #76]
	cmp	r5, #0
	beq	.L18
	ldr	r3, [r9]
	ldr	r1, [r5]
	cmp	r1, r3
	bne	.L19
	cmp	r1, #4
	beq	.L11
	ldr	r0, .L25+24
	bl	pr_warn
.L19:
	mov	r0, r5
	bl	kfree
.L18:
	ldr	r3, .L25+28
	ldr	r4, [r3]
.L1:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r0, .L25+24
	bl	pr_warn
	mov	r0, r7
	bl	kfree
	ldr	r3, .L25+28
	ldr	r4, [r3]
	b	.L1
.L21:
	mov	r0, r7
	bl	kfree
	ldr	r3, .L25+28
	ldr	r4, [r3]
	b	.L1
.L23:
	mov	r2, fp
	mov	r1, r10
	ldr	r0, .L25+32
	bl	pr_warn
	b	.L1
.L11:
	ldr	r3, [r5, #4]
	mov	r0, r5
	ldr	r6, [r3, #4]
	ldr	r5, [r3, #8]
	bl	kfree
	orrs	r3, r6, r5
	beq	.L1
	mov	r2, r6
	mov	r1, r5
	ldr	r0, .L25+36
	bl	pr_warn
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	ACPI_ALLOCATE_BUFFER
	.word	commun_func_bitmap
	.word	.LC3
	.word	commun_fn_key_number
	.word	WMID_GUID3
	.word	ACPI_TYPE_BUFFER
	.word	.LC0
	.word	AE_ERROR
	.word	.LC1
	.word	.LC2
	.size	wmid3_set_device_status, .-wmid3_set_device_status
	.comm	commun_func_bitmap,4,4
	.comm	commun_fn_key_number,4,4
	.comm	WMID_GUID3,4,4
	.comm	AE_ERROR,4,4
	.comm	ACPI_TYPE_BUFFER,4,4
	.comm	ACPI_ALLOCATE_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
