	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9705_poll_touch
_wm9705_poll_touch:                     ## @wm9705_poll_touch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_WM97XX_ADCSEL_X@GOTPCREL(%rip), %rax
	movq	_WM97XX_PEN_DOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%rax), %esi
	leaq	8(%r14), %rdx
	callq	_wm9705_poll_sample
	movq	_RC_VALID@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_4
## %bb.1:
	movq	_WM97XX_ADCSEL_Y@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	orl	(%rax), %esi
	leaq	4(%r14), %rdx
	movq	%rbx, %rdi
	callq	_wm9705_poll_sample
	cmpl	(%r12), %eax
	jne	LBB0_4
## %bb.2:
	movq	_pil@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	_WM97XX_ADCSEL_PRES@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm9705_poll_sample             ## TAILCALL
LBB0_3:
	movq	_DEFAULT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%r12), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM97XX_ADCSEL_X,4,2            ## @WM97XX_ADCSEL_X
	.comm	_WM97XX_PEN_DOWN,4,2            ## @WM97XX_PEN_DOWN
	.comm	_RC_VALID,4,2                   ## @RC_VALID
	.comm	_WM97XX_ADCSEL_Y,4,2            ## @WM97XX_ADCSEL_Y
	.comm	_pil,8,3                        ## @pil
	.comm	_WM97XX_ADCSEL_PRES,4,2         ## @WM97XX_ADCSEL_PRES
	.comm	_DEFAULT_PRESSURE,4,2           ## @DEFAULT_PRESSURE
	.no_dead_strip	_wm9705_poll_touch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm9705_poll_touch
_wm9705_poll_touch:                     ; @wm9705_poll_touch
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WM97XX_ADCSEL_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM97XX_ADCSEL_X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _WM97XX_PEN_DOWN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _WM97XX_PEN_DOWN@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w9, w8
	add	x2, x19, #8
	bl	_wm9705_poll_sample
Lloh5:
	adrp	x22, _RC_VALID@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RC_VALID@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
Lloh7:
	adrp	x8, _WM97XX_ADCSEL_Y@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WM97XX_ADCSEL_Y@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w1, w9, w8
	add	x2, x19, #4
	mov	x0, x20
	bl	_wm9705_poll_sample
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _pil@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pil@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _WM97XX_ADCSEL_PRES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WM97XX_ADCSEL_PRES@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	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
	b	_wm9705_poll_sample
LBB0_4:
Lloh16:
	adrp	x8, _DEFAULT_PRESSURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEFAULT_PRESSURE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w0, [x22]
LBB0_5:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WM97XX_ADCSEL_X,4,2            ; @WM97XX_ADCSEL_X
	.comm	_WM97XX_PEN_DOWN,4,2            ; @WM97XX_PEN_DOWN
	.comm	_RC_VALID,4,2                   ; @RC_VALID
	.comm	_WM97XX_ADCSEL_Y,4,2            ; @WM97XX_ADCSEL_Y
	.comm	_pil,8,3                        ; @pil
	.comm	_WM97XX_ADCSEL_PRES,4,2         ; @WM97XX_ADCSEL_PRES
	.comm	_DEFAULT_PRESSURE,4,2           ; @DEFAULT_PRESSURE
	.no_dead_strip	_wm9705_poll_touch
.subsections_via_symbols
