	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfin_rotary_isr
_bfin_rotary_isr:                       ## @bfin_rotary_isr
	.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	%rsi, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_bfin_read_CNT_STATUS
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$131, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_bfin_read_CNT_COUNTER
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_report_rotary_event
	jmp	LBB0_6
LBB0_5:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_report_key_event
LBB0_6:
	movq	_W1LCNT_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfin_write_CNT_COMMAND
	movl	$-1, %edi
	callq	_bfin_write_CNT_STATUS
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W1LCNT_ZERO,4,2                ## @W1LCNT_ZERO
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bfin_rotary_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfin_rotary_isr
_bfin_rotary_isr:                       ; @bfin_rotary_isr
	.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	x0, x1
	bl	_platform_get_drvdata
	mov	x19, x0
	bl	_bfin_read_CNT_STATUS
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #131
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_6
LBB0_3:
	bl	_bfin_read_CNT_COUNTER
	cbz	w0, LBB0_6
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	bl	_report_rotary_event
	b	LBB0_6
LBB0_5:
	ldp	w1, w0, [x19]
	bl	_report_key_event
LBB0_6:
Lloh0:
	adrp	x8, _W1LCNT_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W1LCNT_ZERO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_bfin_write_CNT_COMMAND
	mov	w0, #-1
	bl	_bfin_write_CNT_STATUS
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_W1LCNT_ZERO,4,2                ; @W1LCNT_ZERO
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bfin_rotary_isr
.subsections_via_symbols
