	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9713_poll_touch
_wm9713_poll_touch:                     ## @wm9713_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_coord@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm9713_poll_coord              ## TAILCALL
LBB0_1:
	movq	_WM9713_ADCSEL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r14), %rdx
	movq	%rbx, %rdi
	callq	_wm9713_poll_sample
	movq	_RC_VALID@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_5
## %bb.2:
	movq	_WM9713_ADCSEL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r14), %rdx
	movq	%rbx, %rdi
	callq	_wm9713_poll_sample
	cmpl	(%r15), %eax
	jne	LBB0_5
## %bb.3:
	movq	_pil@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.7:
	movq	_WM9713_ADCSEL_PRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm9713_poll_sample             ## TAILCALL
LBB0_4:
	movq	_DEFAULT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%r15), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coord,8,3                      ## @coord
	.comm	_RC_VALID,4,2                   ## @RC_VALID
	.comm	_WM9713_ADCSEL_X,4,2            ## @WM9713_ADCSEL_X
	.comm	_WM9713_ADCSEL_Y,4,2            ## @WM9713_ADCSEL_Y
	.comm	_pil,8,3                        ## @pil
	.comm	_WM9713_ADCSEL_PRES,4,2         ## @WM9713_ADCSEL_PRES
	.comm	_DEFAULT_PRESSURE,4,2           ## @DEFAULT_PRESSURE
	.no_dead_strip	_wm9713_poll_touch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm9713_poll_touch
_wm9713_poll_touch:                     ; @wm9713_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, _coord@GOTPAGE
Lloh1:
	ldr	x8, [x8, _coord@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, 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	_wm9713_poll_coord
LBB0_2:
Lloh3:
	adrp	x8, _WM9713_ADCSEL_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM9713_ADCSEL_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #8
	mov	x0, x20
	bl	_wm9713_poll_sample
Lloh6:
	adrp	x21, _RC_VALID@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RC_VALID@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _WM9713_ADCSEL_Y@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM9713_ADCSEL_Y@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, x19, #4
	mov	x0, x20
	bl	_wm9713_poll_sample
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
Lloh11:
	adrp	x8, _pil@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pil@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _WM9713_ADCSEL_PRES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM9713_ADCSEL_PRES@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	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	_wm9713_poll_sample
LBB0_6:
Lloh17:
	adrp	x8, _DEFAULT_PRESSURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DEFAULT_PRESSURE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w0, [x21]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_coord,8,3                      ; @coord
	.comm	_RC_VALID,4,2                   ; @RC_VALID
	.comm	_WM9713_ADCSEL_X,4,2            ; @WM9713_ADCSEL_X
	.comm	_WM9713_ADCSEL_Y,4,2            ; @WM9713_ADCSEL_Y
	.comm	_pil,8,3                        ; @pil
	.comm	_WM9713_ADCSEL_PRES,4,2         ; @WM9713_ADCSEL_PRES
	.comm	_DEFAULT_PRESSURE,4,2           ; @DEFAULT_PRESSURE
	.no_dead_strip	_wm9713_poll_touch
.subsections_via_symbols
