	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5588_report_events
_adp5588_report_events:                 ## @adp5588_report_events
	.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
	testl	%esi, %esi
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movl	%esi, %r14d
	xorl	%r13d, %r13d
	movq	_GPI_PIN_BASE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rcx
	movl	16(%r15), %edi
	movq	8(%r15), %rdx
	movl	-4(%rdx,%rcx,4), %esi
	movq	_KEY_EV_PRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	callq	_input_report_key
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r14, %r13
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	32(%r15), %edi
	movq	_Key_EVENTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	callq	_adp5588_read
	movl	%eax, %ecx
	movq	_KEY_EV_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	cmpl	(%r12), %ecx
	jl	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GPI_PIN_END@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%rsi,%rbx,8), %ecx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_6
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %edi
	movl	4(%rsi,%rbx,8), %esi
	movq	_KEY_EV_PRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	callq	_input_report_switch
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Key_EVENTA,8,3                 ## @Key_EVENTA
	.comm	_KEY_EV_MASK,4,2                ## @KEY_EV_MASK
	.comm	_GPI_PIN_BASE,4,2               ## @GPI_PIN_BASE
	.comm	_GPI_PIN_END,4,2                ## @GPI_PIN_END
	.comm	_KEY_EV_PRESSED,4,2             ## @KEY_EV_PRESSED
	.no_dead_strip	_adp5588_report_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5588_report_events
_adp5588_report_events:                 ; @adp5588_report_events
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x21, _Key_EVENTA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Key_EVENTA@GOTPAGEOFF]
Lloh2:
	adrp	x22, _KEY_EV_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _KEY_EV_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x23, _GPI_PIN_BASE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GPI_PIN_BASE@GOTPAGEOFF]
	mov	w24, w1
Lloh6:
	adrp	x25, _GPI_PIN_END@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GPI_PIN_END@GOTPAGEOFF]
Lloh8:
	adrp	x26, _KEY_EV_PRESSED@GOTPAGE
Lloh9:
	ldr	x26, [x26, _KEY_EV_PRESSED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	ldr	x10, [x19, #8]
	sub	w9, w9, #1
	ldr	w1, [x10, w9, sxtw #2]
	ldr	w9, [x26]
	and	w2, w9, w0
	mov	x0, x8
	bl	_input_report_key
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, x24
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x19, #32]
	ldr	x8, [x21]
	add	x1, x8, x20
	bl	_adp5588_read
	ldr	w8, [x22]
	and	w9, w8, w0
	ldr	w8, [x23]
	ldr	w10, [x25]
	cmp	w9, w8
	ccmp	w9, w10, #0, ge
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #24]
	add	x10, x10, #4
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w11, [x10, #-4]
	cmp	w9, w11
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_7
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	ldr	w1, [x10]
	ldr	w9, [x26]
	and	w2, w9, w0
	mov	x0, x8
	bl	_input_report_switch
	b	LBB0_3
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.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	_Key_EVENTA,8,3                 ; @Key_EVENTA
	.comm	_KEY_EV_MASK,4,2                ; @KEY_EV_MASK
	.comm	_GPI_PIN_BASE,4,2               ; @GPI_PIN_BASE
	.comm	_GPI_PIN_END,4,2                ; @GPI_PIN_END
	.comm	_KEY_EV_PRESSED,4,2             ; @KEY_EV_PRESSED
	.no_dead_strip	_adp5588_report_events
.subsections_via_symbols
