	.file	"extr_spi-lm70llp.c_spi_lm70llp_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"spi_lm70llp instance already loaded. Aborting.\n"
	.align 8
.LC1:
	.string	"spi_bitbang_start failed with status %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"lm70"
.LC3:
	.string	"spidev_lm70 at %s\n"
.LC4:
	.string	"spi_new_device failed\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"spi_lm70llp probe fail, status %d\n"
	.text
	.p2align 4
	.type	spi_lm70llp_attach, @function
spi_lm70llp_attach:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR lm70llp[rip], 0
	je	.L2
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	esi, 96
	mov	edi, DWORD PTR [rax]
	call	spi_alloc_master@PLT
	mov	r12, rax
	test	rax, rax
	je	.L17
	mov	rdi, rax
	mov	r13, rsp
	call	spi_master_get_devdata@PLT
	mov	ecx, DWORD PTR lm70_txrx[rip]
	mov	rdi, r13
	xor	esi, esi
	mov	QWORD PTR 24[rax], r12
	mov	rbx, rax
	mov	eax, DWORD PTR lm70_chipselect[rip]
	mov	rdx, QWORD PTR SPI_MODE_0[rip]
	mov	DWORD PTR 40[rbx], eax
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR SPI_3WIRE[rip]
	mov	edx, 16
	mov	QWORD PTR 8[rbx], rbp
	mov	QWORD PTR 16[rbx], rax
	call	memset@PLT
	mov	eax, DWORD PTR PARPORT_FLAG_EXCL[rip]
	mov	rdx, r13
	xor	ecx, ecx
	mov	esi, DWORD PTR DRVNAME[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rbx
	mov	DWORD PTR [rsp], eax
	call	parport_register_dev_model@PLT
	mov	ebp, DWORD PTR ENOMEM[rip]
	mov	r13, rax
	neg	ebp
	test	rax, rax
	je	.L7
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	call	parport_claim@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L8
	lea	r14, 16[rbx]
	mov	rdi, r14
	call	spi_bitbang_start@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L18
	mov	edi, DWORD PTR 88[rbx]
	lea	rsi, .LC2[rip]
	call	strcpy@PLT
	mov	rax, QWORD PTR SPI_3WIRE[rip]
	or	rax, QWORD PTR SPI_MODE_0[rip]
	mov	DWORD PTR 56[rbx], 6000000
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR lm70_INIT[rip]
	mov	QWORD PTR 64[rbx], rax
	mov	QWORD PTR 80[rbx], 0
	call	parport_write_data@PLT
	mov	QWORD PTR 72[rbx], rbx
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, 56[rbx]
	call	spi_new_device@PLT
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	je	.L11
	lea	rdi, 4[rax]
	call	dev_name@PLT
	lea	rsi, .LC3[rip]
	mov	edx, eax
	mov	rax, QWORD PTR 48[rbx]
	lea	rdi, 4[rax]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	DWORD PTR [rax], 8
	mov	QWORD PTR lm70llp[rip], rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_warn@PLT
.L10:
	mov	rdi, QWORD PTR 8[rbx]
	xor	esi, esi
	call	parport_write_data@PLT
	mov	edi, 10
	call	mdelay@PLT
	mov	rdi, QWORD PTR [rbx]
	call	parport_release@PLT
.L8:
	mov	rdi, r13
	call	parport_unregister_device@PLT
.L7:
	mov	rdi, r12
	call	spi_master_put@PLT
.L5:
	mov	esi, ebp
	lea	rdi, .LC5[rip]
	call	pr_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ebp, DWORD PTR ENOMEM[rip]
	neg	ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_warn@PLT
	mov	ebp, DWORD PTR ENODEV[rip]
	mov	rdi, r14
	neg	ebp
	call	spi_bitbang_stop@PLT
	jmp	.L10
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spi_lm70llp_attach, .-spi_lm70llp_attach
	.comm	lm70llp,8,8
	.comm	lm70_txrx,4,4
	.comm	lm70_chipselect,4,4
	.comm	lm70_INIT,4,4
	.comm	SPI_MODE_0,8,8
	.comm	SPI_3WIRE,8,8
	.comm	PARPORT_FLAG_EXCL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	DRVNAME,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_spi-lm70llp.c_spi_lm70llp_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"spi_lm70llp instance already loaded. Aborting.\012\000"
	.align	2
.LC1:
	.ascii	"spi_bitbang_start failed with status %d\012\000"
	.align	2
.LC2:
	.ascii	"lm70\000"
	.align	2
.LC3:
	.ascii	"spidev_lm70 at %s\012\000"
	.align	2
.LC4:
	.ascii	"spi_new_device failed\012\000"
	.align	2
.LC5:
	.ascii	"spi_lm70llp probe fail, status %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_lm70llp_attach, %function
spi_lm70llp_attach:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L20
	ldr	r3, .L20+4
	ldr	r6, [r8]
	sub	sp, sp, #28
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
	ldr	r0, .L20+8
	bl	pr_warn
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [r0]
	mov	r5, r0
	mov	r1, #48
	ldr	r0, [r3]
	bl	spi_alloc_master
	subs	r7, r0, #0
	beq	.L17
	bl	spi_master_get_devdata
	mov	r4, r0
	ldr	r3, .L20+12
	ldr	r2, .L20+16
	ldr	r9, .L20+20
	ldr	r1, [r3]
	ldr	r10, .L20+24
	ldr	r3, [r0, #16]
	ldr	r0, [r2]
	ldr	r2, [r9]
	str	r1, [r4, #20]
	ldr	r1, .L20+28
	str	r7, [r4, #12]
	str	r0, [r3, r2, lsl #2]
	ldr	r2, [r10]
	ldr	r3, .L20+32
	ldr	ip, [r1]
	str	r5, [r4, #4]
	mov	r0, r5
	ldr	r1, [r3]
	str	r2, [r4, #8]
	mov	r3, r6
	add	r2, sp, #12
	str	r4, [sp, #16]
	str	ip, [sp, #12]
	bl	parport_register_dev_model
	subs	r5, r0, #0
	beq	.L18
	str	r5, [r4]
	bl	parport_claim
	subs	fp, r0, #0
	blt	.L8
	add	r3, r4, #8
	mov	r0, r3
	str	r3, [sp, #4]
	bl	spi_bitbang_start
	subs	fp, r0, #0
	blt	.L19
	ldr	r1, .L20+36
	ldr	r0, [r4, #44]
	bl	strcpy
	ldr	r0, [r9]
	ldr	r3, [r10]
	ldr	r2, .L20+40
	ldr	r1, .L20+44
	orr	r3, r3, r0
	str	r3, [r4, #32]
	str	r1, [r4, #28]
	ldr	r0, [r4, #4]
	ldr	r1, [r2]
	str	r6, [r4, #40]
	bl	parport_write_data
	ldr	r0, [r4, #12]
	str	r4, [r4, #36]
	add	r1, r4, #28
	bl	spi_new_device
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L11
	add	r5, r0, #4
	mov	r0, r5
	bl	dev_name
	ldr	r1, .L20+48
	mov	r2, r0
	mov	r0, r5
	bl	dev_dbg
	mov	r2, #8
	ldr	r3, [r4, #24]
	str	r2, [r3]
	str	r4, [r8]
	b	.L1
.L19:
	mov	r2, fp
	mov	r0, r5
	ldr	r1, .L20+52
	bl	dev_warn
.L10:
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	parport_write_data
	mov	r0, #10
	bl	mdelay
	ldr	r0, [r4]
	bl	parport_release
.L8:
	mov	r0, r5
	bl	parport_unregister_device
.L7:
	mov	r0, r7
	bl	spi_master_put
.L5:
	mov	r1, fp
	ldr	r0, .L20+56
	bl	pr_info
	b	.L1
.L17:
	ldr	r3, .L20+60
	ldr	r2, [r3]
	rsb	fp, r2, #0
	b	.L5
.L18:
	ldr	r3, .L20+60
	ldr	r2, [r3]
	rsb	fp, r2, #0
	b	.L7
.L11:
	mov	r0, r5
	ldr	r1, .L20+64
	bl	dev_warn
	ldr	r3, .L20+68
	ldr	r0, [sp, #4]
	ldr	r2, [r3]
	rsb	fp, r2, #0
	bl	spi_bitbang_stop
	b	.L10
.L16:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	lm70llp
	.word	.LC6
	.word	.LC0
	.word	lm70_chipselect
	.word	lm70_txrx
	.word	SPI_MODE_0
	.word	SPI_3WIRE
	.word	PARPORT_FLAG_EXCL
	.word	DRVNAME
	.word	.LC2
	.word	lm70_INIT
	.word	6000000
	.word	.LC3
	.word	.LC1
	.word	.LC5
	.word	ENOMEM
	.word	.LC4
	.word	ENODEV
	.size	spi_lm70llp_attach, .-spi_lm70llp_attach
	.comm	lm70llp,4,4
	.comm	lm70_txrx,4,4
	.comm	lm70_chipselect,4,4
	.comm	lm70_INIT,4,4
	.comm	SPI_MODE_0,4,4
	.comm	SPI_3WIRE,4,4
	.comm	PARPORT_FLAG_EXCL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	DRVNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
