	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt_sync_frame
_mt_sync_frame:                         ## @mt_sync_frame
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MT_QUIRK_WIN8_PTP_BUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r15), %rcx
	movq	%rbx, %rdi
	callq	_input_event
LBB0_2:
	movq	%rbx, %rdi
	callq	_input_mt_sync_frame
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r15), %rcx
	movq	%rbx, %rdi
	callq	_input_event
	movq	%rbx, %rdi
	callq	_input_sync
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mt_release_pending_palms
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	_MT_IO_FLAGS_ACTIVE_SLOTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movq	_MT_IO_FLAGS_PENDING_SLOTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_set_bit
	jmp	LBB0_5
LBB0_4:
	callq	_clear_bit
LBB0_5:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_QUIRK_WIN8_PTP_BUTTONS,4,2  ## @MT_QUIRK_WIN8_PTP_BUTTONS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_TIMESTAMP,4,2              ## @MSC_TIMESTAMP
	.comm	_MT_IO_FLAGS_ACTIVE_SLOTS,4,2   ## @MT_IO_FLAGS_ACTIVE_SLOTS
	.comm	_MT_IO_FLAGS_PENDING_SLOTS,4,2  ## @MT_IO_FLAGS_PENDING_SLOTS
	.no_dead_strip	_mt_sync_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt_sync_frame
_mt_sync_frame:                         ; @mt_sync_frame
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MT_QUIRK_WIN8_PTP_BUTTONS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT_QUIRK_WIN8_PTP_BUTTONS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	x3, [x20, #8]
	mov	x0, x21
	bl	_input_event
LBB0_2:
	mov	x0, x21
	bl	_input_mt_sync_frame
Lloh9:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MSC_TIMESTAMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSC_TIMESTAMP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x3, [x20, #24]
	mov	x0, x21
	bl	_input_event
	mov	x0, x21
	bl	_input_sync
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mt_release_pending_palms
	stp	xzr, xzr, [x20, #8]
Lloh15:
	adrp	x20, _MT_IO_FLAGS_ACTIVE_SLOTS@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MT_IO_FLAGS_ACTIVE_SLOTS@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_test_bit
	mov	x8, x0
Lloh17:
	adrp	x9, _MT_IO_FLAGS_PENDING_SLOTS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MT_IO_FLAGS_PENDING_SLOTS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	mov	x1, x19
	cbz	x8, LBB0_4
; %bb.3:
	bl	_set_bit
	b	LBB0_5
LBB0_4:
	bl	_clear_bit
LBB0_5:
	ldr	w0, [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	_clear_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_QUIRK_WIN8_PTP_BUTTONS,4,2  ; @MT_QUIRK_WIN8_PTP_BUTTONS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_TIMESTAMP,4,2              ; @MSC_TIMESTAMP
	.comm	_MT_IO_FLAGS_ACTIVE_SLOTS,4,2   ; @MT_IO_FLAGS_ACTIVE_SLOTS
	.comm	_MT_IO_FLAGS_PENDING_SLOTS,4,2  ; @MT_IO_FLAGS_PENDING_SLOTS
	.no_dead_strip	_mt_sync_frame
.subsections_via_symbols
