	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbtouch_process_pkt
_usbtouch_process_pkt:                  ## @usbtouch_process_pkt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	callq	*8(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	16(%rbx), %edx
	callq	_input_report_key
	movq	_swap_xy@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	12(%rbx), %edx
	jmp	LBB0_4
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	12(%rbx), %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	8(%rbx), %edx
LBB0_4:
	callq	_input_report_abs
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	4(%rbx), %edx
	callq	_input_report_abs
LBB0_6:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_swap_xy,8,3                    ## @swap_xy
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.no_dead_strip	_usbtouch_process_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbtouch_process_pkt
_usbtouch_process_pkt:                  ; @usbtouch_process_pkt
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x20, #8]
	blr	x8
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	bl	_input_report_key
Lloh3:
	adrp	x8, _swap_xy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _swap_xy@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x19]
Lloh6:
	adrp	x9, _ABS_X@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w2, [x19, #8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w2, [x19, #12]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
LBB0_5:
	bl	_input_report_abs
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldp	w0, w2, [x19]
	bl	_input_report_abs
LBB0_7:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_swap_xy,8,3                    ; @swap_xy
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.no_dead_strip	_usbtouch_process_pkt
.subsections_via_symbols
