	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function adp5588_setup
LCPI0_0:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.byte	1                               ## 0x1
	.byte	5                               ## 0x5
	.byte	9                               ## 0x9
	.byte	13                              ## 0xd
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_3:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_adp5588_setup:                         ## @adp5588_setup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r13
	movq	40(%rax), %r15
	movq	_KP_GPIO1@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	36(%r13), %edi
	callq	_KP_SEL
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_adp5588_write
	movl	%eax, %r12d
	movq	_KP_GPIO2@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	32(%r13), %edi
	callq	_KP_SEL
	movzbl	%al, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_adp5588_write
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_KP_GPIO3@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	32(%r13), %edi
	callq	_KP_SEL
	sarl	$8, %eax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_adp5588_write
	movl	%eax, %r12d
	orl	%ebx, %r12d
	cmpq	$0, 24(%r13)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_UNLOCK1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_UNLOCK2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	4(%r13), %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %r13d
	movq	_KEY_LCK_EC_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ADP5588_K_LCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %r12d
	orl	%r13d, %r12d
	orl	%ebx, %r12d
LBB0_2:
	movq	_KEYP_MAX_EVENT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_Key_EVENTA@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_adp5588_read
	orl	%eax, %r12d
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_4
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r11d
	testl	%r11d, %r11d
	jle	LBB0_6
## %bb.7:
	movq	16(%rax), %rdx
	movq	_GPI_PIN_ROW_END@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r10d
	movq	_GPI_PIN_ROW_BASE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r8d
	movq	_GPI_PIN_COL_BASE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r9d
	cmpl	$8, %r11d
	jae	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_6:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	movl	%r11d, %eax
	andl	$-8, %eax
	movd	%r10d, %xmm0
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	pshufd	$0, %xmm0, %xmm9                ## xmm9 = xmm0[0,0,0,0]
	movd	%r8d, %xmm0
	pshufd	$0, %xmm0, %xmm12               ## xmm12 = xmm0[0,0,0,0]
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm13               ## xmm13 = xmm0[0,0,0,0]
	leaq	(%r11,%r11), %rcx
	andq	$-16, %rcx
	pxor	%xmm10, %xmm10
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm14           ## xmm14 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_1(%rip), %xmm15           ## xmm15 = <0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = <1,5,9,13,u,u,u,u,u,u,u,u,u,u,u,u>
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	pxor	%xmm6, %xmm6
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi), %xmm7
	pmovzxwd	%xmm7, %xmm5                    ## xmm5 = xmm7[0],zero,xmm7[1],zero,xmm7[2],zero,xmm7[3],zero
	movdqa	%xmm7, %xmm0
	pminuw	%xmm9, %xmm0
	pcmpeqw	%xmm7, %xmm0
	punpckhwd	%xmm10, %xmm7           ## xmm7 = xmm7[4],xmm10[4],xmm7[5],xmm10[5],xmm7[6],xmm10[6],xmm7[7],xmm10[7]
	pxor	LCPI0_3(%rip), %xmm0
	packsswb	%xmm0, %xmm0
	movdqa	%xmm7, %xmm2
	psubd	%xmm12, %xmm2
	movdqa	%xmm5, %xmm4
	psubd	%xmm12, %xmm4
	pslld	$23, %xmm4
	paddd	%xmm14, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pslld	$23, %xmm2
	paddd	%xmm14, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pshufb	%xmm15, %xmm2
	pshufb	%xmm15, %xmm4
	punpckldq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	psubd	%xmm13, %xmm7
	psubd	%xmm13, %xmm5
	pslld	$23, %xmm5
	paddd	%xmm14, %xmm5
	cvttps2dq	%xmm5, %xmm8
	pslld	$23, %xmm7
	paddd	%xmm14, %xmm7
	cvttps2dq	%xmm7, %xmm5
	movdqa	%xmm5, %xmm7
	pshufb	%xmm15, %xmm7
	movdqa	%xmm8, %xmm2
	pshufb	%xmm15, %xmm2
	pblendvb	%xmm0, %xmm10, %xmm4
	punpckldq	%xmm7, %xmm2            ## xmm2 = xmm2[0],xmm7[0],xmm2[1],xmm7[1]
	pxor	%xmm7, %xmm7
	pblendvb	%xmm0, %xmm2, %xmm7
	pshufb	%xmm11, %xmm5
	pshufb	%xmm11, %xmm8
	punpckldq	%xmm5, %xmm8            ## xmm8 = xmm8[0],xmm5[0],xmm8[1],xmm5[1]
	pxor	%xmm2, %xmm2
	pblendvb	%xmm0, %xmm8, %xmm2
	por	%xmm4, %xmm6
	por	%xmm7, %xmm3
	por	%xmm2, %xmm1
	addq	$16, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_10
