	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5588_probe
_adp5588_probe:                         ## @adp5588_probe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	movl	20(%r15), %edi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	movzwl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movzwl	2(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.4:
	cmpl	$0, 32(%r12)
	je	LBB0_10
## %bb.5:
	movl	4(%r12), %edx
	movq	_ADP5588_KEYMAPSIZE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_15
## %bb.6:
	movq	24(%r12), %rdx
	movl	8(%r12), %esi
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.7:
	movq	_ADP5588_GPIMAPSIZE_MAX@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jle	LBB0_18
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_16:
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_18:
	testl	%esi, %esi
	jle	LBB0_28
## %bb.19:
	movq	_GPI_PIN_BASE@GOTPCREL(%rip), %rdi
	movzwl	(%rdi), %r8d
	movq	_GPI_PIN_END@GOTPCREL(%rip), %rdi
	movzwl	(%rdi), %r9d
	movq	_GPI_PIN_ROW_END@GOTPCREL(%rip), %rdi
	movzwl	(%rdi), %r13d
	movq	_GPI_PIN_ROW_BASE@GOTPCREL(%rip), %rdi
	movzwl	(%rdi), %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	_GPI_PIN_COL_BASE@GOTPCREL(%rip), %rdi
	movzwl	(%rdi), %r11d
	shlq	$4, %rsi
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	%eax, %ebx
	jl	LBB0_50
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_28
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rdx,%rdi), %r10d
	cmpw	%r8w, %r10w
	jb	LBB0_43
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpw	%r9w, %r10w
	ja	LBB0_43
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movzwl	%r10w, %ebx
	cmpw	%r13w, %r10w
	jbe	LBB0_20
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	subl	%r11d, %ebx
	cmpl	%ecx, %ebx
	jge	LBB0_21
## %bb.26:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_12
LBB0_27:
	movq	_ADP5588_GPIMAPSIZE_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_8
LBB0_28:
	cmpl	$0, (%r15)
	je	LBB0_41
## %bb.29:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%rax, %rbx
	je	LBB0_42
## %bb.30:
	testq	%rbx, %rbx
	je	LBB0_42
## %bb.31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 40(%rax)
	movq	%rbx, 32(%rax)
	movq	%rax, %rdi
	addq	$12, %rdi
	movq	_adp5588_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_INIT_DELAYED_WORK
	movq	_DEV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_adp5588_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_59
## %bb.32:
	movq	_ADP5588_DEVICE_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	callq	_WA_DELAYED_READOUT_REVID
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_34
## %bb.33:
	movl	$30, %edi
	callq	_msecs_to_jiffies
	movl	%eax, 24(%r13)
