	.file	"extr_via686a.c_via686a_device_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"via686a"
.LC1:
	.string	"Device allocation failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Device resource addition failed (%d)\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Device addition failed (%d)\n"
	.text
	.p2align 4
	.type	via686a_device_add, @function
via686a_device_add:
.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
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movzx	ebp, di
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR IORESOURCE_IO[rip]
	mov	r14, rsp
	mov	WORD PTR [rsp], di
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], r13
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR VIA686A_EXTENT[rip]
	add	eax, ebp
	sub	eax, 1
	mov	DWORD PTR 20[rsp], eax
	call	acpi_check_resource_conflict@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	rdi, r13
	mov	esi, ebp
	call	platform_device_alloc@PLT
	mov	DWORD PTR pdev[rip], eax
	mov	edi, eax
	test	eax, eax
	je	.L14
	mov	edx, 1
	mov	rsi, r14
	call	platform_device_add_resources@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	edi, DWORD PTR pdev[rip]
	call	platform_device_add@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR ENOMEM[rip]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	neg	r12d
	call	pr_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, eax
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_err@PLT
.L5:
	mov	edi, DWORD PTR pdev[rip]
	call	platform_device_put@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	via686a_device_add, .-via686a_device_add
	.comm	pdev,4,4
	.comm	VIA686A_EXTENT,4,4
	.comm	IORESOURCE_IO,4,4
	.comm	ENOMEM,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_via686a.c_via686a_device_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"via686a\000"
	.align	2
.LC1:
	.ascii	"Device allocation failed\012\000"
	.align	2
.LC2:
	.ascii	"Device resource addition failed (%d)\012\000"
	.align	2
.LC3:
	.ascii	"Device addition failed (%d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	via686a_device_add, %function
via686a_device_add:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r3, [r3]
	sub	sp, sp, #24
	ldr	r2, [r2]
	ldr	r1, .L16+8
	add	r3, r0, r3
	ldr	r6, .L16+12
	sub	r3, r3, #1
	strh	r5, [sp, #4]	@ movhi
	add	r0, sp, #4
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	str	r6, [sp, #8]
	bl	acpi_check_resource_conflict
	subs	r4, r0, #0
	beq	.L12
.L1:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	mov	r1, r5
	mov	r0, r6
	bl	platform_device_alloc
	ldr	r5, .L16+16
	cmp	r0, #0
	str	r0, [r5]
	beq	.L14
	mov	r2, #1
	add	r1, sp, #4
	bl	platform_device_add_resources
	subs	r4, r0, #0
	bne	.L15
	ldr	r0, [r5]
	bl	platform_device_add
	subs	r4, r0, #0
	beq	.L1
	mov	r1, r4
	ldr	r0, .L16+20
	bl	pr_err
	b	.L5
.L14:
	ldr	r3, .L16+24
	ldr	r0, .L16+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	bl	pr_err
	b	.L1
.L15:
	mov	r1, r4
	ldr	r0, .L16+32
	bl	pr_err
.L5:
	ldr	r0, [r5]
	bl	platform_device_put
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	VIA686A_EXTENT
	.word	IORESOURCE_IO
	.word	.LC4
	.word	.LC0
	.word	pdev
	.word	.LC3
	.word	ENOMEM
	.word	.LC1
	.word	.LC2
	.size	via686a_device_add, .-via686a_device_add
	.comm	pdev,4,4
	.comm	VIA686A_EXTENT,4,4
	.comm	IORESOURCE_IO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