## %bb.11:
	pshufd	$85, %xmm6, %xmm0               ## xmm0 = xmm6[1,1,1,1]
	por	%xmm6, %xmm0
	movdqa	%xmm0, %xmm2
	psrld	$16, %xmm2
	por	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrlw	$8, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edi
	pshufd	$85, %xmm3, %xmm0               ## xmm0 = xmm3[1,1,1,1]
	por	%xmm3, %xmm0
	movdqa	%xmm0, %xmm2
	psrld	$16, %xmm2
	por	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrlw	$8, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %ebx
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrld	$16, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrlw	$8, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %r15d
	cmpq	%r11, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_12
LBB0_16:
	testq	%r11, %r11
	je	LBB0_18
## %bb.17:
	movq	_GPI_EM1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	%dil, %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_GPI_EM2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %ebx
	movq	_GPI_EM3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %r12d
	orl	%ebx, %r12d
	orl	%r13d, %r12d
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_23
## %bb.19:
	movq	_ADP5588_MAXGPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADP5588_BANK
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	xorl	%r13d, %r13d
	movq	$-1, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movq	_GPIO_PULL1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rbx,%rcx), %rsi
	incq	%rsi
	movl	%r13d, %ecx
	sarl	%cl, %eax
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	orl	%eax, %r12d
	movq	_ADP5588_MAXGPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADP5588_BANK
	cltq
	addl	$8, %r13d
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_22
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	subl	%r9d, %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orb	%sil, %bl
	shrl	$8, %esi
	orb	%sil, %r15b
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rax
	cmpq	%rax, %r11
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rdx,%rax,2), %ecx
	cmpw	%r10w, %cx
	ja	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	subl	%r8d, %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orb	%sil, %dil
	jmp	LBB0_15
LBB0_20:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_23:
	movq	_ADP5588_CMP2_INT@GOTPCREL(%rip), %rax
	movq	_ADP5588_CMP1_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ADP5588_OVR_FLOW_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_ADP5588_K_LCK_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_INT_STAT@GOTPCREL(%rip), %rax
	movq	_ADP5588_GPI_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	(%rax), %rsi
	movq	_ADP5588_KE_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %r15d
	orl	%r12d, %r15d
	movq	_CFG@GOTPCREL(%rip), %rax
	movq	_ADP5588_INT_CFG@GOTPCREL(%rip), %rcx
	movq	_ADP5588_OVR_FLOW_IEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	(%rax), %rsi
	movq	_ADP5588_KE_IEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_adp5588_write
	movl	%eax, %ebx
	xorl	%eax, %eax
	orl	%r15d, %ebx
	jns	LBB0_25