LBB0_34:
	movl	16(%r15), %eax
	movl	%eax, 64(%rbx)
	leaq	L_.str.10(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r14, 56(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_input_set_drvdata
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 36(%rbx)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 44(%rbx)
	movl	$8, 8(%rbx)
	movl	4(%r12), %edx
	movl	%edx, 12(%rbx)
	movq	(%r13), %rdi
	movq	%rdi, 16(%rbx)
	movl	32(%r12), %esi
	shll	$3, %edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	%rax, 16(%r13)
	movl	8(%r12), %eax
	movl	%eax, 8(%r13)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	28(%rbx), %esi
	callq	___set_bit
	cmpq	$0, 16(%r12)
	je	LBB0_36
## %bb.35:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	28(%rbx), %esi
	callq	___set_bit
LBB0_36:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_44
## %bb.37:
	xorl	%ebx, %ebx
	movq	_KEY_MAX@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_39 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_44
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	(%rdx), %rdi
	jg	LBB0_38
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movl	32(%r12), %esi
	movq	%rdx, %r13
	callq	___set_bit
	movq	%r13, %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	12(%r12), %eax
	jmp	LBB0_38
LBB0_41:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_12
LBB0_42:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_59
LBB0_43:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_12
LBB0_44:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %esi
	callq	___clear_bit
	cmpl	$0, 8(%r13)
	je	LBB0_48
## %bb.45:
	movq	_EV_SW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %esi
	callq	___set_bit
	cmpl	$0, 8(%r13)
	jle	LBB0_48
## %bb.46:
	movl	$8, %r12d
	xorl	%ebx, %ebx
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %esi
	callq	___set_bit
	incq	%rbx
	movslq	8(%r13), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_47
LBB0_48:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_51
## %bb.49:
	movl	%eax, %r13d
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_59
LBB0_50:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_12
LBB0_51:
	movl	(%r15), %edi
	movq	_adp5588_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_53
## %bb.52:
	movl	%eax, %r13d
	movl	(%r15), %edx
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_58
LBB0_53:
	movq	%r15, %rdi
	callq	_adp5588_setup
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_57
## %bb.54:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, 8(%rbx)
	je	LBB0_56
## %bb.55:
	movq	%rbx, %rdi
	callq	_adp5588_report_switch_state
LBB0_56:
	movq	%rbx, %rdi
	callq	_adp5588_gpio_add
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_60
LBB0_57:
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_free_irq
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_cancel_delayed_work_sync
LBB0_58:
	movq	%rbx, %rdi
	callq	_input_unregister_device
	xorl	%ebx, %ebx
LBB0_59:
	movq	%rbx, %rdi
	callq	_input_free_device
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_14
LBB0_60:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_i2c_set_clientdata
	movl	(%r15), %ecx
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBUS Byte Data not Supported\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"no platform data?\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"no rows, cols or keymap from pdata\n"

	.comm	_ADP5588_KEYMAPSIZE,4,2         ## @ADP5588_KEYMAPSIZE
L_.str.3:                               ## @.str.3
	.asciz	"invalid keymapsize\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid gpimap from pdata\n"

	.comm	_ADP5588_GPIMAPSIZE_MAX,4,2     ## @ADP5588_GPIMAPSIZE_MAX
L_.str.5:                               ## @.str.5
	.asciz	"invalid gpimapsize\n"

	.comm	_GPI_PIN_BASE,2,1               ## @GPI_PIN_BASE
	.comm	_GPI_PIN_END,2,1                ## @GPI_PIN_END
L_.str.6:                               ## @.str.6
	.asciz	"invalid gpi pin data\n"

	.comm	_GPI_PIN_ROW_END,2,1            ## @GPI_PIN_ROW_END
	.comm	_GPI_PIN_ROW_BASE,2,1           ## @GPI_PIN_ROW_BASE
L_.str.7:                               ## @.str.7
	.asciz	"invalid gpi row data\n"

	.comm	_GPI_PIN_COL_BASE,2,1           ## @GPI_PIN_COL_BASE
L_.str.8:                               ## @.str.8
	.asciz	"invalid gpi col data\n"

L_.str.9:                               ## @.str.9
	.asciz	"no IRQ?\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_adp5588_work,4,2               ## @adp5588_work
	.comm	_DEV_ID,4,2                     ## @DEV_ID
	.comm	_ADP5588_DEVICE_ID_MASK,4,2     ## @ADP5588_DEVICE_ID_MASK
L_.str.10:                              ## @.str.10
	.asciz	"adp5588-keys/input0"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_EV_KEY,8,3                     ## @EV_KEY
	.comm	_EV_REP,8,3                     ## @EV_REP
	.comm	_KEY_MAX,8,3                    ## @KEY_MAX
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_EV_SW,8,3                      ## @EV_SW
L_.str.11:                              ## @.str.11
	.asciz	"unable to register input device\n"

	.comm	_adp5588_irq,4,2                ## @adp5588_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.12:                              ## @.str.12
	.asciz	"irq %d busy?\n"

L_.str.13:                              ## @.str.13
	.asciz	"Rev.%d keypad, irq %d\n"

	.no_dead_strip	_adp5588_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5588_probe
_adp5588_probe:                         ; @adp5588_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x25, x0
	ldr	w0, [x20, #20]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_9
; %bb.1:
	cbz	x25, LBB0_11
; %bb.2:
	ldrh	w8, [x25]
	cbz	w8, LBB0_10
; %bb.3:
	ldrh	w9, [x25, #2]
	cbz	w9, LBB0_10
; %bb.4:
	ldr	w10, [x25, #32]
	cbz	w10, LBB0_10
; %bb.5:
	ldr	w10, [x25, #4]
Lloh3:
	adrp	x11, _ADP5588_KEYMAPSIZE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ADP5588_KEYMAPSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_15
; %bb.6:
	ldr	x11, [x25, #24]
	ldr	w10, [x25, #8]
	cbz	x11, LBB0_16
; %bb.7:
Lloh6:
	adrp	x12, _ADP5588_GPIMAPSIZE_MAX@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ADP5588_GPIMAPSIZE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	w10, w12
	b.le	LBB0_18
LBB0_8:
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_14:
	mov	x0, x26
	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
	add	sp, sp, #96
	ret
LBB0_15:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_16:
	cbz	w10, LBB0_26
; %bb.17:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_18:
	cmp	w10, #1
	b.lt	LBB0_27
; %bb.19:
Lloh25:
	adrp	x12, _GPI_PIN_BASE@GOTPAGE
Lloh26:
	ldr	x12, [x12, _GPI_PIN_BASE@GOTPAGEOFF]
	ldrh	w12, [x12]
Lloh27:
	adrp	x13, _GPI_PIN_END@GOTPAGE
Lloh28:
	ldr	x13, [x13, _GPI_PIN_END@GOTPAGEOFF]
	ldrh	w13, [x13]
Lloh29:
	adrp	x14, _GPI_PIN_ROW_END@GOTPAGE
Lloh30:
	ldr	x14, [x14, _GPI_PIN_ROW_END@GOTPAGEOFF]
	ldrh	w14, [x14]
Lloh31:
	adrp	x15, _GPI_PIN_ROW_BASE@GOTPAGE
Lloh32:
	ldr	x15, [x15, _GPI_PIN_ROW_BASE@GOTPAGEOFF]
	ldrh	w15, [x15]
Lloh33:
	adrp	x16, _GPI_PIN_COL_BASE@GOTPAGE
Lloh34:
	ldr	x16, [x16, _GPI_PIN_COL_BASE@GOTPAGEOFF]
	ldrh	w16, [x16]
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	w17, w17, w15
	cmp	w17, w8
	b.lt	LBB0_48
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x11, x11, #16
	subs	x10, x10, #1
	b.eq	LBB0_27
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrh	w17, [x11]
	cmp	w17, w12
	ccmp	w17, w13, #2, hs
	b.hi	LBB0_41
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	w17, w14
	b.ls	LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	w17, w17, w16
	cmp	w17, w9
	b.ge	LBB0_21
; %bb.25:
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_12
LBB0_26:
Lloh37:
	adrp	x8, _ADP5588_GPIMAPSIZE_MAX@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ADP5588_GPIMAPSIZE_MAX@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_8
LBB0_27:
	ldr	w8, [x20]
	cbz	w8, LBB0_30
; %bb.28:
Lloh40:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x21, x0
	bl	_input_allocate_device
	mov	x22, x0
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_31
; %bb.29:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_57
LBB0_30:
Lloh46:
	adrp	x1, l_.str.9@PAGE
Lloh47:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_12
LBB0_31:
	stp	x22, x20, [x21, #32]
	add	x23, x21, #12
Lloh48:
	adrp	x8, _adp5588_work@GOTPAGE
Lloh49:
	ldr	x8, [x8, _adp5588_work@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_INIT_DELAYED_WORK
Lloh51:
	adrp	x8, _DEV_ID@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DEV_ID@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_adp5588_read
	mov	x26, x0
	tbnz	w0, #31, LBB0_57
; %bb.32:
Lloh54:
	adrp	x8, _ADP5588_DEVICE_ID_MASK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ADP5588_DEVICE_ID_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	and	w24, w8, w26
	mov	x0, x24
	bl	_WA_DELAYED_READOUT_REVID
	cbz	x0, LBB0_34
; %bb.33:
	mov	w0, #30
	bl	_msecs_to_jiffies
	str	w0, [x21, #24]
LBB0_34:
	ldr	w8, [x20, #16]
	str	w8, [x22, #64]
Lloh57:
	adrp	x8, l_.str.10@PAGE
Lloh58:
	add	x8, x8, l_.str.10@PAGEOFF
	str	x8, [x22]
	str	x19, [x22, #56]
	mov	x0, x22
	mov	x1, x21
	bl	_input_set_drvdata
Lloh59:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh60:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	movi.2s	v0, #1
	stur	d0, [x22, #36]
	stp	w24, w8, [x22, #44]
	mov	w8, #8
	ldr	w9, [x25, #4]
	stp	w8, w9, [x22, #8]
	ldr	x0, [x21]
	str	x0, [x22, #16]
	ldr	w1, [x25, #32]
	lsl	w2, w9, #3
	bl	_memcpy
	ldr	x8, [x25, #24]
	str	x8, [x21, #16]
	ldr	w8, [x25, #8]
	str	w8, [x21, #8]
Lloh62:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh63:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh64:
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	___set_bit
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_36
; %bb.35:
Lloh65:
	adrp	x8, _EV_REP@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh67:
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	___set_bit
LBB0_36:
	ldr	w8, [x22, #12]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.37:
	mov	x25, #0
Lloh68:
	adrp	x26, _KEY_MAX@GOTPAGE
Lloh69:
	ldr	x26, [x26, _KEY_MAX@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_42
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	x0, [x9, x25, lsl #3]
	ldr	x9, [x26]
	cmp	x0, x9
	b.gt	LBB0_38
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w1, [x22, #32]
	bl	___set_bit
	ldr	w8, [x22, #12]
	b	LBB0_38
LBB0_41:
Lloh70:
	adrp	x1, l_.str.6@PAGE
Lloh71:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_42:
Lloh72:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh73:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
	ldr	w1, [x22, #32]
	bl	___clear_bit
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_46
; %bb.43:
Lloh75:
	adrp	x8, _EV_SW@GOTPAGE
Lloh76:
	ldr	x8, [x8, _EV_SW@GOTPAGEOFF]
Lloh77:
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	___set_bit
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.44:
	mov	x25, #0
	mov	w26, #8
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x0, [x8, x26]
	ldr	w1, [x22, #24]
	bl	___set_bit
	add	x25, x25, #1
	ldrsw	x8, [x21, #8]
	add	x26, x26, #16
	cmp	x25, x8
	b.lt	LBB0_45
LBB0_46:
	mov	x0, x22
	bl	_input_register_device
	cbz	w0, LBB0_49
; %bb.47:
	mov	x26, x0
Lloh78:
	adrp	x1, l_.str.11@PAGE
Lloh79:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_57
LBB0_48:
Lloh80:
	adrp	x1, l_.str.7@PAGE
Lloh81:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_49:
	ldr	w0, [x20]
Lloh82:
	adrp	x8, _adp5588_irq@GOTPAGE
Lloh83:
	ldr	x8, [x8, _adp5588_irq@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
Lloh85:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh86:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh87:
	ldr	w2, [x8]
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
	mov	x4, x21
	bl	_request_irq
	cbz	w0, LBB0_51
; %bb.50:
	mov	x26, x0
	ldr	w8, [x20]
	str	x8, [sp]
Lloh88:
	adrp	x1, l_.str.12@PAGE
Lloh89:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_56
LBB0_51:
	mov	x0, x20
	bl	_adp5588_setup
	mov	x26, x0
	cbnz	w0, LBB0_55
; %bb.52:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_54
; %bb.53:
	mov	x0, x21
	bl	_adp5588_report_switch_state
LBB0_54:
	mov	x0, x21
	bl	_adp5588_gpio_add
	mov	x26, x0
	cbz	w0, LBB0_58
LBB0_55:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_free_irq
	mov	x0, x23
	bl	_cancel_delayed_work_sync
LBB0_56:
	mov	x0, x22
	bl	_input_unregister_device
	mov	x22, #0
LBB0_57:
	mov	x0, x22
	bl	_input_free_device
	mov	x0, x21
	bl	_kfree
	b	LBB0_14
LBB0_58:
	mov	x0, x19
	mov	w1, #1
	bl	_device_init_wakeup
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	ldr	w3, [x20]
Lloh90:
	adrp	x1, l_.str.13@PAGE
Lloh91:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_dev_info
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBUS Byte Data not Supported\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"no platform data?\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"no rows, cols or keymap from pdata\n"

	.comm	_ADP5588_KEYMAPSIZE,4,2         ; @ADP5588_KEYMAPSIZE
l_.str.3:                               ; @.str.3
	.asciz	"invalid keymapsize\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid gpimap from pdata\n"

	.comm	_ADP5588_GPIMAPSIZE_MAX,4,2     ; @ADP5588_GPIMAPSIZE_MAX
l_.str.5:                               ; @.str.5
	.asciz	"invalid gpimapsize\n"

	.comm	_GPI_PIN_BASE,2,1               ; @GPI_PIN_BASE
	.comm	_GPI_PIN_END,2,1                ; @GPI_PIN_END
l_.str.6:                               ; @.str.6
	.asciz	"invalid gpi pin data\n"

	.comm	_GPI_PIN_ROW_END,2,1            ; @GPI_PIN_ROW_END
	.comm	_GPI_PIN_ROW_BASE,2,1           ; @GPI_PIN_ROW_BASE
l_.str.7:                               ; @.str.7
	.asciz	"invalid gpi row data\n"

	.comm	_GPI_PIN_COL_BASE,2,1           ; @GPI_PIN_COL_BASE
l_.str.8:                               ; @.str.8
	.asciz	"invalid gpi col data\n"

l_.str.9:                               ; @.str.9
	.asciz	"no IRQ?\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_adp5588_work,4,2               ; @adp5588_work
	.comm	_DEV_ID,4,2                     ; @DEV_ID
	.comm	_ADP5588_DEVICE_ID_MASK,4,2     ; @ADP5588_DEVICE_ID_MASK
l_.str.10:                              ; @.str.10
	.asciz	"adp5588-keys/input0"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_EV_KEY,8,3                     ; @EV_KEY
	.comm	_EV_REP,8,3                     ; @EV_REP
	.comm	_KEY_MAX,8,3                    ; @KEY_MAX
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_EV_SW,8,3                      ; @EV_SW
l_.str.11:                              ; @.str.11
	.asciz	"unable to register input device\n"

	.comm	_adp5588_irq,4,2                ; @adp5588_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.12:                              ; @.str.12
	.asciz	"irq %d busy?\n"

l_.str.13:                              ; @.str.13
	.asciz	"Rev.%d keypad, irq %d\n"

	.no_dead_strip	_adp5588_probe
.subsections_via_symbols
