	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa27x_keypad_scan_rotary
_pxa27x_keypad_scan_rotary:             ## @pxa27x_keypad_scan_rotary
	.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, %r14
	movq	(%rdi), %r15
	movq	_KPREC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_keypad_readl
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	_DEFAULT_KPREC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_keypad_writel
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_rotary_delta
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_report_rotary_event
LBB0_2:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.4:
	sarl	$16, %ebx
	movl	%ebx, %edi
	callq	_rotary_delta
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_report_rotary_event            ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KPREC,4,2                      ## @KPREC
	.comm	_DEFAULT_KPREC,4,2              ## @DEFAULT_KPREC
	.no_dead_strip	_pxa27x_keypad_scan_rotary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa27x_keypad_scan_rotary
_pxa27x_keypad_scan_rotary:             ; @pxa27x_keypad_scan_rotary
	.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	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _KPREC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _KPREC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_keypad_readl
	mov	x20, x0
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _DEFAULT_KPREC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEFAULT_KPREC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_keypad_writel
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_rotary_delta
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_report_rotary_event
LBB0_2:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
	asr	w0, w20, #16
	bl	_rotary_delta
	mov	x2, x0
	mov	x0, x19
	mov	w1, #1
	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	_report_rotary_event
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KPREC,4,2                      ; @KPREC
	.comm	_DEFAULT_KPREC,4,2              ; @DEFAULT_KPREC
	.no_dead_strip	_pxa27x_keypad_scan_rotary
.subsections_via_symbols
