	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9034_touch_open
_da9034_touch_open:                     ## @da9034_touch_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movl	4(%rax), %edi
	leaq	8(%rax), %rsi
	movq	_DA9034_EVENT_PEN_DOWN@GOTPCREL(%rip), %rax
	movq	_DA9034_EVENT_TSI_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_da903x_register_notifier
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	4(%rbx), %edi
	movq	_DA9034_MANUAL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9034_LDO_ADC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_da903x_set_bits
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	4(%rbx), %edi
	movq	_DA9034_TSI_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$27, %edx
	callq	_da903x_write
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	4(%rbx), %edi
	movq	_DA9034_TSI_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_da903x_write
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_detect_pen_down
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9034_EVENT_PEN_DOWN,4,2      ## @DA9034_EVENT_PEN_DOWN
	.comm	_DA9034_EVENT_TSI_READY,4,2     ## @DA9034_EVENT_TSI_READY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DA9034_MANUAL_CTRL,4,2         ## @DA9034_MANUAL_CTRL
	.comm	_DA9034_LDO_ADC_EN,4,2          ## @DA9034_LDO_ADC_EN
	.comm	_DA9034_TSI_CTRL1,4,2           ## @DA9034_TSI_CTRL1
	.comm	_DA9034_TSI_CTRL2,4,2           ## @DA9034_TSI_CTRL2
	.comm	_STATE_IDLE,4,2                 ## @STATE_IDLE
	.no_dead_strip	_da9034_touch_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9034_touch_open
_da9034_touch_open:                     ; @da9034_touch_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _DA9034_EVENT_PEN_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9034_EVENT_PEN_DOWN@GOTPAGEOFF]
	add	x1, x19, #8
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DA9034_EVENT_TSI_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DA9034_EVENT_TSI_READY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_da903x_register_notifier
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _DA9034_MANUAL_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DA9034_MANUAL_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DA9034_LDO_ADC_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9034_LDO_ADC_EN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_da903x_set_bits
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x8, _DA9034_TSI_CTRL1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DA9034_TSI_CTRL1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #27
	bl	_da903x_write
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x8, _DA9034_TSI_CTRL2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DA9034_TSI_CTRL2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_da903x_write
	cbnz	w0, LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_detect_pen_down
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9034_EVENT_PEN_DOWN,4,2      ; @DA9034_EVENT_PEN_DOWN
	.comm	_DA9034_EVENT_TSI_READY,4,2     ; @DA9034_EVENT_TSI_READY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DA9034_MANUAL_CTRL,4,2         ; @DA9034_MANUAL_CTRL
	.comm	_DA9034_LDO_ADC_EN,4,2          ; @DA9034_LDO_ADC_EN
	.comm	_DA9034_TSI_CTRL1,4,2           ; @DA9034_TSI_CTRL1
	.comm	_DA9034_TSI_CTRL2,4,2           ; @DA9034_TSI_CTRL2
	.comm	_STATE_IDLE,4,2                 ; @STATE_IDLE
	.no_dead_strip	_da9034_touch_open
.subsections_via_symbols
