	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aaedkbd_poll
_aaedkbd_poll:                          ## @aaedkbd_poll
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	xorl	%ebx, %ebx
	movq	_AAED_EXT_GPIO@GOTPCREL(%rip), %r14
	movq	_AAED_EGPIO_KBD_SCAN@GOTPCREL(%rip), %r13
	movq	_KB_COLS@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rcx,%rax,8)
	movl	%edx, (%rsi,%rax,4)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r12), %ebx
	jae	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	8(%rbx), %eax
	movq	_AAEC_GPIO_KSCAN@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_KB_ACTIVATE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movl	(%r13), %edx
	andl	(%r14), %edx
	movq	(%r15), %rsi
	movq	8(%r15), %rcx
	movl	%ebx, %eax
	cmpl	(%rsi,%rax,4), %edx
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rcx,%rax,8), %rsi
	incq	%rsi
	movq	%rsi, (%rcx,%rax,8)
	movq	_KBDSCAN_STABLE_COUNT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_aaedkbd_report_col
	incl	%ebx
	jmp	LBB0_5
LBB0_6:
	movq	_AAEC_GPIO_KSCAN@GOTPCREL(%rip), %rax
	movl	$7, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AAEC_GPIO_KSCAN,4,2            ## @AAEC_GPIO_KSCAN
	.comm	_KB_ACTIVATE_DELAY,4,2          ## @KB_ACTIVATE_DELAY
	.comm	_AAED_EXT_GPIO,4,2              ## @AAED_EXT_GPIO
	.comm	_AAED_EGPIO_KBD_SCAN,4,2        ## @AAED_EGPIO_KBD_SCAN
	.comm	_KBDSCAN_STABLE_COUNT,8,3       ## @KBDSCAN_STABLE_COUNT
	.comm	_KB_COLS,4,2                    ## @KB_COLS
	.no_dead_strip	_aaedkbd_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aaedkbd_poll
_aaedkbd_poll:                          ; @aaedkbd_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w20, #0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x22, _AAEC_GPIO_KSCAN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AAEC_GPIO_KSCAN@GOTPAGEOFF]
Lloh2:
	adrp	x23, _KB_ACTIVATE_DELAY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KB_ACTIVATE_DELAY@GOTPAGEOFF]
Lloh4:
	adrp	x24, _AAED_EXT_GPIO@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AAED_EXT_GPIO@GOTPAGEOFF]
Lloh6:
	adrp	x25, _AAED_EGPIO_KBD_SCAN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AAED_EGPIO_KBD_SCAN@GOTPAGEOFF]
Lloh8:
	adrp	x26, _KBDSCAN_STABLE_COUNT@GOTPAGE
Lloh9:
	ldr	x26, [x26, _KBDSCAN_STABLE_COUNT@GOTPAGEOFF]
Lloh10:
	adrp	x27, _KB_COLS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _KB_COLS@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x9, x8, lsl #3]
	str	w2, [x10, x8, lsl #2]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	cmp	w20, w8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w20, #8
	str	w8, [x22]
	ldr	w0, [x23]
	bl	_udelay
	ldr	w8, [x24]
	ldr	w9, [x25]
	and	w2, w9, w8
	mov	w8, w20
	ldp	x10, x9, [x21]
	ldr	w11, [x10, w20, uxtw #2]
	cmp	w2, w11
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x8, x8, #3
	ldr	x10, [x9, x8]
	add	x10, x10, #1
	str	x10, [x9, x8]
	ldr	x8, [x26]
	cmp	x10, x8
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_aaedkbd_report_col
	add	w20, w20, #1
	b	LBB0_2
LBB0_6:
	mov	w8, #7
	str	w8, [x22]
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AAEC_GPIO_KSCAN,4,2            ; @AAEC_GPIO_KSCAN
	.comm	_KB_ACTIVATE_DELAY,4,2          ; @KB_ACTIVATE_DELAY
	.comm	_AAED_EXT_GPIO,4,2              ; @AAED_EXT_GPIO
	.comm	_AAED_EGPIO_KBD_SCAN,4,2        ; @AAED_EGPIO_KBD_SCAN
	.comm	_KBDSCAN_STABLE_COUNT,8,3       ; @KBDSCAN_STABLE_COUNT
	.comm	_KB_COLS,4,2                    ; @KB_COLS
	.no_dead_strip	_aaedkbd_poll
.subsections_via_symbols
