	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5589_probe
_adp5589_probe:                         ## @adp5589_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	movl	20(%r14), %edi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_10
## %bb.4:
	cmpl	$129, %ecx
	je	LBB0_11
## %bb.5:
	cmpl	$130, %ecx
	je	LBB0_12
## %bb.6:
	movq	48(%rax), %rbx
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_10:
	movl	$1, (%rax)
	movq	_const_adp5589@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_11:
	movl	$1, (%rax)
LBB0_12:
	movl	$1, 4(%rax)
	movq	_const_adp5585@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	%rbx, 48(%rax)
LBB0_14:
	movl	(%r12), %edx
	testl	%edx, (%rbx)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.15:
	movb	4(%rbx), %cl
	movl	%edx, %esi
	sarl	%cl, %esi
	testl	%esi, %esi
	je	LBB0_21
## %bb.16:
	cmpl	$0, 32(%r12)
	je	LBB0_21
## %bb.17:
	movl	4(%r12), %ecx
	cmpl	8(%rbx), %ecx
	jne	LBB0_26
## %bb.18:
	movq	24(%r12), %rcx
	movl	8(%r12), %esi
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.19:
	cmpl	12(%rbx), %esi
	jle	LBB0_29
LBB0_20:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
LBB0_22:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %r13d
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_25:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_22
LBB0_27:
	testq	%rsi, %rsi
	je	LBB0_35
## %bb.28:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_22
LBB0_29:
	testl	%esi, %esi
	jle	LBB0_36
## %bb.30:
	movzwl	16(%rbx), %r8d
	shlq	$4, %rsi
	xorl	%eax, %eax
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%rcx,%rax), %edi
	cmpw	%r8w, %di
	jb	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	cmpw	18(%rbx), %di
	ja	LBB0_46
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	subl	20(%rbx), %edi
	btl	%edi, %edx
	jb	LBB0_55
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=1
	addq	$16, %rax
	cmpq	%rax, %rsi
	jne	LBB0_31
	jmp	LBB0_36
LBB0_35:
	cmpl	$0, 12(%rbx)
	js	LBB0_20
LBB0_36:
	cmpl	$0, (%r14)
	je	LBB0_47
## %bb.37:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_54
## %bb.38:
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, 40(%rax)
	movq	%rbx, 32(%rax)
	movq	_ADP5589_5_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adp5589_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_56
## %bb.39:
	movq	_ADP5589_5_DEVICE_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	16(%r14), %eax
	movl	%eax, 64(%rbx)
	leaq	L_.str.9(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r15, 56(%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	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	8(%r13), %rdi
	movq	%rdi, 16(%rbx)
	movl	32(%r12), %esi
	shll	$3, %edx
	callq	_memcpy
	movq	24(%r12), %rax
	movq	%rax, 24(%r13)
	movl	8(%r12), %eax
	movl	%eax, 16(%r13)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	28(%rbx), %esi
	callq	___set_bit
	cmpq	$0, 16(%r12)
	je	LBB0_41
## %bb.40:
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	28(%rbx), %esi
	callq	___set_bit
LBB0_41:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	movq	%rbx, %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_48
## %bb.42:
	xorl	%ebx, %ebx
	movq	_KEY_MAX@GOTPCREL(%rip), %r12
	jmp	LBB0_44
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_48
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	(%r12), %rdi
	jg	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	32(%rdx), %esi
	callq	___set_bit
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %eax
	jmp	LBB0_43
LBB0_46:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_22
LBB0_47:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_22
LBB0_48:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rdx), %esi
	callq	___clear_bit
	cmpl	$0, 16(%r13)
	je	LBB0_52
## %bb.49:
	movq	_EV_SW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %esi
	callq	___set_bit
	cmpl	$0, 16(%r13)
	jle	LBB0_52
## %bb.50:
	movl	$8, %r12d
	xorl	%ebx, %ebx
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r12), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %esi
	callq	___set_bit
	incq	%rbx
	movslq	16(%r13), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_51
LBB0_52:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_57
## %bb.53:
	movl	%eax, %r13d
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_65
LBB0_54:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_55:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_22
LBB0_56:
	movq	%rbx, %rdi
	jmp	LBB0_65
LBB0_57:
	movl	(%r14), %edi
	movq	_adp5589_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	8(%r14), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_59
## %bb.58:
	movl	%eax, %r13d
	movl	(%r14), %edx
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_64
LBB0_59:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_adp5589_setup
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_63
## %bb.60:
	cmpl	$0, 16(%rbx)
	je	LBB0_62
## %bb.61:
	movq	%rbx, %rdi
	callq	_adp5589_report_switch_state
LBB0_62:
	movq	%rbx, %rdi
	callq	_adp5589_gpio_add
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_66
LBB0_63:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_64:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_unregister_device
	xorl	%edi, %edi
