	.file	"extr_surface3-wmi.c_s3_wmi_check_platform_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to enumerate SPI slaves\n"
	.text
	.p2align 4
	.type	s3_wmi_check_platform_device, @function
s3_wmi_check_platform_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	call	ACPI_HANDLE@PLT
	test	eax, eax
	jne	.L16
.L3:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rsi, 8[rsp]
	mov	edi, eax
	mov	ebp, eax
	call	acpi_bus_get_device@PLT
	test	rax, rax
	jne	.L3
	mov	rdi, QWORD PTR 8[rsp]
	call	acpi_device_hid@PLT
	mov	edi, DWORD PTR ACPI_BUTTON_HID_LID[rip]
	mov	esi, eax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR s3_wmi[rip+8], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR SPI_CTL_OBJ_NAME[rip]
	call	strlen@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r14d, DWORD PTR SPI_CTL_OBJ_NAME[rip]
	mov	r13d, eax
	call	acpi_device_bid@PLT
	mov	edx, r13d
	mov	esi, r14d
	mov	edi, eax
	call	strncmp@PLT
	test	rax, rax
	jne	.L3
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR s3_wmi_attach_spi_device[rip]
	xor	r8d, r8d
	mov	esi, ebp
	push	0
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR ACPI_TYPE_DEVICE[rip]
	mov	edx, 1
	lea	r9, 32[rsp]
	call	acpi_walk_namespace@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L18
.L6:
	mov	rax, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L3
	mov	QWORD PTR s3_wmi[rip], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_warn@PLT
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s3_wmi_check_platform_device, .-s3_wmi_check_platform_device
	.comm	s3_wmi_attach_spi_device,4,4
	.comm	s3_wmi,16,16
	.comm	SPI_CTL_OBJ_NAME,4,4
	.comm	ACPI_TYPE_DEVICE,4,4
	.comm	ACPI_BUTTON_HID_LID,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_surface3-wmi.c_s3_wmi_check_platform_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to enumerate SPI slaves\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3_wmi_check_platform_device, %function
s3_wmi_check_platform_device:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L19
	sub	sp, sp, #36
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	mov	r5, r0
	str	r3, [sp, #24]
	bl	ACPI_HANDLE
	subs	r4, r0, #0
	bne	.L16
.L3:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	add	r1, sp, #20
	bl	acpi_bus_get_device
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L19+4
	ldr	r0, [sp, #20]
	ldr	r6, [r3]
	bl	acpi_device_hid
	mov	r1, r0
	mov	r0, r6
	bl	strcmp
	cmp	r0, #0
	ldreq	r3, .L19+8
	ldreq	r2, [sp, #20]
	streq	r2, [r3, #4]
	beq	.L3
.L5:
	ldr	r0, [sp, #20]
	bl	acpi_device_bid
	ldr	r3, .L19+12
	mov	r6, r0
	ldr	r7, [r3]
	mov	r0, r7
	bl	strlen
	mov	r1, r7
	mov	r2, r0
	mov	r0, r6
	bl	strncmp
	cmp	r0, #0
	bne	.L3
	ldr	ip, .L19+16
	ldr	r3, .L19+20
	str	r0, [sp, #8]
	str	r0, [sp]
	add	r2, sp, #24
	ldr	r3, [r3]
	mov	r1, r4
	ldr	r0, [ip]
	str	r2, [sp, #4]
	mov	r2, #1
	bl	acpi_walk_namespace
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L18
.L6:
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ldrne	r2, .L19+8
	strne	r3, [r2]
	b	.L3
.L18:
	mov	r0, r5
	ldr	r1, .L19+24
	bl	dev_warn
	b	.L6
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	ACPI_BUTTON_HID_LID
	.word	s3_wmi
	.word	SPI_CTL_OBJ_NAME
	.word	ACPI_TYPE_DEVICE
	.word	s3_wmi_attach_spi_device
	.word	.LC0
	.size	s3_wmi_check_platform_device, .-s3_wmi_check_platform_device
	.comm	s3_wmi_attach_spi_device,4,4
	.comm	s3_wmi,8,4
	.comm	SPI_CTL_OBJ_NAME,4,4
	.comm	ACPI_TYPE_DEVICE,4,4
	.comm	ACPI_BUTTON_HID_LID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
