	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_hid_emumouse_filter
_mac_hid_emumouse_filter:               ## @mac_hid_emumouse_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_EV_KEY@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	jne	LBB0_6
## %bb.1:
	movq	_mouse_button2_keycode@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_3
## %bb.2:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_mouse_button3_keycode@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_6
## %bb.4:
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	_mac_hid_emumouse_dev@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%ecx, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	callq	_input_sync
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_mouse_button2_keycode,4,2      ## @mouse_button2_keycode
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_mouse_button3_keycode,4,2      ## @mouse_button3_keycode
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_mac_hid_emumouse_dev,4,2       ## @mac_hid_emumouse_dev
	.no_dead_strip	_mac_hid_emumouse_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_hid_emumouse_filter
_mac_hid_emumouse_filter:               ; @mac_hid_emumouse_filter
	.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
Lloh0:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _mouse_button2_keycode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mouse_button2_keycode@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _mouse_button3_keycode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mouse_button3_keycode@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
Lloh13:
	adrp	x19, _mac_hid_emumouse_dev@GOTPAGE
Lloh14:
	ldr	x19, [x19, _mac_hid_emumouse_dev@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x2, x3
	bl	_input_report_key
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_mouse_button2_keycode,4,2      ; @mouse_button2_keycode
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_mouse_button3_keycode,4,2      ; @mouse_button3_keycode
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_mac_hid_emumouse_dev,4,2       ; @mac_hid_emumouse_dev
	.no_dead_strip	_mac_hid_emumouse_filter
.subsections_via_symbols
