	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rotary_encoder_report_event
_rotary_encoder_report_event:           ## @rotary_encoder_report_event
	.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	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	movl	20(%rbx), %esi
	movq	(%rbx), %rdx
	callq	_input_report_rel
	jmp	LBB0_12
LBB0_2:
	movl	8(%rbx), %edx
	cmpq	$0, (%rbx)
	movq	24(%rbx), %rax
	js	LBB0_3
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	cmpl	12(%rbx), %edx
	jae	LBB0_11
LBB0_8:
	incl	%edx
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	12(%rbx)
LBB0_11:
	movl	%edx, 8(%rbx)
	movl	16(%rbx), %edi
	movl	20(%rbx), %esi
	callq	_input_report_abs
LBB0_12:
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_3:
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addl	12(%rbx), %edx
LBB0_5:
	xorl	%ecx, %ecx
	subl	$1, %edx
	cmovbl	%ecx, %edx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rotary_encoder_report_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rotary_encoder_report_event
_rotary_encoder_report_event:           ; @rotary_encoder_report_event
	.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	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w0, w1, [x19, #16]
	ldr	x2, [x19]
	bl	_input_report_rel
	b	LBB0_8
LBB0_2:
	ldr	w2, [x19, #8]
	ldr	x9, [x19]
	ldr	x8, [x19, #24]
	tbnz	x9, #63, LBB0_9
; %bb.3:
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	w9, [x19, #12]
	cmp	w2, w9
	b.hs	LBB0_7
LBB0_5:
	add	w2, w2, #1
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w8, [x19, #12]
	udiv	w9, w2, w8
	msub	w2, w9, w8, w2
LBB0_7:
	str	w2, [x19, #8]
	ldp	w0, w1, [x19, #16]
	bl	_input_report_abs
LBB0_8:
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
LBB0_9:
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w9, [x19, #12]
	add	w2, w9, w2
LBB0_11:
	sub	w9, w2, #1
	cmp	w2, #0
	csel	w2, wzr, w9, eq
	cbnz	x8, LBB0_6
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rotary_encoder_report_event
.subsections_via_symbols
