	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_mouse_scan
_gpio_mouse_scan:                       ## @gpio_mouse_scan
	.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	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	48(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_gpiod_get_value
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_input_report_key
LBB0_2:
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_gpiod_get_value
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_input_report_key
LBB0_4:
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_gpiod_get_value
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_input_report_key
LBB0_6:
	movq	24(%r12), %rdi
	callq	_gpiod_get_value
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	callq	_gpiod_get_value
	subl	%eax, %r14d
	movq	8(%r12), %rdi
	callq	_gpiod_get_value
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_gpiod_get_value
	subl	%eax, %ebx
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_input_report_rel
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.no_dead_strip	_gpio_mouse_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_mouse_scan
_gpio_mouse_scan:                       ; @gpio_mouse_scan
	.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
	ldp	x19, x22, [x0]
	ldr	x0, [x22, #48]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_gpiod_get_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_key
LBB0_2:
	ldr	x0, [x22, #40]
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_gpiod_get_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_key
LBB0_4:
	ldr	x0, [x22, #32]
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	bl	_gpiod_get_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_input_report_key
LBB0_6:
	ldr	x0, [x22, #24]
	bl	_gpiod_get_value
	mov	x20, x0
	ldr	x0, [x22, #16]
	bl	_gpiod_get_value
	sub	w20, w20, w0
	ldr	x0, [x22, #8]
	bl	_gpiod_get_value
	mov	x21, x0
	ldr	x0, [x22]
	bl	_gpiod_get_value
	sub	w21, w21, w0
Lloh9:
	adrp	x8, _REL_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_rel
Lloh12:
	adrp	x8, _REL_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_rel
	mov	x0, 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	_input_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.no_dead_strip	_gpio_mouse_scan
.subsections_via_symbols
