	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc13783_ts_open
_mc13783_ts_open:                       ## @mc13783_ts_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
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_mc13xxx_lock
	movl	(%rbx), %edi
	movq	_MC13XXX_IRQ_TS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_mc13xxx_irq_ack
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	_mc13783_ts_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MC13783_TS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_mc13xxx_irq_request
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	movq	_MC13XXX_ADC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MC13XXX_ADC0_TSMOD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MC13XXX_ADC0_TSMOD0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mc13xxx_reg_rmw
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_mc13xxx_irq_free
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movl	(%rbx), %edi
	callq	_mc13xxx_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC13XXX_IRQ_TS,4,2             ## @MC13XXX_IRQ_TS
	.comm	_mc13783_ts_handler,4,2         ## @mc13783_ts_handler
	.comm	_MC13783_TS_NAME,4,2            ## @MC13783_TS_NAME
	.comm	_MC13XXX_ADC0,4,2               ## @MC13XXX_ADC0
	.comm	_MC13XXX_ADC0_TSMOD_MASK,4,2    ## @MC13XXX_ADC0_TSMOD_MASK
	.comm	_MC13XXX_ADC0_TSMOD0,4,2        ## @MC13XXX_ADC0_TSMOD0
	.no_dead_strip	_mc13783_ts_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc13783_ts_open
_mc13783_ts_open:                       ; @mc13783_ts_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
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	w0, [x0]
	bl	_mc13xxx_lock
	ldr	w0, [x19]
Lloh0:
	adrp	x21, _MC13XXX_IRQ_TS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MC13XXX_IRQ_TS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_mc13xxx_irq_ack
	ldr	w0, [x19]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _mc13783_ts_handler@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mc13783_ts_handler@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _MC13783_TS_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC13783_TS_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x4, x19
	bl	_mc13xxx_irq_request
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _MC13XXX_ADC0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC13XXX_ADC0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _MC13XXX_ADC0_TSMOD_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MC13XXX_ADC0_TSMOD_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _MC13XXX_ADC0_TSMOD0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MC13XXX_ADC0_TSMOD0@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_mc13xxx_reg_rmw
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_mc13xxx_irq_free
LBB0_3:
	ldr	w0, [x19]
	bl	_mc13xxx_unlock
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MC13XXX_IRQ_TS,4,2             ; @MC13XXX_IRQ_TS
	.comm	_mc13783_ts_handler,4,2         ; @mc13783_ts_handler
	.comm	_MC13783_TS_NAME,4,2            ; @MC13783_TS_NAME
	.comm	_MC13XXX_ADC0,4,2               ; @MC13XXX_ADC0
	.comm	_MC13XXX_ADC0_TSMOD_MASK,4,2    ; @MC13XXX_ADC0_TSMOD_MASK
	.comm	_MC13XXX_ADC0_TSMOD0,4,2        ; @MC13XXX_ADC0_TSMOD0
	.no_dead_strip	_mc13783_ts_open
.subsections_via_symbols