## %bb.24:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%ebx, %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KP_GPIO1,8,3                   ## @KP_GPIO1
	.comm	_KP_GPIO2,8,3                   ## @KP_GPIO2
	.comm	_KP_GPIO3,8,3                   ## @KP_GPIO3
	.comm	_UNLOCK1,8,3                    ## @UNLOCK1
	.comm	_UNLOCK2,8,3                    ## @UNLOCK2
	.comm	_KEY_LCK_EC_STAT,8,3            ## @KEY_LCK_EC_STAT
	.comm	_ADP5588_K_LCK_EN,4,2           ## @ADP5588_K_LCK_EN
	.comm	_KEYP_MAX_EVENT,4,2             ## @KEYP_MAX_EVENT
	.comm	_Key_EVENTA,4,2                 ## @Key_EVENTA
	.comm	_GPI_PIN_ROW_END,2,1            ## @GPI_PIN_ROW_END
	.comm	_GPI_PIN_ROW_BASE,2,1           ## @GPI_PIN_ROW_BASE
	.comm	_GPI_PIN_COL_BASE,2,1           ## @GPI_PIN_COL_BASE
	.comm	_GPI_EM1,8,3                    ## @GPI_EM1
	.comm	_GPI_EM2,8,3                    ## @GPI_EM2
	.comm	_GPI_EM3,8,3                    ## @GPI_EM3
	.comm	_ADP5588_MAXGPIO,4,2            ## @ADP5588_MAXGPIO
	.comm	_GPIO_PULL1,8,3                 ## @GPIO_PULL1
	.comm	_INT_STAT,8,3                   ## @INT_STAT
	.comm	_ADP5588_CMP2_INT,4,2           ## @ADP5588_CMP2_INT
	.comm	_ADP5588_CMP1_INT,4,2           ## @ADP5588_CMP1_INT
	.comm	_ADP5588_OVR_FLOW_INT,4,2       ## @ADP5588_OVR_FLOW_INT
	.comm	_ADP5588_K_LCK_INT,4,2          ## @ADP5588_K_LCK_INT
	.comm	_ADP5588_GPI_INT,4,2            ## @ADP5588_GPI_INT
	.comm	_ADP5588_KE_INT,4,2             ## @ADP5588_KE_INT
	.comm	_CFG,8,3                        ## @CFG
	.comm	_ADP5588_INT_CFG,4,2            ## @ADP5588_INT_CFG
	.comm	_ADP5588_OVR_FLOW_IEN,4,2       ## @ADP5588_OVR_FLOW_IEN
	.comm	_ADP5588_KE_IEN,4,2             ## @ADP5588_KE_IEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write Error\n"

	.no_dead_strip	_adp5588_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5588_setup
