	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mk712_open
_mk712_open:                            ## @mk712_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mk712_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_mk712_io@GOTPCREL(%rip), %rbx
	movq	_MK712_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_MK712_ENABLE_INT@GOTPCREL(%rip), %rax
	movq	_MK712_INT_ON_CONVERSION_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MK712_INT_ON_CHANGE_IN_TOUCH_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MK712_ENABLE_PERIODIC_CONVERSIONS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_MK712_POWERUP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_outb
	movq	_MK712_RATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$10, %edi
	callq	_outb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mk712_lock,4,2                 ## @mk712_lock
	.comm	_mk712_io,8,3                   ## @mk712_io
	.comm	_MK712_CONTROL,8,3              ## @MK712_CONTROL
	.comm	_MK712_ENABLE_INT,4,2           ## @MK712_ENABLE_INT
	.comm	_MK712_INT_ON_CONVERSION_COMPLETE,4,2 ## @MK712_INT_ON_CONVERSION_COMPLETE
	.comm	_MK712_INT_ON_CHANGE_IN_TOUCH_STATUS,4,2 ## @MK712_INT_ON_CHANGE_IN_TOUCH_STATUS
	.comm	_MK712_ENABLE_PERIODIC_CONVERSIONS,4,2 ## @MK712_ENABLE_PERIODIC_CONVERSIONS
	.comm	_MK712_POWERUP,4,2              ## @MK712_POWERUP
	.comm	_MK712_RATE,8,3                 ## @MK712_RATE
	.no_dead_strip	_mk712_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mk712_open
_mk712_open:                            ; @mk712_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _mk712_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mk712_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x20, _mk712_io@GOTPAGE
Lloh3:
	ldr	x20, [x20, _mk712_io@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _MK712_CONTROL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MK712_CONTROL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outb
Lloh6:
	adrp	x8, _MK712_ENABLE_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MK712_ENABLE_INT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MK712_INT_ON_CONVERSION_COMPLETE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MK712_INT_ON_CONVERSION_COMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MK712_INT_ON_CHANGE_IN_TOUCH_STATUS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MK712_INT_ON_CHANGE_IN_TOUCH_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _MK712_ENABLE_PERIODIC_CONVERSIONS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MK712_ENABLE_PERIODIC_CONVERSIONS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MK712_POWERUP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MK712_POWERUP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh20:
	ldr	w9, [x10]
	orr	w0, w8, w9
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outb
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _MK712_RATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MK712_RATE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #10
	bl	_outb
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mk712_lock,4,2                 ; @mk712_lock
	.comm	_mk712_io,8,3                   ; @mk712_io
	.comm	_MK712_CONTROL,8,3              ; @MK712_CONTROL
	.comm	_MK712_ENABLE_INT,4,2           ; @MK712_ENABLE_INT
	.comm	_MK712_INT_ON_CONVERSION_COMPLETE,4,2 ; @MK712_INT_ON_CONVERSION_COMPLETE
	.comm	_MK712_INT_ON_CHANGE_IN_TOUCH_STATUS,4,2 ; @MK712_INT_ON_CHANGE_IN_TOUCH_STATUS
	.comm	_MK712_ENABLE_PERIODIC_CONVERSIONS,4,2 ; @MK712_ENABLE_PERIODIC_CONVERSIONS
	.comm	_MK712_POWERUP,4,2              ; @MK712_POWERUP
	.comm	_MK712_RATE,8,3                 ; @MK712_RATE
	.no_dead_strip	_mk712_open
.subsections_via_symbols