LBB0_65:
	callq	_input_free_device
	jmp	LBB0_24
LBB0_66:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movl	(%r14), %ecx
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_25
	.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
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_const_adp5585,24,2             ## @const_adp5585
	.comm	_const_adp5589,24,2             ## @const_adp5589
L_.str.2:                               ## @.str.2
	.asciz	"no rows, cols or keymap from pdata\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid keymapsize\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"invalid gpimapsize\n"

L_.str.6:                               ## @.str.6
	.asciz	"invalid gpi pin data\n"

L_.str.7:                               ## @.str.7
	.asciz	"invalid gpi row/col data\n"

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

	.comm	_ADP5589_5_ID,4,2               ## @ADP5589_5_ID
	.comm	_ADP5589_5_DEVICE_ID_MASK,4,2   ## @ADP5589_5_DEVICE_ID_MASK
L_.str.9:                               ## @.str.9
	.asciz	"adp5589-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.10:                              ## @.str.10
	.asciz	"unable to register input device\n"

	.comm	_adp5589_irq,4,2                ## @adp5589_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.11:                              ## @.str.11
	.asciz	"irq %d busy?\n"

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

	.no_dead_strip	_adp5589_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5589_probe
_adp5589_probe:                         ; @adp5589_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	x22, x1
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x24, x0
	ldr	w0, [x21, #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_7
; %bb.1:
	cbz	x24, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_13
; %bb.6:
	ldr	x8, [x19, #48]
	b	LBB0_15
LBB0_7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_26
LBB0_11:
	mov	w8, #1
	str	w8, [x19]
Lloh16:
	adrp	x8, _const_adp5589@GOTPAGE
Lloh17:
	ldr	x8, [x8, _const_adp5589@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	w8, #1
	str	w8, [x19]
LBB0_13:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh18:
	adrp	x8, _const_adp5585@GOTPAGE
Lloh19:
	ldr	x8, [x8, _const_adp5585@GOTPAGEOFF]
LBB0_14:
	str	x8, [x19, #48]
LBB0_15:
	ldr	w9, [x24]
	ldr	w10, [x8]
	tst	w10, w9
	b.eq	LBB0_22
; %bb.16:
	ldr	w10, [x8, #4]
	asr	w10, w9, w10
	cbz	w10, LBB0_22
; %bb.17:
	ldr	w10, [x24, #32]
	cbz	w10, LBB0_22
; %bb.18:
	ldr	w10, [x24, #4]
	ldr	w11, [x8, #8]
	cmp	w10, w11
	b.ne	LBB0_27
; %bb.19:
	ldr	x11, [x24, #24]
	ldr	w10, [x24, #8]
	cbz	x11, LBB0_28
; %bb.20:
	ldr	w12, [x8, #12]
	cmp	w10, w12
	b.le	LBB0_30
LBB0_21:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_23:
	mov	x0, x20
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_25:
	mov	x0, x19
	bl	_kfree
LBB0_26:
	mov	x0, x25
	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_27:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_28:
	cbz	w10, LBB0_36
; %bb.29:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_30:
	cmp	w10, #1
	b.lt	LBB0_37
; %bb.31:
	ldrh	w12, [x8, #16]
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldrh	w13, [x11]
	cmp	w13, w12
	b.lo	LBB0_47
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldrh	w14, [x8, #18]
	cmp	w13, w14
	b.hi	LBB0_47
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	ldrh	w14, [x8, #20]
	sub	w13, w13, w14
	lsr	w13, w9, w13
	tbnz	w13, #0, LBB0_56
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=1
	add	x11, x11, #16
	subs	x10, x10, #1
	b.ne	LBB0_32
	b	LBB0_37
LBB0_36:
	ldr	w8, [x8, #12]
	tbnz	w8, #31, LBB0_21
LBB0_37:
	ldr	w8, [x21]
	cbz	w8, LBB0_48
; %bb.38:
	bl	_input_allocate_device
	cbz	x0, LBB0_55
; %bb.39:
	mov	x22, x0
	stp	x0, x21, [x19, #32]
Lloh30:
	adrp	x8, _ADP5589_5_ID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ADP5589_5_ID@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_adp5589_read
	mov	x25, x0
	tbnz	w0, #31, LBB0_65
; %bb.40:
Lloh33:
	adrp	x8, _ADP5589_5_DEVICE_ID_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ADP5589_5_DEVICE_ID_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w23, w8, w25
	ldr	w8, [x21, #16]
	str	w8, [x22, #64]
Lloh36:
	adrp	x8, l_.str.9@PAGE
Lloh37:
	add	x8, x8, l_.str.9@PAGEOFF
	str	x8, [x22]
	str	x20, [x22, #56]
	mov	x0, x22
	mov	x1, x19
	bl	_input_set_drvdata
Lloh38:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	movi.2s	v0, #1
	stur	d0, [x22, #36]
	stp	w23, w8, [x22, #44]
	mov	w8, #8
	ldr	w9, [x24, #4]
	stp	w8, w9, [x22, #8]
	ldr	x0, [x19, #8]
	str	x0, [x22, #16]
	ldr	w1, [x24, #32]
	lsl	w2, w9, #3
	bl	_memcpy
	ldr	x8, [x24, #24]
	str	x8, [x19, #24]
	ldr	w8, [x24, #8]
	str	w8, [x19, #16]
Lloh41:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh43:
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	___set_bit
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_42
; %bb.41:
Lloh44:
	adrp	x8, _EV_REP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh46:
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	___set_bit
LBB0_42:
	ldr	w8, [x22, #12]
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.43:
	mov	x24, #0
Lloh47:
	adrp	x25, _KEY_MAX@GOTPAGE
Lloh48:
	ldr	x25, [x25, _KEY_MAX@GOTPAGEOFF]
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_49
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x24, lsl #3]
	ldr	x9, [x25]
	cmp	x0, x9
	b.gt	LBB0_44
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	w1, [x22, #32]
	bl	___set_bit
	ldr	w8, [x22, #12]
	b	LBB0_44
LBB0_47:
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_48:
Lloh51:
	adrp	x1, l_.str.8@PAGE
Lloh52:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_49:
Lloh53:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	w1, [x22, #32]
	bl	___clear_bit
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_53
; %bb.50:
Lloh56:
	adrp	x8, _EV_SW@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EV_SW@GOTPAGEOFF]
Lloh58:
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	___set_bit
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_53
; %bb.51:
	mov	x24, #0
	mov	w25, #8
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x25]
	ldr	w1, [x22, #24]
	bl	___set_bit
	add	x24, x24, #1
	ldrsw	x8, [x19, #16]
	add	x25, x25, #16
	cmp	x24, x8
	b.lt	LBB0_52
LBB0_53:
	mov	x0, x22
	bl	_input_register_device
	cbz	w0, LBB0_57
; %bb.54:
	mov	x25, x0
Lloh59:
	adrp	x1, l_.str.10@PAGE
Lloh60:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_65
LBB0_55:
Lloh61:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_24
LBB0_56:
Lloh63:
	adrp	x1, l_.str.7@PAGE
Lloh64:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_23
LBB0_57:
	ldr	w0, [x21]
Lloh65:
	adrp	x8, _adp5589_irq@GOTPAGE
Lloh66:
	ldr	x8, [x8, _adp5589_irq@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
Lloh68:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh69:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh72:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	x8, [x21, #8]
	ldr	w4, [x8]
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	cbz	w0, LBB0_59
; %bb.58:
	mov	x25, x0
	ldr	w8, [x21]
	str	x8, [sp]
Lloh74:
	adrp	x1, l_.str.11@PAGE
Lloh75:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_64
LBB0_59:
	mov	x0, x19
	bl	_adp5589_setup
	mov	x25, x0
	cbnz	w0, LBB0_63
; %bb.60:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_62
; %bb.61:
	mov	x0, x19
	bl	_adp5589_report_switch_state
LBB0_62:
	mov	x0, x19
	bl	_adp5589_gpio_add
	mov	x25, x0
	cbz	w0, LBB0_66
LBB0_63:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_free_irq
LBB0_64:
	mov	x0, x22
	bl	_input_unregister_device
	mov	x22, #0
LBB0_65:
	mov	x0, x22
	bl	_input_free_device
	b	LBB0_25
LBB0_66:
	mov	x0, x20
	mov	w1, #1
	bl	_device_init_wakeup
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	w3, [x21]
Lloh76:
	adrp	x1, l_.str.12@PAGE
Lloh77:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_info
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.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
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_const_adp5585,24,2             ; @const_adp5585
	.comm	_const_adp5589,24,2             ; @const_adp5589
l_.str.2:                               ; @.str.2
	.asciz	"no rows, cols or keymap from pdata\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid keymapsize\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"invalid gpimapsize\n"

l_.str.6:                               ; @.str.6
	.asciz	"invalid gpi pin data\n"

l_.str.7:                               ; @.str.7
	.asciz	"invalid gpi row/col data\n"

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

	.comm	_ADP5589_5_ID,4,2               ; @ADP5589_5_ID
	.comm	_ADP5589_5_DEVICE_ID_MASK,4,2   ; @ADP5589_5_DEVICE_ID_MASK
l_.str.9:                               ; @.str.9
	.asciz	"adp5589-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.10:                              ; @.str.10
	.asciz	"unable to register input device\n"

	.comm	_adp5589_irq,4,2                ; @adp5589_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.11:                              ; @.str.11
	.asciz	"irq %d busy?\n"

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

	.no_dead_strip	_adp5589_probe
.subsections_via_symbols