_adp5588_setup:                         ; @adp5588_setup
	.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
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x20, x0
	ldr	x23, [x0, #40]
Lloh0:
	adrp	x8, _KP_GPIO1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KP_GPIO1@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w0, [x0, #36]
	bl	_KP_SEL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_adp5588_write
	mov	x21, x0
Lloh3:
	adrp	x8, _KP_GPIO2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KP_GPIO2@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	w0, [x20, #32]
	bl	_KP_SEL
	and	w2, w0, #0xff
	mov	x0, x19
	mov	x1, x22
	bl	_adp5588_write
	orr	w22, w0, w21
Lloh6:
	adrp	x8, _KP_GPIO3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KP_GPIO3@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	ldr	w0, [x20, #32]
	bl	_KP_SEL
	asr	w2, w0, #8
	mov	x0, x19
	mov	x1, x21
	bl	_adp5588_write
	orr	w21, w22, w0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _UNLOCK1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNLOCK1@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_adp5588_write
	orr	w21, w0, w21
Lloh12:
	adrp	x8, _UNLOCK2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UNLOCK2@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_adp5588_write
	orr	w21, w21, w0
Lloh15:
	adrp	x8, _KEY_LCK_EC_STAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KEY_LCK_EC_STAT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x8, _ADP5588_K_LCK_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADP5588_K_LCK_EN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_adp5588_write
	orr	w21, w21, w0
LBB0_2:
Lloh21:
	adrp	x22, _KEYP_MAX_EVENT@GOTPAGE
Lloh22:
	ldr	x22, [x22, _KEYP_MAX_EVENT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w24, #0
Lloh23:
	adrp	x25, _Key_EVENTA@GOTPAGE
Lloh24:
	ldr	x25, [x25, _Key_EVENTA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_adp5588_read
	orr	w21, w0, w21
	add	w24, w24, #1
	ldr	w8, [x22]
	cmp	w24, w8
	b.lt	LBB0_4
LBB0_5:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.6:
	mov	w22, #0
	mov	w24, #0
	mov	w9, #0
	ldr	x10, [x20, #16]
Lloh25:
	adrp	x11, _GPI_PIN_ROW_END@GOTPAGE
Lloh26:
	ldr	x11, [x11, _GPI_PIN_ROW_END@GOTPAGEOFF]
	ldrh	w11, [x11]
Lloh27:
	adrp	x12, _GPI_PIN_ROW_BASE@GOTPAGE
Lloh28:
	ldr	x12, [x12, _GPI_PIN_ROW_BASE@GOTPAGEOFF]
	ldrh	w12, [x12]
Lloh29:
	adrp	x13, _GPI_PIN_COL_BASE@GOTPAGE
Lloh30:
	ldr	x13, [x13, _GPI_PIN_COL_BASE@GOTPAGEOFF]
	ldrh	w13, [x13]
	mov	w14, #1
	mov	x15, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w16, [x10], #2
	sub	w17, w16, w13
	lsl	w17, w14, w17
	orr	w0, w24, w17
	orr	w17, w22, w17, lsr #8
	sub	w1, w16, w12
	lsl	w1, w14, w1
	orr	w1, w9, w1
	cmp	w16, w11
	csel	w9, w9, w1, hi
	csel	w24, w0, w24, hi
	csel	w22, w17, w22, hi
	subs	x15, x15, #1
	b.ne	LBB0_7
; %bb.8:
	cbz	w8, LBB0_10
LBB0_9:
Lloh31:
	adrp	x8, _GPI_EM1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GPI_EM1@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	and	w2, w9, #0xff
	mov	x0, x19
	bl	_adp5588_write
	orr	w20, w0, w21
Lloh34:
	adrp	x8, _GPI_EM2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GPI_EM2@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
	and	w2, w24, #0xff
	mov	x0, x19
	bl	_adp5588_write
	orr	w20, w20, w0
Lloh37:
	adrp	x8, _GPI_EM3@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GPI_EM3@GOTPAGEOFF]
Lloh39:
	ldr	x1, [x8]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_adp5588_write
	orr	w21, w20, w0
LBB0_10:
	cbz	x23, LBB0_14
; %bb.11:
Lloh40:
	adrp	x20, _ADP5588_MAXGPIO@GOTPAGE
Lloh41:
	ldr	x20, [x20, _ADP5588_MAXGPIO@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ADP5588_BANK
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	w22, #0
	mov	x24, #-1
Lloh42:
	adrp	x25, _GPIO_PULL1@GOTPAGE
Lloh43:
	ldr	x25, [x25, _GPIO_PULL1@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	x9, [x25]
	add	x9, x24, x9
	add	x1, x9, #1
	asr	w8, w8, w22
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_adp5588_write
	orr	w21, w0, w21
	ldr	w0, [x20]
	bl	_ADP5588_BANK
	add	w22, w22, #8
	add	x24, x24, #1
	cmp	x24, w0, sxtw
	b.lt	LBB0_13
LBB0_14:
Lloh44:
	adrp	x8, _INT_STAT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _INT_STAT@GOTPAGEOFF]
Lloh46:
	ldr	x1, [x8]
Lloh47:
	adrp	x8, _ADP5588_CMP2_INT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ADP5588_CMP2_INT@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _ADP5588_CMP1_INT@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ADP5588_CMP1_INT@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh53:
	adrp	x9, _ADP5588_OVR_FLOW_INT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ADP5588_OVR_FLOW_INT@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh56:
	adrp	x9, _ADP5588_K_LCK_INT@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ADP5588_K_LCK_INT@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh59:
	adrp	x9, _ADP5588_GPI_INT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _ADP5588_GPI_INT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh62:
	adrp	x9, _ADP5588_KE_INT@GOTPAGE
Lloh63:
	ldr	x9, [x9, _ADP5588_KE_INT@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_adp5588_write
	orr	w20, w0, w21
Lloh65:
	adrp	x8, _CFG@GOTPAGE
Lloh66:
	ldr	x8, [x8, _CFG@GOTPAGEOFF]
Lloh67:
	ldr	x1, [x8]
Lloh68:
	adrp	x8, _ADP5588_INT_CFG@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ADP5588_INT_CFG@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _ADP5588_OVR_FLOW_IEN@GOTPAGE
Lloh72:
	ldr	x9, [x9, _ADP5588_OVR_FLOW_IEN@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh74:
	adrp	x9, _ADP5588_KE_IEN@GOTPAGE
Lloh75:
	ldr	x9, [x9, _ADP5588_KE_IEN@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_adp5588_write
	orr	w20, w20, w0
	tbnz	w20, #31, LBB0_17
; %bb.15:
	mov	w20, #0
	b	LBB0_18
LBB0_16:
	mov	w9, #0
	mov	w24, #0
	mov	w22, #0
	cbnz	w8, LBB0_9
	b	LBB0_10
LBB0_17:
Lloh77:
	adrp	x1, l_.str@PAGE
Lloh78:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_18:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_KP_GPIO1,8,3                   ; @KP_GPIO1
	.comm	_KP_GPIO2,8,3                   ; @KP_GPIO2
	.comm	_KP_GPIO3,8,3                   ; @KP_GPIO3
	.comm	_UNLOCK1,8,3                    ; @UNLOCK1
	.comm	_UNLOCK2,8,3                    ; @UNLOCK2
	.comm	_KEY_LCK_EC_STAT,8,3            ; @KEY_LCK_EC_STAT
	.comm	_ADP5588_K_LCK_EN,4,2           ; @ADP5588_K_LCK_EN
	.comm	_KEYP_MAX_EVENT,4,2             ; @KEYP_MAX_EVENT
	.comm	_Key_EVENTA,4,2                 ; @Key_EVENTA
	.comm	_GPI_PIN_ROW_END,2,1            ; @GPI_PIN_ROW_END
	.comm	_GPI_PIN_ROW_BASE,2,1           ; @GPI_PIN_ROW_BASE
	.comm	_GPI_PIN_COL_BASE,2,1           ; @GPI_PIN_COL_BASE
	.comm	_GPI_EM1,8,3                    ; @GPI_EM1
	.comm	_GPI_EM2,8,3                    ; @GPI_EM2
	.comm	_GPI_EM3,8,3                    ; @GPI_EM3
	.comm	_ADP5588_MAXGPIO,4,2            ; @ADP5588_MAXGPIO
	.comm	_GPIO_PULL1,8,3                 ; @GPIO_PULL1
	.comm	_INT_STAT,8,3                   ; @INT_STAT
	.comm	_ADP5588_CMP2_INT,4,2           ; @ADP5588_CMP2_INT
	.comm	_ADP5588_CMP1_INT,4,2           ; @ADP5588_CMP1_INT
	.comm	_ADP5588_OVR_FLOW_INT,4,2       ; @ADP5588_OVR_FLOW_INT
	.comm	_ADP5588_K_LCK_INT,4,2          ; @ADP5588_K_LCK_INT
	.comm	_ADP5588_GPI_INT,4,2            ; @ADP5588_GPI_INT
	.comm	_ADP5588_KE_INT,4,2             ; @ADP5588_KE_INT
	.comm	_CFG,8,3                        ; @CFG
	.comm	_ADP5588_INT_CFG,4,2            ; @ADP5588_INT_CFG
	.comm	_ADP5588_OVR_FLOW_IEN,4,2       ; @ADP5588_OVR_FLOW_IEN
	.comm	_ADP5588_KE_IEN,4,2             ; @ADP5588_KE_IEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write Error\n"

	.no_dead_strip	_adp5588_setup
.subsections_via_symbols
