	.file	"extr_mk712.c_mk712_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mk712_open, @function
mk712_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	ebp, ebp
	lea	rdi, mk712_lock[rip]
	mov	rsi, rbp
	call	spin_lock_irqsave@PLT
	mov	rsi, QWORD PTR MK712_CONTROL[rip]
	xor	edi, edi
	add	rsi, QWORD PTR mk712_io[rip]
	call	outb@PLT
	mov	rsi, QWORD PTR MK712_CONTROL[rip]
	mov	edi, DWORD PTR MK712_ENABLE_INT[rip]
	add	rsi, QWORD PTR mk712_io[rip]
	or	edi, DWORD PTR MK712_INT_ON_CONVERSION_COMPLETE[rip]
	or	edi, DWORD PTR MK712_INT_ON_CHANGE_IN_TOUCH_STATUS[rip]
	or	edi, DWORD PTR MK712_ENABLE_PERIODIC_CONVERSIONS[rip]
	or	edi, DWORD PTR MK712_POWERUP[rip]
	call	outb@PLT
	mov	rsi, QWORD PTR MK712_RATE[rip]
	mov	edi, 10
	add	rsi, QWORD PTR mk712_io[rip]
	call	outb@PLT
	mov	rsi, rbp
	lea	rdi, mk712_lock[rip]
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mk712_open, .-mk712_open
	.comm	mk712_lock,4,4
	.comm	mk712_io,8,8
	.comm	MK712_RATE,8,8
	.comm	MK712_POWERUP,4,4
	.comm	MK712_INT_ON_CONVERSION_COMPLETE,4,4
	.comm	MK712_INT_ON_CHANGE_IN_TOUCH_STATUS,4,4
	.comm	MK712_ENABLE_PERIODIC_CONVERSIONS,4,4
	.comm	MK712_ENABLE_INT,4,4
	.comm	MK712_CONTROL,8,8
	.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_mk712.c_mk712_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mk712_open, %function
mk712_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	ldr	r5, .L4
	ldr	r4, .L4+4
	ldr	r7, .L4+8
	mov	r1, r6
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, [r7]
	ldr	r1, [r4]
	mov	r0, r6
	add	r1, r1, r3
	bl	outb
	ldr	r2, .L4+12
	ldr	r3, .L4+16
	ldr	r0, [r2]
	ldr	r2, .L4+20
	ldr	r3, [r3]
	ldr	ip, [r2]
	ldr	r1, .L4+24
	orr	r3, r3, r0
	orr	r3, r3, ip
	ldr	r0, [r1]
	ldr	ip, .L4+28
	ldr	r2, [r7]
	orr	r3, r3, r0
	ldr	r1, [r4]
	ldr	r0, [ip]
	add	r1, r1, r2
	orr	r0, r3, r0
	bl	outb
	ldr	r3, .L4+32
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, #10
	add	r1, r1, r3
	bl	outb
	mov	r1, r6
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	mk712_lock
	.word	mk712_io
	.word	MK712_CONTROL
	.word	MK712_INT_ON_CONVERSION_COMPLETE
	.word	MK712_ENABLE_INT
	.word	MK712_INT_ON_CHANGE_IN_TOUCH_STATUS
	.word	MK712_ENABLE_PERIODIC_CONVERSIONS
	.word	MK712_POWERUP
	.word	MK712_RATE
	.size	mk712_open, .-mk712_open
	.comm	mk712_lock,4,4
	.comm	mk712_io,4,4
	.comm	MK712_RATE,4,4
	.comm	MK712_POWERUP,4,4
	.comm	MK712_INT_ON_CONVERSION_COMPLETE,4,4
	.comm	MK712_INT_ON_CHANGE_IN_TOUCH_STATUS,4,4
	.comm	MK712_ENABLE_PERIODIC_CONVERSIONS,4,4
	.comm	MK712_ENABLE_INT,4,4
	.comm	MK712_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
