	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf50_ts_irq_bh
_vf50_ts_irq_bh:                        ## @vf50_ts_irq_bh
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	40(%rsi), %r14
	movl	24(%rsi), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_pinctrl_pm_select_default_state
	cmpl	$0, 32(%rbx)
	je	LBB0_1
LBB0_14:
	movl	4(%rbx), %edi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_abs
	movl	4(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	callq	_input_sync
	movq	%rbx, %rdi
	callq	_vf50_ts_enable_touch_detection
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_COLI_PULLUP_MIN_DELAY_US@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_COLI_PULLUP_MAX_DELAY_US@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 32(%rbx)
	jne	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	movl	28(%rbx), %esi
	movl	8(%rbx), %edx
	callq	_adc_ts_measure
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	movl	12(%rbx), %esi
	movl	24(%rbx), %edx
	callq	_adc_ts_measure
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	callq	_adc_ts_measure
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movq	16(%rbx), %rdi
	addq	$12, %rdi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	callq	_adc_ts_measure
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r9d
	movl	$-2000, %r15d                   ## imm = 0xF830
	cmpl	$65, %r14d
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$65, %r12d
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	imull	$1000, %r12d, %eax              ## imm = 0x3E8
	cltd
	movq	_VF_ADC_MAX@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%eax, %r15d
	imull	%r9d, %eax
	cltd
	idivl	%r14d
	subl	%eax, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$2000, %r15d                    ## imm = 0x7D0
	movl	%r15d, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	callq	_dev_dbg
	cmpl	$2000, %r15d                    ## imm = 0x7D0
	jg	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rbx), %r15d
	jl	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VF_ADC_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	subl	%r12d, %edx
	callq	_input_report_abs
	movl	4(%rbx), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	subl	%r13d, %edx
	callq	_input_report_abs
	movl	4(%rbx), %edi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_abs
	movl	4(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	callq	_input_sync
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_VF_ADC_MAX,4,2                 ## @VF_ADC_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Measured values: x: %d, y: %d, z1: %d, z2: %d, p: %d\n"

	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_COLI_PULLUP_MIN_DELAY_US,4,2   ## @COLI_PULLUP_MIN_DELAY_US
	.comm	_COLI_PULLUP_MAX_DELAY_US,4,2   ## @COLI_PULLUP_MAX_DELAY_US
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_vf50_ts_irq_bh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf50_ts_irq_bh
_vf50_ts_irq_bh:                        ; @vf50_ts_irq_bh
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x20, [x1, #40]
	ldr	w0, [x1, #24]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	x0, x20
	bl	_pinctrl_pm_select_default_state
	ldr	w8, [x19, #32]
Lloh0:
	adrp	x27, _ABS_PRESSURE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ABS_PRESSURE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BTN_TOUCH@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BTN_TOUCH@GOTPAGEOFF]
	cbz	w8, LBB0_2
LBB0_1:
	ldr	w0, [x19, #4]
	ldr	w1, [x27]
	mov	w2, #0
	bl	_input_report_abs
	ldr	w0, [x19, #4]
	ldr	w1, [x26]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19, #4]
	bl	_input_sync
	mov	x0, x19
	bl	_vf50_ts_enable_touch_detection
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w21, #0
Lloh7:
	adrp	x28, _VF_ADC_MAX@GOTPAGE
Lloh8:
	ldr	x28, [x28, _VF_ADC_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _COLI_PULLUP_MIN_DELAY_US@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COLI_PULLUP_MIN_DELAY_US@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _COLI_PULLUP_MAX_DELAY_US@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COLI_PULLUP_MAX_DELAY_US@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_usleep_range
	ldr	w8, [x19, #32]
	mov	w21, #1
	cbnz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #28]
	ldr	w2, [x19, #8]
	bl	_adc_ts_measure
	tbnz	w0, #31, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	ldr	w1, [x19, #12]
	ldr	w2, [x19, #24]
	bl	_adc_ts_measure
	tbnz	w0, #31, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	x8, [x19, #16]
	add	x0, x8, #8
	ldp	w2, w1, [x19, #8]
	bl	_adc_ts_measure
	tbnz	w0, #31, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	x8, [x19, #16]
	add	x0, x8, #12
	ldp	w2, w1, [x19, #8]
	bl	_adc_ts_measure
	tbnz	w0, #31, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x5, x0
	mov	w8, #-2000
	cmp	w24, #65
	b.lo	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #65
	b.lo	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1000
	mul	w8, w22, w8
	ldr	w9, [x28]
	sdiv	w8, w8, w9
	mul	w9, w8, w5
	sdiv	w9, w9, w24
	sub	w8, w8, w9
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w8, #2000
	mov	x0, x20
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	mov	x6, x25
	bl	_dev_dbg
	cmp	w25, #2000
	b.gt	LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w25, w8
	b.lt	LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	tbz	w21, #0, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
Lloh17:
	adrp	x8, _ABS_X@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x28]
	sub	w2, w8, w22
	bl	_input_report_abs
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w8, [x28]
	sub	w2, w8, w23
	bl	_input_report_abs
	ldr	w0, [x19, #4]
	ldr	w1, [x27]
	mov	x2, x25
	bl	_input_report_abs
	ldr	w0, [x19, #4]
	ldr	w1, [x26]
	mov	w2, #1
	bl	_input_report_key
	ldr	w0, [x19, #4]
	bl	_input_sync
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VF_ADC_MAX,4,2                 ; @VF_ADC_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Measured values: x: %d, y: %d, z1: %d, z2: %d, p: %d\n"

	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_COLI_PULLUP_MIN_DELAY_US,4,2   ; @COLI_PULLUP_MIN_DELAY_US
	.comm	_COLI_PULLUP_MAX_DELAY_US,4,2   ; @COLI_PULLUP_MAX_DELAY_US
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_vf50_ts_irq_bh
.subsections_via_symbols
